var _mA = {
is_solo: "_D4",
GRAVITY: "_F4",
angle: "_65",
one_out_of_ten: "_95",
child: "_c5",
highscore: "_j5",
message: "_by",
longMessage: "_cy",
stacktrace: "_dy",
script: "_ey",
line: "_fy",
spriteIndex: "_533",
name: "_Ju2",
width: "_n63",
height: "_o63",
type: "_Ku2",
name: "_Ju2",
frame: "_B33",
left: "_5L2",
right: "_7L2",
top: "_6L2",
bottom: "_8L2",
tilemode: "_aL2",
parent: "_A63",
name: "_Ju2",
index: "_v33",
length: "_C33",
rotation: "_h63",
name: "_Ju2",
index: "_v33",
debug_mode: "_EA2",
pointer_invalid: "_aq2",
pointer_null: "_9q2",
infinity: "_bq2",
room: "_OH",
get_current_room: "_m5",
room_first: "_Br2",
room_last: "_Cr2",
transition_kind: "_vz2",
transition_steps: "_wz2",
score: "_Q4",
lives: "_P4",
set_lives_function: "_O4",
health: "_xz2",
game_id: "_fr2",
game_display_name: "_ir2",
game_project_name: "_jr2",
game_save_id: "_gr2",
working_directory: "_kr2",
temp_directory: "_yz2",
program_directory: "_zz2",
room_width: "_g5",
room_height: "_h5",
room_caption: "_Cz2",
room_speed: "_Dz2",
get_room_speed: "_Z4",
room_persistent: "_Ez2",
background_color: "_Fz2",
background_showcolor: "_Gz2",
view_enabled: "_Wz2",
view_current: "_Xz2",
view_visible: "_Yz2",
mouse_x: "_n01",
mouse_y: "_r01",
mouse_button: "_cA2",
mouse_lastbutton: "_dA2",
keyboard_key: "_eA2",
keyboard_lastkey: "_fA2",
keyboard_lastchar: "_gA2",
keyboard_string: "_hA2",
show_score: "_iA2",
show_lives: "_jA2",
show_health: "_kA2",
caption_score: "_lA2",
caption_lives: "_mA2",
caption_health: "_nA2",
fps: "_xL",
fps_real: "_oA2",
current_time: "_pA2",
current_year: "_qA2",
current_month: "_rA2",
current_day: "_sA2",
current_weekday: "_tA2",
current_hour: "_uA2",
current_minute: "_vA2",
current_second: "_wA2",
event_type: "_Xj",
event_action: "_xA2",
error_occurred: "_yA2",
error_last: "_zA2",
gamemaker_registered: "_AA2",
gamemaker_pro: "_BA2",
application_surface: "_FA2",
os_version: "_Sp2",
async_load: "_2W",
event_data: "_68",
delta_time: "_Az2",
webgl_enabled: "_mr2",
view_xview: "_Zz2",
view_yview: "__z2",
view_wview: "_0A2",
view_hview: "_1A2",
view_angle: "_6A2",
view_hborder: "_7A2",
view_vborder: "_8A2",
view_hspeed: "_9A2",
view_vspeed: "_aA2",
view_object: "_bA2",
view_xport: "_2A2",
view_yport: "_3A2",
view_wport: "_4A2",
view_hport: "_5A2",
view_surface_id: "_GA2",
view_camera: "_HA2",
xprevious: "_AP",
yprevious: "_BP",
xstart: "_cF2",
ystart: "_dF2",
hspeed: "_s3",
vspeed: "_t3",
direction: "_35",
speed: "_d3",
friction: "_oz",
gravity: "_pz",
gravity_direction: "_qz",
in_collision_tree: "_CE2",
object_index: "_kH",
alarm: "_W4",
solid: "_6P",
visible: "_r2",
visible: "_z23",
persistent: "_L2",
depth: "_r3",
bbox_left: "_jF2",
bbox_right: "_kF2",
bbox_top: "_lF2",
bbox_bottom: "_mF2",
sprite_index: "_15",
image_index: "_tz",
image_single: "_wF2",
image_number: "_JE2",
sprite_width: "_KE2",
sprite_height: "_L4",
sprite_xoffset: "_LE2",
sprite_yoffset: "_ME2",
image_xscale: "_vz",
image_yscale: "_wz",
image_angle: "_55",
image_alpha: "_u5",
image_blend: "_rm",
image_speed: "_uz",
mask_index: "_xz",
path_index: "_yz",
path_position: "_zz",
path_positionprevious: "_Eb2",
path_speed: "_Az",
path_scale: "_Bz",
path_orientation: "_Cz",
path_endaction: "_Dz",
timeline_index: "_7c2",
timeline_position: "_bc2",
timeline_speed: "_9c2",
timeline_running: "_zF2",
timeline_loop: "_BF2",
phy_rotation: "_DF2",
phy_position_x: "_FF2",
phy_position_y: "_HF2",
phy_angular_velocity: "_JF2",
phy_linear_velocity_x: "_LF2",
phy_linear_velocity_y: "_NF2",
phy_speed_x: "_SF2",
phy_speed_y: "_UF2",
phy_speed: "_PF2",
phy_angular_damping: "_WF2",
phy_linear_damping: "_YF2",
phy_bullet: "__F2",
phy_fixed_rotation: "_1G2",
phy_active: "_3G2",
phy_mass: "_WH2",
phy_inertia: "_XH2",
phy_com_x: "_YH2",
phy_com_y: "_ZH2",
phy_dynamic: "__H2",
phy_kinematic: "_0I2",
phy_sleeping: "_1I2",
phy_position_xprevious: "_6S1",
phy_position_yprevious: "_7S1",
phy_collision_points: "_hS1",
layer: "_6K",
phy_collision_x: "_iS1",
phy_collision_y: "_jS1",
phy_col_normal_x: "_kS1",
phy_col_normal_y: "_lS1",
sequence: "_R53",
headPosition: "_S53",
headDirection: "_U53",
speedScale: "_V53",
volume: "_d43",
paused: "_W53",
finished: "_X53",
name: "_Ju2",
loopmode: "_943",
playbackSpeed: "_a43",
playbackSpeedType: "_b43",
length: "_C33",
xorigin: "_e43",
yorigin: "_f43",
tracks: "_y23",
messageEventKeyframes: "_g43",
type: "_Ku2",
traits: "_x23",
interpolation: "_F13",
enabled: "_9L2",
visible: "_z23",
embeddedAnimCurves: "_A23",
linkedTrack: "_B23",
keyframes: "_C23",
channels: "_Av2",
index: "_v33",
soundIndex: "_e33",
emitters: "_f33",
mode: "_g33",
value: "_Au2",
hasEmbeddedCurve: "_m33",
curve: "_n33",
color: "_q33",
colour: "_r33",
imageIndex: "_x33",
numChannels: "_yv2",
graphType: "_zv2",
iterations: "_Ou2",
numPoints: "_Pu2",
points: "_Qu2",
activeTracks: "_Y53",
matrix: "_e63",
posx: "_zu2",
posy: "_g63",
rotation: "_h63",
scalex: "_i63",
scaley: "_j63",
gain: "_k63",
pitch: "_l63",
width: "_n63",
height: "_o63",
imageindex: "_p63",
imagespeed: "_q63",
colormultiply: "_r63",
colourmultiply: "_t63",
coloradd: "_u63",
colouradd: "_v63",
channel: "_W23",
stretch: "_D33",
disabled: "_E33",
spriteIndex: "_533"
};
Array.prototype._n1 = 0;
var _o1 = {
_p1: [],
_q1: {},
_r1: [],
_s1: [{
name: "audiogroup_default",
_t1: !0,
}],
_u1: [{
_v1: "spr_player_1",
width: 100,
height: 100,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !0,
_z1: 50,
_A1: 49,
_B1: 99,
_C1: 12,
_D1: 77,
_E1: 2,
_F1: [5, 7, 9, 6, 4, 8],
_G1: [
[0xFF, 0x00, 0xA0, 0x00, 0x02, 0x7F, 0xFF, 0xC0, 0x88, 0x00, 0x00, 0x1F, 0x82, 0xFF, 0x87, 0x00, 0x00, 0x03, 0x83, 0xFF, 0x00, 0xF8, 0x86, 0x00, 0x00, 0x1F, 0x84, 0xFF, 0x86, 0x00, 0x85, 0xFF, 0x00, 0xE0, 0x84, 0x00, 0x00, 0x03, 0x85, 0xFF, 0x00, 0xF8, 0x84, 0x00, 0x00, 0x0F, 0x85, 0xFF, 0x00, 0xFE, 0x84, 0x00, 0x00,
0x3F, 0x86, 0xFF, 0x00, 0x80, 0x83, 0x00, 0x87, 0xFF, 0x00, 0xE0, 0x82, 0x00, 0x00, 0x01, 0x87, 0xFF, 0x00, 0xF0, 0x82, 0x00, 0x00, 0x07, 0x87, 0xFF, 0x00, 0xFC, 0x82, 0x00, 0x00, 0x0F, 0x87, 0xFF, 0x00, 0xFE, 0x82, 0x00, 0x00, 0x3F, 0x88, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x7F, 0x88, 0xFF, 0x02, 0xC0, 0x00, 0x00, 0x89, 0xFF, 0x02, 0xE0, 0x00, 0x01, 0x89, 0xFF, 0x02, 0xF0, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x07, 0x89, 0xFF, 0x02, 0xFC, 0x00, 0x0F, 0x89, 0xFF, 0x02, 0xFE, 0x00, 0x1F, 0x8A, 0xFF, 0x01, 0x00, 0x1F, 0x8A, 0xFF, 0x01, 0x00, 0x3F, 0x8A, 0xFF,
0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x00, 0xC0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x01, 0xE0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x1F, 0x8A, 0xFF, 0x01, 0x00, 0x1F, 0x8A,
0xFF, 0x01, 0x00, 0x0F, 0x89, 0xFF, 0x02, 0xFE, 0x00, 0x07, 0x89, 0xFF, 0x02, 0xFC, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x01, 0x89, 0xFF, 0x02, 0xF0, 0x00, 0x00, 0x89, 0xFF, 0x03, 0xE0, 0x00, 0x00, 0x7F, 0x88, 0xFF, 0x03, 0xC0, 0x00, 0x00, 0x3F, 0x88, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x0F, 0x87, 0xFF, 0x00, 0xFE, 0x82, 0x00, 0x00, 0x07, 0x87, 0xFF, 0x00, 0xFC, 0x82, 0x00, 0x00, 0x01, 0x87, 0xFF, 0x00, 0xF0, 0x83, 0x00, 0x87, 0xFF, 0x00, 0xE0, 0x83, 0x00, 0x00, 0x3F, 0x86, 0xFF, 0x00, 0x80, 0x83, 0x00, 0x00, 0x0F, 0x85, 0xFF, 0x00, 0xFE, 0x84, 0x00, 0x00,
0x03, 0x85, 0xFF, 0x00, 0xF8, 0x85, 0x00, 0x85, 0xFF, 0x00, 0xE0, 0x85, 0x00, 0x00, 0x1F, 0x84, 0xFF, 0x86, 0x00, 0x00, 0x03, 0x83, 0xFF, 0x00, 0xF8, 0x87, 0x00, 0x00, 0x1F, 0x82, 0xFF, 0x89, 0x00, 0x02, 0x7F, 0xFF, 0xC0, 0xFF, 0x00, 0xFF, 0x00, 0xAF, 0x00
]
],
_H1: {
_v1: "spr_player_1",
_I1: 1,
_J1: 2,
_K1: 0,
length: 6,
_L1: 50,
_M1: 49,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}, {
key: 1,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 1
}
}
}, {
key: 2,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 2
}
}
}, {
key: 3,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 3
}
}
}, {
key: 4,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 4
}
}
}, {
key: 5,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 5
}
}
}]
}],
_Y1: [],
_Z1: []
},
__1: {
_02: 0,
_12: 0,
_22: 0,
_32: 0,
_42: !1,
_52: [0, 0, 0, 0, 0]
}
}, {
_v1: "spr_life",
height: 15,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !1,
_z1: 8,
_A1: 7,
_B1: 15,
_D1: 14,
_E1: 30,
_F1: [31],
_H1: {
_v1: "spr_life",
_I1: 1,
_J1: 30,
_K1: 0,
length: 1,
_L1: 8,
_M1: 7,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}]
}],
_Y1: [],
_Z1: []
}
}, {
_v1: "spr_laser",
width: 50,
height: 50,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !1,
_z1: 25,
_A1: 25,
_B1: 49,
_C1: 17,
_D1: 32,
_E1: 30,
_F1: [29],
_H1: {
_v1: "spr_laser",
_I1: 1,
_J1: 30,
_K1: 0,
length: 1,
_L1: 25,
_M1: 25,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}]
}],
_Y1: [],
_Z1: []
}
}, {
_v1: "spr_rock",
width: 150,
height: 150,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !0,
_z1: 75,
_A1: 75,
_B1: 149,
_D1: 149,
_E1: 30,
_F1: [3],
_G1: [
[0x87, 0x00, 0x02, 0x3F, 0xFF, 0xE0, 0x8E, 0x00, 0x00, 0x0F, 0x82, 0xFF, 0x00, 0x80, 0x8C, 0x00, 0x00, 0x01, 0x83, 0xFF, 0x00, 0xFC, 0x8C, 0x00, 0x00, 0x0F, 0x84, 0xFF, 0x00, 0x80, 0x8B, 0x00, 0x00, 0x7F, 0x84, 0xFF, 0x00, 0xF0, 0x8A, 0x00, 0x00, 0x03, 0x85, 0xFF, 0x00, 0xFE, 0x8A, 0x00, 0x00, 0x0F, 0x86, 0xFF, 0x00, 0x80, 0x89, 0x00, 0x00, 0x3F, 0x86, 0xFF, 0x00, 0xE0, 0x89, 0x00, 0x87, 0xFF, 0x00, 0xF8, 0x88, 0x00, 0x00, 0x03, 0x87, 0xFF, 0x00, 0xFE, 0x88, 0x00, 0x00, 0x0F, 0x88, 0xFF,
0x00, 0x80, 0x87, 0x00, 0x00, 0x1F, 0x88, 0xFF, 0x00, 0xC0, 0x87, 0x00, 0x00, 0x7F, 0x88, 0xFF, 0x00, 0xF0, 0x87, 0x00, 0x89, 0xFF, 0x00, 0xF8, 0x86, 0x00, 0x00, 0x03, 0x89, 0xFF, 0x00, 0xFE, 0x86, 0x00, 0x00, 0x07, 0x8A, 0xFF, 0x86, 0x00, 0x00, 0x0F, 0x8A, 0xFF, 0x00, 0x80, 0x85, 0x00, 0x00, 0x1F, 0x8A, 0xFF, 0x00, 0xC0, 0x85, 0x00, 0x00, 0x7F, 0x8A, 0xFF, 0x00, 0xF0, 0x85, 0x00, 0x8B, 0xFF, 0x00, 0xF8, 0x84, 0x00, 0x00, 0x01, 0x8B, 0xFF, 0x00, 0xFC, 0x84, 0x00, 0x00, 0x03, 0x8B, 0xFF, 0x00, 0xFE, 0x84, 0x00, 0x00, 0x07, 0x8C, 0xFF, 0x84, 0x00, 0x00, 0x0F, 0x8C, 0xFF, 0x00, 0x80, 0x83, 0x00,
0x00, 0x1F, 0x8C, 0xFF, 0x00, 0xC0, 0x83, 0x00, 0x00, 0x3F, 0x8C, 0xFF, 0x00, 0xE0, 0x83, 0x00, 0x00, 0x3F, 0x8C, 0xFF, 0x00, 0xE0, 0x83, 0x00, 0x00, 0x7F, 0x8C, 0xFF, 0x00, 0xF0, 0x83, 0x00, 0x8D, 0xFF, 0x00, 0xF8, 0x82, 0x00, 0x00, 0x01, 0x8D, 0xFF, 0x00, 0xFC, 0x82, 0x00, 0x00, 0x03, 0x8D, 0xFF, 0x00, 0xFE, 0x82, 0x00, 0x00, 0x03, 0x8D, 0xFF, 0x00, 0xFE, 0x82, 0x00, 0x00, 0x07, 0x8E, 0xFF, 0x82, 0x00, 0x00, 0x0F, 0x8E, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x0F, 0x8E, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x1F, 0x8E, 0xFF, 0x03, 0xC0, 0x00, 0x00, 0x3F, 0x8E, 0xFF, 0x03, 0xE0, 0x00, 0x00, 0x3F, 0x8E, 0xFF,
0x03, 0xE0, 0x00, 0x00, 0x7F, 0x8E, 0xFF, 0x03, 0xF0, 0x00, 0x00, 0x7F, 0x8E, 0xFF, 0x02, 0xF0, 0x00, 0x00, 0x8F, 0xFF, 0x02, 0xF8, 0x00, 0x00, 0x8F, 0xFF, 0x02, 0xF8, 0x00, 0x01, 0x8F, 0xFF, 0x02, 0xFC, 0x00, 0x01, 0x8F, 0xFF, 0x02, 0xFC, 0x00, 0x03, 0x8F, 0xFF, 0x02, 0xFE, 0x00, 0x03, 0x8F, 0xFF, 0x02, 0xFE, 0x00, 0x07, 0x90, 0xFF, 0x01, 0x00, 0x07, 0x90, 0xFF, 0x01, 0x00, 0x07, 0x90, 0xFF, 0x01, 0x00, 0x0F, 0x90, 0xFF, 0x01, 0x80, 0x0F, 0x90, 0xFF, 0x01, 0x80, 0x0F, 0x90, 0xFF, 0x01, 0x80, 0x1F, 0x90, 0xFF, 0x01, 0xC0, 0x1F, 0x90, 0xFF, 0x01, 0xC0, 0x1F, 0x90, 0xFF, 0x01, 0xC0, 0x3F, 0x90,
0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x00, 0xF0, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00,
0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x00, 0xF8, 0x91, 0xFF, 0x01, 0xF8, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x7F, 0x90, 0xFF, 0x01, 0xF0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x3F, 0x90, 0xFF, 0x01, 0xE0, 0x1F, 0x90, 0xFF, 0x01, 0xC0, 0x1F, 0x90, 0xFF, 0x01, 0xC0, 0x1F, 0x90, 0xFF, 0x01, 0xC0, 0x0F, 0x90, 0xFF, 0x01, 0x80, 0x0F, 0x90, 0xFF, 0x01,
0x80, 0x0F, 0x90, 0xFF, 0x01, 0x80, 0x07, 0x90, 0xFF, 0x01, 0x00, 0x07, 0x90, 0xFF, 0x01, 0x00, 0x07, 0x90, 0xFF, 0x01, 0x00, 0x03, 0x8F, 0xFF, 0x02, 0xFE, 0x00, 0x03, 0x8F, 0xFF, 0x02, 0xFE, 0x00, 0x01, 0x8F, 0xFF, 0x02, 0xFC, 0x00, 0x01, 0x8F, 0xFF, 0x02, 0xFC, 0x00, 0x00, 0x8F, 0xFF, 0x02, 0xF8, 0x00, 0x00, 0x8F, 0xFF, 0x03, 0xF8, 0x00, 0x00, 0x7F, 0x8E, 0xFF, 0x03, 0xF0, 0x00, 0x00, 0x7F, 0x8E, 0xFF, 0x03, 0xF0, 0x00, 0x00, 0x3F, 0x8E, 0xFF, 0x03, 0xE0, 0x00, 0x00, 0x3F, 0x8E, 0xFF, 0x03, 0xE0, 0x00, 0x00, 0x1F, 0x8E, 0xFF, 0x03, 0xC0, 0x00, 0x00, 0x0F, 0x8E, 0xFF, 0x03, 0x80, 0x00, 0x00,
0x0F, 0x8E, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x07, 0x8E, 0xFF, 0x82, 0x00, 0x00, 0x03, 0x8D, 0xFF, 0x00, 0xFE, 0x82, 0x00, 0x00, 0x03, 0x8D, 0xFF, 0x00, 0xFE, 0x82, 0x00, 0x00, 0x01, 0x8D, 0xFF, 0x00, 0xFC, 0x83, 0x00, 0x8D, 0xFF, 0x00, 0xF8, 0x83, 0x00, 0x00, 0x7F, 0x8C, 0xFF, 0x00, 0xF0, 0x83, 0x00, 0x00, 0x3F, 0x8C, 0xFF, 0x00, 0xE0, 0x83, 0x00, 0x00, 0x3F, 0x8C, 0xFF, 0x00, 0xE0, 0x83, 0x00, 0x00, 0x1F, 0x8C, 0xFF, 0x00, 0xC0, 0x83, 0x00, 0x00, 0x0F, 0x8C, 0xFF, 0x00, 0x80, 0x83, 0x00, 0x00, 0x07, 0x8C, 0xFF, 0x84, 0x00, 0x00, 0x03, 0x8B, 0xFF, 0x00, 0xFE, 0x84, 0x00, 0x00, 0x01, 0x8B, 0xFF,
0x00, 0xFC, 0x85, 0x00, 0x8B, 0xFF, 0x00, 0xF8, 0x85, 0x00, 0x00, 0x7F, 0x8A, 0xFF, 0x00, 0xF0, 0x85, 0x00, 0x00, 0x1F, 0x8A, 0xFF, 0x00, 0xC0, 0x85, 0x00, 0x00, 0x0F, 0x8A, 0xFF, 0x00, 0x80, 0x85, 0x00, 0x00, 0x07, 0x8A, 0xFF, 0x86, 0x00, 0x00, 0x03, 0x89, 0xFF, 0x00, 0xFE, 0x87, 0x00, 0x89, 0xFF, 0x00, 0xF8, 0x87, 0x00, 0x00, 0x7F, 0x88, 0xFF, 0x00, 0xF0, 0x87, 0x00, 0x00, 0x1F, 0x88, 0xFF, 0x00, 0xC0, 0x87, 0x00, 0x00, 0x0F, 0x88, 0xFF, 0x00, 0x80, 0x87, 0x00, 0x00, 0x03, 0x87, 0xFF, 0x00, 0xFE, 0x89, 0x00, 0x87, 0xFF, 0x00, 0xF8, 0x89, 0x00, 0x00, 0x3F, 0x86, 0xFF, 0x00, 0xE0, 0x89, 0x00,
0x00, 0x0F, 0x86, 0xFF, 0x00, 0x80, 0x89, 0x00, 0x00, 0x03, 0x85, 0xFF, 0x00, 0xFE, 0x8B, 0x00, 0x00, 0x7F, 0x84, 0xFF, 0x00, 0xF0, 0x8B, 0x00, 0x00, 0x0F, 0x84, 0xFF, 0x00, 0x80, 0x8B, 0x00, 0x00, 0x01, 0x83, 0xFF, 0x00, 0xFC, 0x8D, 0x00, 0x00, 0x0F, 0x82, 0xFF, 0x00, 0x80, 0x8E, 0x00, 0x02, 0x3F, 0xFF, 0xE0, 0x9A, 0x00
]
],
_H1: {
_v1: "spr_rock",
_I1: 1,
_J1: 30,
_K1: 0,
length: 1,
_L1: 75,
_M1: 75,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}]
}],
_Y1: [],
_Z1: []
}
}, {
_v1: "spr_rock_s",
width: 50,
height: 50,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !0,
_z1: 25,
_A1: 25,
_B1: 49,
_D1: 49,
_E1: 30,
_F1: [28],
_G1: [
[0x03, 0x00, 0x00, 0x0F, 0xF8, 0x84, 0x00, 0x02, 0xFF, 0xFF, 0x80, 0x82, 0x00, 0x03, 0x03, 0xFF, 0xFF, 0xE0, 0x82, 0x00, 0x03, 0x0F, 0xFF, 0xFF, 0xF8, 0x82, 0x00, 0x03, 0x3F, 0xFF, 0xFF, 0xFE, 0x82, 0x00, 0x00, 0x7F, 0x82, 0xFF, 0x82, 0x00, 0x83, 0xFF, 0x02, 0x80, 0x00, 0x01, 0x83, 0xFF, 0x02, 0xC0, 0x00, 0x03, 0x83, 0xFF, 0x02, 0xE0, 0x00, 0x07, 0x83, 0xFF, 0x02, 0xF0, 0x00, 0x0F, 0x83, 0xFF, 0x02, 0xF8, 0x00, 0x0F, 0x83, 0xFF, 0x02, 0xF8, 0x00,
0x1F, 0x83, 0xFF, 0x02, 0xFC, 0x00, 0x1F, 0x83, 0xFF, 0x02, 0xFC, 0x00, 0x3F, 0x83, 0xFF, 0x02, 0xFE, 0x00, 0x3F, 0x83, 0xFF, 0x02, 0xFE, 0x00, 0x7F, 0x84, 0xFF, 0x01, 0x00, 0x7F, 0x84, 0xFF, 0x01, 0x00, 0x7F, 0x84, 0xFF, 0x01, 0x00, 0x7F, 0x84, 0xFF, 0x00, 0x00, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x00, 0x80, 0x85, 0xFF, 0x01, 0x80, 0x7F, 0x84, 0xFF, 0x01, 0x00, 0x7F, 0x84, 0xFF, 0x01, 0x00, 0x7F, 0x84, 0xFF, 0x01, 0x00, 0x7F, 0x84, 0xFF, 0x01, 0x00,
0x3F, 0x83, 0xFF, 0x02, 0xFE, 0x00, 0x3F, 0x83, 0xFF, 0x02, 0xFE, 0x00, 0x1F, 0x83, 0xFF, 0x02, 0xFC, 0x00, 0x1F, 0x83, 0xFF, 0x02, 0xFC, 0x00, 0x0F, 0x83, 0xFF, 0x02, 0xF8, 0x00, 0x0F, 0x83, 0xFF, 0x02, 0xF8, 0x00, 0x07, 0x83, 0xFF, 0x02, 0xF0, 0x00, 0x03, 0x83, 0xFF, 0x02, 0xE0, 0x00, 0x01, 0x83, 0xFF, 0x02, 0xC0, 0x00, 0x00, 0x83, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x7F, 0x82, 0xFF, 0x82, 0x00, 0x03, 0x3F, 0xFF, 0xFF, 0xFE, 0x82, 0x00, 0x03, 0x0F, 0xFF, 0xFF, 0xF8, 0x82, 0x00, 0x03, 0x03, 0xFF, 0xFF, 0xE0, 0x83, 0x00, 0x02, 0xFF, 0xFF, 0x80, 0x83, 0x00, 0x01, 0x0F, 0xF8, 0x89, 0x00
]
],
_H1: {
_v1: "spr_rock_s",
_I1: 1,
_J1: 30,
_K1: 0,
length: 1,
_L1: 25,
_M1: 25,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}]
}],
_Y1: [],
_Z1: []
}
}, {
_v1: "spr_background",
width: 1500,
height: 800,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !1,
_z1: 750,
_A1: 400,
_B1: 1499,
_D1: 799,
_E1: 30,
_F1: [0],
_H1: {
_v1: "spr_background",
_I1: 1,
_J1: 30,
_K1: 0,
length: 1,
_L1: 750,
_M1: 400,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}]
}],
_Y1: [],
_Z1: []
}
}, {
_v1: "spr_dust",
width: 1,
height: 1,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !1,
_E1: 30,
_F1: [33],
_H1: {
_v1: "spr_dust",
_I1: 1,
_J1: 30,
_K1: 0,
length: 1,
_L1: 0,
_M1: 0,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}]
}],
_Y1: [],
_Z1: []
}
}, {
_v1: "spr_player_2",
width: 100,
height: 100,
_w1: !1,
_x1: !1,
preload: !1,
_y1: !0,
_z1: 50,
_A1: 49,
_B1: 99,
_C1: 12,
_D1: 77,
_E1: 2,
_F1: [11, 13, 15, 12, 10, 14],
_G1: [
[0xFF, 0x00, 0xA0, 0x00, 0x02, 0x7F, 0xFF, 0xC0, 0x88, 0x00, 0x00, 0x1F, 0x82, 0xFF, 0x87, 0x00, 0x00, 0x03, 0x83, 0xFF, 0x00, 0xF8, 0x86, 0x00, 0x00, 0x1F, 0x84, 0xFF, 0x86, 0x00, 0x85, 0xFF, 0x00, 0xE0, 0x84, 0x00, 0x00, 0x03, 0x85, 0xFF, 0x00, 0xF8, 0x84, 0x00, 0x00, 0x0F, 0x85, 0xFF, 0x00, 0xFE, 0x84, 0x00, 0x00, 0x3F, 0x86, 0xFF, 0x00, 0x80, 0x83, 0x00, 0x87, 0xFF, 0x00, 0xE0, 0x82, 0x00, 0x00, 0x01, 0x87, 0xFF, 0x00, 0xF0, 0x82, 0x00, 0x00, 0x07, 0x87, 0xFF, 0x00, 0xFC, 0x82, 0x00, 0x00, 0x0F, 0x87, 0xFF, 0x00, 0xFE, 0x82, 0x00,
0x00, 0x3F, 0x88, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x7F, 0x88, 0xFF, 0x02, 0xC0, 0x00, 0x00, 0x89, 0xFF, 0x02, 0xE0, 0x00, 0x01, 0x89, 0xFF, 0x02, 0xF0, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x07, 0x89, 0xFF, 0x02, 0xFC, 0x00, 0x0F, 0x89, 0xFF, 0x02, 0xFE, 0x00, 0x1F, 0x8A, 0xFF, 0x01, 0x00, 0x1F, 0x8A, 0xFF, 0x01, 0x00, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x00, 0xC0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF,
0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x00, 0xE0, 0x8B, 0xFF, 0x01, 0xE0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x7F, 0x8A, 0xFF, 0x01, 0xC0, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x3F, 0x8A, 0xFF, 0x01, 0x80, 0x1F, 0x8A, 0xFF, 0x01, 0x00, 0x1F, 0x8A, 0xFF, 0x01, 0x00, 0x0F, 0x89, 0xFF, 0x02, 0xFE, 0x00, 0x07, 0x89, 0xFF, 0x02, 0xFC, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x03, 0x89, 0xFF, 0x02, 0xF8, 0x00, 0x01, 0x89, 0xFF, 0x02, 0xF0, 0x00, 0x00, 0x89, 0xFF, 0x03,
0xE0, 0x00, 0x00, 0x7F, 0x88, 0xFF, 0x03, 0xC0, 0x00, 0x00, 0x3F, 0x88, 0xFF, 0x03, 0x80, 0x00, 0x00, 0x0F, 0x87, 0xFF, 0x00, 0xFE, 0x82, 0x00, 0x00, 0x07, 0x87, 0xFF, 0x00, 0xFC, 0x82, 0x00, 0x00, 0x01, 0x87, 0xFF, 0x00, 0xF0, 0x83, 0x00, 0x87, 0xFF, 0x00, 0xE0, 0x83, 0x00, 0x00, 0x3F, 0x86, 0xFF, 0x00, 0x80, 0x83, 0x00, 0x00, 0x0F, 0x85, 0xFF, 0x00, 0xFE, 0x84, 0x00, 0x00, 0x03, 0x85, 0xFF, 0x00, 0xF8, 0x85, 0x00, 0x85, 0xFF, 0x00, 0xE0, 0x85, 0x00, 0x00, 0x1F, 0x84, 0xFF, 0x86, 0x00, 0x00, 0x03, 0x83, 0xFF, 0x00, 0xF8, 0x87, 0x00, 0x00, 0x1F, 0x82, 0xFF, 0x89, 0x00, 0x02, 0x7F, 0xFF, 0xC0,
0xFF, 0x00, 0xFF, 0x00, 0xAF, 0x00
]
],
_H1: {
_v1: "spr_player_2",
_I1: 1,
_J1: 2,
_K1: 0,
length: 6,
_L1: 50,
_M1: 49,
volume: 1,
_N1: [],
_O1: [{
_P1: "GMSpriteFramesTrack",
_v1: "frames",
_Q1: 0,
_R1: 0,
_S1: 0,
_T1: [],
_U1: [],
_O1: [],
_N1: [{
key: 0,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 0
}
}
}, {
key: 1,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 1
}
}
}, {
key: 2,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 2
}
}
}, {
key: 3,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 3
}
}
}, {
key: 4,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 4
}
}
}, {
key: 5,
length: 1,
_V1: !1,
_W1: !1,
_X1: {
0: {
imageIndex: 5
}
}
}]
}],
_Y1: [],
_Z1: []
},
__1: {
_02: 0,
_12: 0,
_22: 0,
_32: 0,
_42: !1,
_52: [0, 0, 0, 0, 0]
}
}],
_62: {
"pt_shape_circle": 20,
"pt_shape_cloud": 27,
"pt_shape_disk": 21,
"pt_shape_explosion": 16,
"pt_shape_flare": 17,
"pt_shape_line": 30,
"pt_shape_pixel": 32,
"pt_shape_ring": 22,
"pt_shape_smoke": 18,
"pt_shape_snow": 24,
"pt_shape_spark": 19,
"pt_shape_sphere": 25,
"pt_shape_square": 23,
"pt_shape_star": 26,
"FONT_builtin": 2
},
_72: [],
_82: [],
_92: [],
_a2: [{
_v1: "fn_text",
size: 12,
bold: !1,
_b2: !1,
first: 32,
_c2: 9647,
_d2: 0,
antialias: 1,
_e2: "anim_curve_icon_font",
_f2: 2,
_g2: 1,
scaleX: 1,
scaleY: 1,
_h2: [{
_i2: 32,
_j2: " ",
x: 2,
y: 2,
_k2: 8,
_l2: 18,
shift: 8,
offset: 0
}, {
_i2: 33,
_j2: "!",
x: 173,
y: 42,
_k2: 3,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 34,
_j2: "\"",
x: 165,
y: 42,
_k2: 6,
_l2: 18,
shift: 10,
offset: 2
}, {
_i2: 35,
_j2: "#",
x: 153,
y: 42,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 36,
_j2: "$",
x: 143,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 37,
_j2: "%",
x: 131,
y: 42,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 38,
_j2: "&",
x: 119,
y: 42,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 39,
_j2: "'",
x: 114,
y: 42,
_k2: 3,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 40,
_j2: "(",
x: 106,
y: 42,
_k2: 6,
_l2: 18,
shift: 10,
offset: 2
}, {
_i2: 41,
_j2: ")",
x: 98,
y: 42,
_k2: 6,
_l2: 18,
shift: 10,
offset: 2
}, {
_i2: 42,
_j2: "*",
x: 178,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 43,
_j2: "+",
x: 88,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 44,
_j2: ",",
x: 72,
y: 42,
_k2: 4,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 45,
_j2: "-",
x: 64,
y: 42,
_k2: 6,
_l2: 18,
shift: 10,
offset: 2
}, {
_i2: 46,
_j2: ".",
x: 59,
y: 42,
_k2: 3,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 47,
_j2: "/",
x: 50,
y: 42,
_k2: 7,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 48,
_j2: "0",
x: 40,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 49,
_j2: "1",
x: 33,
y: 42,
_k2: 5,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 50,
_j2: "2",
x: 23,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 51,
_j2: "3",
x: 13,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 52,
_j2: "4",
x: 2,
y: 42,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 53,
_j2: "5",
x: 78,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 54,
_j2: "6",
x: 188,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 55,
_j2: "7",
x: 198,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 56,
_j2: "8",
x: 208,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 57,
_j2: "9",
x: 166,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 58,
_j2: ":",
x: 161,
y: 62,
_k2: 3,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 59,
_j2: ";",
x: 156,
y: 62,
_k2: 3,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 60,
_j2: "<",
x: 146,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 61,
_j2: "=",
x: 136,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 62,
_j2: ">",
x: 126,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 63,
_j2: "?",
x: 116,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 64,
_j2: "@",
x: 104,
y: 62,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 65,
_j2: "A",
x: 92,
y: 62,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 66,
_j2: "B",
x: 82,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 67,
_j2: "C",
x: 71,
y: 62,
_k2: 9,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 68,
_j2: "D",
x: 61,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 69,
_j2: "E",
x: 51,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 70,
_j2: "F",
x: 41,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 71,
_j2: "G",
x: 30,
y: 62,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 72,
_j2: "H",
x: 20,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 73,
_j2: "I",
x: 11,
y: 62,
_k2: 7,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 74,
_j2: "J",
x: 2,
y: 62,
_k2: 7,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 75,
_j2: "K",
x: 239,
y: 42,
_k2: 9,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 76,
_j2: "L",
x: 229,
y: 42,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 77,
_j2: "M",
x: 218,
y: 42,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 78,
_j2: "N",
x: 241,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 79,
_j2: "O",
x: 230,
y: 22,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 80,
_j2: "P",
x: 220,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 81,
_j2: "Q",
x: 227,
y: 2,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 82,
_j2: "R",
x: 209,
y: 2,
_k2: 9,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 83,
_j2: "S",
x: 199,
y: 2,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 84,
_j2: "T",
x: 188,
y: 2,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 85,
_j2: "U",
x: 177,
y: 2,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 86,
_j2: "V",
x: 165,
y: 2,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 87,
_j2: "W",
x: 153,
y: 2,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 88,
_j2: "X",
x: 141,
y: 2,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 89,
_j2: "Y",
x: 129,
y: 2,
_k2: 10,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 90,
_j2: "Z",
x: 118,
y: 2,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 91,
_j2: "[",
x: 220,
y: 2,
_k2: 5,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 92,
_j2: "\\",
x: 109,
y: 2,
_k2: 7,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 93,
_j2: "]",
x: 92,
y: 2,
_k2: 5,
_l2: 18,
shift: 10,
offset: 2
}, {
_i2: 94,
_j2: "^",
x: 81,
y: 2,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 95,
_j2: "_",
x: 68,
y: 2,
_k2: 11,
_l2: 18,
shift: 10,
offset: -1
}, {
_i2: 96,
_j2: "`",
x: 62,
y: 2,
_k2: 4,
_l2: 18,
shift: 10,
offset: 3
}, {
_i2: 97,
_j2: "a",
x: 52,
y: 2,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 98,
_j2: "b",
x: 42,
y: 2,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 99,
_j2: "c",
x: 32,
y: 2,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 100,
_j2: "d",
x: 22,
y: 2,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 101,
_j2: "e",
x: 12,
y: 2,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 102,
_j2: "f",
x: 99,
y: 2,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 103,
_j2: "g",
x: 238,
y: 2,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 104,
_j2: "h",
x: 100,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 105,
_j2: "i",
x: 2,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 106,
_j2: "j",
x: 202,
y: 22,
_k2: 6,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 107,
_j2: "k",
x: 191,
y: 22,
_k2: 9,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 108,
_j2: "l",
x: 181,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 109,
_j2: "m",
x: 170,
y: 22,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 110,
_j2: "n",
x: 160,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 111,
_j2: "o",
x: 149,
y: 22,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 112,
_j2: "p",
x: 139,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 113,
_j2: "q",
x: 129,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 114,
_j2: "r",
x: 120,
y: 22,
_k2: 7,
_l2: 18,
shift: 10,
offset: 2
}, {
_i2: 115,
_j2: "s",
x: 210,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 116,
_j2: "t",
x: 110,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 117,
_j2: "u",
x: 90,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 118,
_j2: "v",
x: 79,
y: 22,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 119,
_j2: "w",
x: 66,
y: 22,
_k2: 11,
_l2: 18,
shift: 10,
offset: -1
}, {
_i2: 120,
_j2: "x",
x: 55,
y: 22,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 121,
_j2: "y",
x: 44,
y: 22,
_k2: 9,
_l2: 18,
shift: 10,
offset: 0
}, {
_i2: 122,
_j2: "z",
x: 34,
y: 22,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 123,
_j2: "{",
x: 25,
y: 22,
_k2: 7,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 124,
_j2: "|",
x: 21,
y: 22,
_k2: 2,
_l2: 18,
shift: 10,
offset: 4
}, {
_i2: 125,
_j2: "}",
x: 12,
y: 22,
_k2: 7,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 126,
_j2: "~",
x: 176,
y: 62,
_k2: 8,
_l2: 18,
shift: 10,
offset: 1
}, {
_i2: 9647,
_j2: "▯",
x: 186,
y: 62,
_k2: 10,
_l2: 18,
shift: 16,
offset: 3
}, ],
}],
_m2: [, {
_v1: "FONT_builtin",
size: 11,
bold: !1,
_b2: !1,
first: 32,
_c2: 9647,
_d2: 0,
antialias: 1,
_e2: "Roboto Mono",
_f2: 0,
_g2: 2,
scaleX: 1,
scaleY: 1,
_h2: [{
_i2: 32,
_j2: " ",
x: 2,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 33,
_j2: "!",
x: 127,
y: 44,
_k2: 3,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 34,
_j2: "\"",
x: 120,
y: 44,
_k2: 5,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 35,
_j2: "#",
x: 109,
y: 44,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 36,
_j2: "$",
x: 100,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 37,
_j2: "%",
x: 89,
y: 44,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 38,
_j2: "&",
x: 78,
y: 44,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 39,
_j2: "'",
x: 74,
y: 44,
_k2: 2,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 40,
_j2: "(",
x: 67,
y: 44,
_k2: 5,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 41,
_j2: ")",
x: 60,
y: 44,
_k2: 5,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 42,
_j2: "*",
x: 132,
y: 44,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 43,
_j2: "+",
x: 49,
y: 44,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 44,
_j2: ",",
x: 34,
y: 44,
_k2: 3,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 45,
_j2: "-",
x: 25,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 46,
_j2: ".",
x: 20,
y: 44,
_k2: 3,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 47,
_j2: "/",
x: 11,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 48,
_j2: "0",
x: 2,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 49,
_j2: "1",
x: 245,
y: 23,
_k2: 5,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 50,
_j2: "2",
x: 235,
y: 23,
_k2: 8,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 51,
_j2: "3",
x: 225,
y: 23,
_k2: 8,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 52,
_j2: "4",
x: 214,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 53,
_j2: "5",
x: 39,
y: 44,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 54,
_j2: "6",
x: 142,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 55,
_j2: "7",
x: 151,
y: 44,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 56,
_j2: "8",
x: 162,
y: 44,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 57,
_j2: "9",
x: 110,
y: 65,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 58,
_j2: ":",
x: 105,
y: 65,
_k2: 3,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 59,
_j2: ";",
x: 100,
y: 65,
_k2: 3,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 60,
_j2: "<",
x: 91,
y: 65,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 61,
_j2: "=",
x: 82,
y: 65,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 62,
_j2: ">",
x: 73,
y: 65,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 63,
_j2: "?",
x: 64,
y: 65,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 64,
_j2: "@",
x: 53,
y: 65,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 65,
_j2: "A",
x: 42,
y: 65,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 66,
_j2: "B",
x: 32,
y: 65,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 67,
_j2: "C",
x: 21,
y: 65,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 68,
_j2: "D",
x: 11,
y: 65,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 69,
_j2: "E",
x: 2,
y: 65,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 70,
_j2: "F",
x: 241,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 71,
_j2: "G",
x: 230,
y: 44,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 72,
_j2: "H",
x: 221,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 73,
_j2: "I",
x: 212,
y: 44,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 74,
_j2: "J",
x: 202,
y: 44,
_k2: 8,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 75,
_j2: "K",
x: 192,
y: 44,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 76,
_j2: "L",
x: 182,
y: 44,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 77,
_j2: "M",
x: 172,
y: 44,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 78,
_j2: "N",
x: 205,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 79,
_j2: "O",
x: 194,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 80,
_j2: "P",
x: 184,
y: 23,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 81,
_j2: "Q",
x: 208,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 82,
_j2: "R",
x: 192,
y: 2,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 83,
_j2: "S",
x: 181,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 84,
_j2: "T",
x: 170,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 85,
_j2: "U",
x: 161,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 86,
_j2: "V",
x: 150,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 87,
_j2: "W",
x: 139,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 88,
_j2: "X",
x: 128,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 89,
_j2: "Y",
x: 117,
y: 2,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 90,
_j2: "Z",
x: 107,
y: 2,
_k2: 8,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 91,
_j2: "[",
x: 202,
y: 2,
_k2: 4,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 92,
_j2: "\\",
x: 98,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 93,
_j2: "]",
x: 82,
y: 2,
_k2: 4,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 94,
_j2: "^",
x: 73,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 95,
_j2: "_",
x: 64,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 96,
_j2: "`",
x: 59,
y: 2,
_k2: 3,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 97,
_j2: "a",
x: 50,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 98,
_j2: "b",
x: 41,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 99,
_j2: "c",
x: 32,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 100,
_j2: "d",
x: 23,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 101,
_j2: "e",
x: 13,
y: 2,
_k2: 8,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 102,
_j2: "f",
x: 88,
y: 2,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 103,
_j2: "g",
x: 219,
y: 2,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 104,
_j2: "h",
x: 72,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 105,
_j2: "i",
x: 228,
y: 2,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 106,
_j2: "j",
x: 167,
y: 23,
_k2: 6,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 107,
_j2: "k",
x: 157,
y: 23,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 108,
_j2: "l",
x: 147,
y: 23,
_k2: 8,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 109,
_j2: "m",
x: 136,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 110,
_j2: "n",
x: 127,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 111,
_j2: "o",
x: 116,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 112,
_j2: "p",
x: 107,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 113,
_j2: "q",
x: 98,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 114,
_j2: "r",
x: 90,
y: 23,
_k2: 6,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 115,
_j2: "s",
x: 175,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 116,
_j2: "t",
x: 81,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 117,
_j2: "u",
x: 63,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 118,
_j2: "v",
x: 52,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 119,
_j2: "w",
x: 41,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 120,
_j2: "x",
x: 30,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 121,
_j2: "y",
x: 19,
y: 23,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 122,
_j2: "z",
x: 10,
y: 23,
_k2: 7,
_l2: 19,
shift: 9,
offset: 1
}, {
_i2: 123,
_j2: "{",
x: 2,
y: 23,
_k2: 6,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 124,
_j2: "|",
x: 246,
y: 2,
_k2: 3,
_l2: 19,
shift: 9,
offset: 3
}, {
_i2: 125,
_j2: "}",
x: 238,
y: 2,
_k2: 6,
_l2: 19,
shift: 9,
offset: 2
}, {
_i2: 126,
_j2: "~",
x: 119,
y: 65,
_k2: 9,
_l2: 19,
shift: 9,
offset: 0
}, {
_i2: 9647,
_j2: "▯",
x: 130,
y: 65,
_k2: 5,
_l2: 19,
shift: 8,
offset: 1
}, ],
}],
_n2: [],
_o2: [{}],
_p2: [{
_v1: "obj_player_2",
_q2: 7,
_r2: !0,
parent: -100,
_s2: _t2,
_u2: _v2,
_w2: _x2,
_y2: [],
_z2: [1, _A2, 6, _B2]
}, {
_v1: "obj_rock",
_q2: 3,
_r2: !0,
parent: -100,
_s2: _C2,
_u2: _D2,
_E2: _F2,
_w2: _G2,
_y2: [],
_z2: []
}, {
_v1: "obj_laser",
_q2: 2,
_r2: !0,
parent: -100,
_s2: _H2,
_E2: _I2,
_w2: _J2,
_y2: [],
_z2: [1, _K2]
}, {
_v1: "obj_spawner",
_q2: -1,
_r2: !0,
_L2: !0,
parent: -100,
_M2: _N2,
_O2: _P2,
_Q2: _R2,
_w2: _S2,
_y2: [],
_z2: []
}, {
_v1: "obj_level",
_q2: -1,
_r2: !0,
_L2: !0,
parent: -100,
_s2: _T2,
_u2: _U2,
_V2: _W2,
_w2: _X2,
_y2: [],
_z2: []
}, {
_v1: "obj_dust",
_q2: 6,
_r2: !0,
parent: -100,
_s2: _Y2,
_u2: _Z2,
_w2: __2,
_y2: [],
_z2: []
}, {
_v1: "obj_life",
_q2: 1,
_r2: !0,
parent: -100,
_s2: _03,
_w2: _13,
_y2: [],
_z2: [2, _23]
}, {
_v1: "obj_player_1",
_r2: !0,
parent: -100,
_s2: _33,
_u2: _43,
_w2: _53,
_y2: [],
_z2: [1, _63, 6, _73]
}],
_83: [],
_93: [],
_a3: [],
_b3: [],
_c3: [{
_v1: "rm_gameover",
width: 1500,
height: 800,
_d3: 0,
_e3: 0,
_f3: 2,
_g3: !1,
_h3: !1,
_i3: [],
_j3: [{
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}],
_o3: [],
_p3: [],
_q3: [{
_v1: "Instances",
id: 0,
type: 2,
_r3: 0,
x: 0,
y: 0,
_s3: 0,
_t3: 0,
_r2: 1,
_u3: 0,
_v3: []
}, {
_v1: "Background",
id: 1,
type: 1,
_r3: 100,
x: 0,
y: 0,
_s3: 0,
_t3: 0,
_r2: 1,
_w3: !0,
_x3: !1,
_y3: 5,
_z3: !1,
_A3: !1,
_B3: !1,
_C3: -1,
_D3: 0,
_E3: 30
}]
}, {
_v1: "rm_level_1",
width: 1500,
height: 800,
_d3: 0,
_e3: 0,
_f3: 2,
_g3: !1,
_h3: !1,
_i3: [],
_j3: [{
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}],
_o3: [{
x: 420,
y: 352,
index: 7,
id: 100000,
rotation: 0,
scaleX: 1,
scaleY: 1,
imageSpeed: 1,
imageIndex: 0,
_e3: 4294967295
}, {
x: 420,
y: 480,
index: 0,
id: 100001,
rotation: 0,
scaleX: 1,
scaleY: 1,
imageSpeed: 1,
imageIndex: 0,
_e3: 4294967295
}],
_p3: [],
_q3: [{
_v1: "Instances",
id: 2,
type: 2,
_r3: 0,
x: 0,
y: 0,
_s3: 0,
_t3: 0,
_r2: 1,
_u3: 2,
_v3: [100000, 100001]
}, {
_v1: "Background",
id: 3,
type: 1,
_r3: 100,
x: 0,
y: 0,
_s3: 0,
_t3: 0,
_r2: 1,
_w3: !0,
_x3: !1,
_y3: 5,
_z3: !1,
_A3: !1,
_B3: !1,
_C3: -1,
_D3: 0,
_E3: 30
}]
}, {
_v1: "rm_title",
width: 1500,
height: 800,
_d3: 0,
_e3: 0,
_f3: 2,
_g3: !1,
_h3: !1,
_i3: [],
_j3: [{
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}, {
_k3: 1366,
_l3: 768,
_m3: 1366,
_n3: 768
}],
_o3: [{
x: 0,
y: 0,
index: 4,
id: 100002,
rotation: 0,
scaleX: 1,
scaleY: 1,
imageSpeed: 1,
imageIndex: 0,
_e3: 4294967295
}, {
x: 32,
y: 0,
index: 3,
id: 100003,
rotation: 0,
scaleX: 1,
scaleY: 1,
imageSpeed: 1,
imageIndex: 0,
_e3: 4294967295
}],
_p3: [],
_q3: [{
_v1: "Instances",
id: 4,
type: 2,
_r3: 0,
x: 0,
y: 0,
_s3: 0,
_t3: 0,
_r2: 1,
_u3: 2,
_v3: [100002, 100003]
}, {
_v1: "Background",
id: 5,
type: 1,
_r3: 100,
x: 0,
y: 0,
_s3: 0,
_t3: 0,
_r2: 1,
_w3: !0,
_x3: !1,
_y3: 5,
_z3: !1,
_A3: !1,
_B3: !1,
_C3: -1,
_D3: 0,
_E3: 30
}]
}],
_F3: [2, 1, 0],
_G3: [{
x: 2,
y: 2,
_k2: 1500,
_l2: 800,
_H3: 0,
_I3: 0,
_J3: 1500,
_K3: 800,
_L3: 1500,
_M3: 800,
_N3: 0
}, {
x: 2,
y: 806,
_k2: 256,
_l2: 128,
_H3: 0,
_I3: 0,
_J3: 256,
_K3: 128,
_L3: 256,
_M3: 128,
_N3: 0
}, {
x: 264,
y: 808,
_k2: 256,
_l2: 128,
_H3: 0,
_I3: 0,
_J3: 256,
_K3: 128,
_L3: 256,
_M3: 128,
_N3: 0
}, {
x: 526,
y: 806,
_k2: 150,
_l2: 150,
_H3: 0,
_I3: 0,
_J3: 150,
_K3: 150,
_L3: 150,
_M3: 150,
_N3: 0
}, {
x: 2,
y: 938,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 680,
y: 806,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 106,
y: 938,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 784,
y: 806,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 680,
y: 876,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 210,
y: 942,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 888,
y: 806,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 784,
y: 876,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 680,
y: 946,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 314,
y: 942,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 992,
y: 806,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 888,
y: 876,
_k2: 100,
_l2: 66,
_H3: 0,
_I3: 12,
_J3: 100,
_K3: 66,
_L3: 100,
_M3: 100,
_N3: 0
}, {
x: 786,
y: 948,
_k2: 64,
_l2: 64,
_H3: 0,
_I3: 0,
_J3: 64,
_K3: 64,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 420,
y: 944,
_k2: 64,
_l2: 64,
_H3: 0,
_I3: 0,
_J3: 64,
_K3: 64,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1098,
y: 808,
_k2: 64,
_l2: 64,
_H3: 0,
_I3: 0,
_J3: 64,
_K3: 64,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 858,
y: 948,
_k2: 64,
_l2: 64,
_H3: 0,
_I3: 0,
_J3: 64,
_K3: 64,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1170,
y: 808,
_k2: 62,
_l2: 62,
_H3: 1,
_I3: 1,
_J3: 62,
_K3: 62,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 994,
y: 878,
_k2: 62,
_l2: 62,
_H3: 1,
_I3: 1,
_J3: 62,
_K3: 62,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 930,
y: 948,
_k2: 62,
_l2: 62,
_H3: 1,
_I3: 1,
_J3: 62,
_K3: 62,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1240,
y: 808,
_k2: 62,
_l2: 62,
_H3: 1,
_I3: 1,
_J3: 62,
_K3: 62,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1170,
y: 878,
_k2: 60,
_l2: 64,
_H3: 2,
_I3: 0,
_J3: 60,
_K3: 64,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1310,
y: 808,
_k2: 61,
_l2: 61,
_H3: 2,
_I3: 2,
_J3: 61,
_K3: 61,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1238,
y: 878,
_k2: 62,
_l2: 60,
_H3: 1,
_I3: 1,
_J3: 62,
_K3: 60,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 492,
y: 962,
_k2: 57,
_l2: 57,
_H3: 3,
_I3: 4,
_J3: 57,
_K3: 57,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1062,
y: 878,
_k2: 50,
_l2: 50,
_H3: 0,
_I3: 0,
_J3: 50,
_K3: 50,
_L3: 50,
_M3: 50,
_N3: 0
}, {
x: 998,
y: 946,
_k2: 50,
_l2: 16,
_H3: 0,
_I3: 17,
_J3: 50,
_K3: 16,
_L3: 50,
_M3: 50,
_N3: 0
}, {
x: 4,
y: 1010,
_k2: 62,
_l2: 10,
_H3: 1,
_I3: 27,
_J3: 62,
_K3: 10,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1377,
y: 806,
_k2: 16,
_l2: 15,
_H3: 0,
_I3: 0,
_J3: 16,
_K3: 15,
_L3: 16,
_M3: 15,
_N3: 0
}, {
x: 930,
y: 1018,
_k2: 1,
_l2: 1,
_H3: 31,
_I3: 31,
_J3: 1,
_K3: 1,
_L3: 64,
_M3: 64,
_N3: 0
}, {
x: 1308,
y: 875,
_k2: 1,
_l2: 1,
_H3: 0,
_I3: 0,
_J3: 1,
_K3: 1,
_L3: 1,
_M3: 1,
_N3: 0
}],
_O3: ["Opera GX + GameMaker game jam - Eternal Space_texture_0.png"],
_P3: [{
MipsToGenerate: 0
}],
_Q3: [{
_v1: "Default",
_R3: [0],
_S3: [0, 1, 2, 3, 4, 5, 6,
7
],
_T3: [],
_U3: [0],
_V3: []
}],
_W3: {
_X3: !1,
_Y3: 2,
_Z3: 0,
__3: 0,
_04: 60,
_14: 4294967295,
_24: 1500,
_34: 800,
_44: 0,
_54: "12ba3a59-5c60-4db6-a544-b268f83fc518",
_64: !1,
_74: !0,
_84: !0,
scale: 1,
_94: !0,
_a4: !1,
_b4: !1,
_c4: !1,
_d4: !1,
_e4: !1,
_f4: !0,
_g4: !0,
_h4: 2,
_i4: 0,
_j4: !0,
_k4: "html5game",
_l4: "Default",
_m4: 0,
_n4: !1,
_o4: !0,
_p4: !0,
_q4: !0,
_r4: 0,
_s4: [198, 80, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
_t4: 1,
_u4: 0,
_v4: 0,
_w4: 0,
_x4: "Eternal Space",
_y4: !1,
_z4: 1628758613,
_A4: "True"
}
}; // /// @description Insert description here
function _t2(_B4,
_C4) {
if (yyGetBool(global._D4)) {
{
_E4(_B4);
}
};
_B4._F4 = 7.5;
} // /// @description Insert description here
function _v2(_B4, _C4) {
if (yyGetBool(_G4(76))) {
{
_H4(_B4.x, _B4.y, "Instances", 2);
}
};
if (yyGetBool(_I4(75))) {
{
_B4.y = yyfminus(_B4.y, 15);
}
};
_B4.y = yyfplus(_B4.y, _B4._F4);
_J4(_B4, 1, 1, yyfdivide(_K4(_B4._L4), 2));
}
function _x2(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _A2(_B4, _C4) {
_N4._O4(_N4._P4 - 1);
_N4._Q4 = yyfminus(_N4._Q4, 1000); {
var _R4 = _S4(3);
for (var _T4 in _R4) {
if (!_R4.hasOwnProperty(_T4)) continue;
var _U4 = _R4[_T4]; {
{
_V4(68063);
_U4._W4 = _X4(_U4._W4, 3313249962);
_U4._W4[_Y4(1)] = _N4._Z4();
};
}
}
};
_E4(_B4);
for (var __4 = 0, _05 = yyGetInt32(15); __4 < _05; __4++) {
{
_H4(_B4.x, _B4.y, "Instances", 5);
}
};
} // /// @description Insert description here
function _B2(_B4, _C4) {
{
_E4(_C4);
};
_N4._O4(_N4._P4 + 1);
} // /// @description Insert description here
function _C2(_B4, _C4) {
_B4._15 = _25(3, 4);
_B4._35 = _45(160, 200);
_B4._55 = _45(0, 359);
_B4._d3 = 5;
_B4._65 = _25(_45(0, 1));
} // /// @description Insert description here
function _D2(_B4,
_C4) {
if (yyGetBool(_B4._65)) {
{
_B4._55 = yyfminus(_B4._55, 1);
}
} else {
{
_B4._55 = yyfplus(_B4._55, 1);
}
};
} // /// @description Insert description here
function _F2(_B4, _C4) {
_E4(_B4);
}
function _G2(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _H2(_B4, _C4) {
_B4._d3 = 50;
} // /// @description Insert description here
function _I2(_B4, _C4) {
_E4(_B4);
}
function _J2(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _K2(_B4, _C4) {
_E4(_B4); {
_E4(_C4);
for (var _75 = 0, _85 = yyGetInt32(15); _75 < _85; _75++) {
{
_H4(_C4.x, _C4.y, "Instances", 5);
}
};
if (yyfequal(_C4._15, 3)) {
{
var _95 = _25(_45(1, 10));
if (yyfequal(_95, 2)) {
{
_H4(_C4.x, _C4.y, "Instances", 6);
}
};
for (var _a5 = 0, _b5 = yyGetInt32(3); _a5 < _b5; _a5++) {
{
var _c5 = _H4(_C4.x, _C4.y, "Instances", 1);
_d5(_B4, _C4, _c5)._15 = 4;
}
};
}
};
}; {
var _e5 = _C4._15;
var _f5 = -1;
if (yyCompareVal(_e5, 3, g_GMLMathEpsilon, false) == 0) {
_f5 = 0;
} else if (yyCompareVal(_e5, 4, g_GMLMathEpsilon, false) == 0) {
_f5 = 1;
}
switch (_f5) {
case 0: {
_N4._Q4 = yyfplus(_N4._Q4, 900);
}
case 1: {
_N4._Q4 = yyfplus(_N4._Q4, 100);
break;
}
};
};
} // /// @description Insert description here
function _N2(_B4, _C4) {
_H4(_N4._g5, _25(_45(0, _N4._h5)), "Instances", 1); {
_V4(68063);
_B4._W4 = _X4(_B4._W4, 1584050178);
_B4._W4[_Y4(0)] = _N4._Z4();
};
} // /// @description Insert description here
function _P2(_B4, _C4) {
_i5();
} // /// @description Insert description here
function _R2(_B4, _C4) {
_H4(_N4._g5, _25(_45(0, _N4._h5)), "Instances", 1); {
_V4(68063);
_B4._W4 = _X4(_B4._W4, 1584050178);
_B4._W4[_Y4(0)] = 60;
};
}
function _S2(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _T2(_B4,
_C4) {
_B4._j5 = 0;
_N4._Q4 = 0;
_N4._O4(3);
_k5(0);
_l5();
} // /// @description Insert description here
function _U2(_B4, _C4) {
if ((yyGetBool(yyfequal(_N4._m5(), 1))) && (yyGetBool(yyflessequal(_N4._P4, 0)))) {
{
_n5(0);
}
};
if ((yyGetBool(yyfequal(_N4._m5(), 0))) || (yyGetBool(yyfequal(_N4._m5(), 2)))) {
{
_N4._O4(3);
_N4._Q4 = 0;
if ((yyGetBool(_G4(13))) || (yyGetBool(_G4(49)))) {
{
global._D4 = 1 ? 1 : 0;
_n5(1);
}
};
if ((yyGetBool(_G4(77))) || (yyGetBool(_G4(50)))) {
{
global._D4 = 0 ? 1 : 0;
_n5(1);
}
};
}
};
if (yyGetBool(_G4(27))) {
{
_n5(2);
}
};
if (yyfgreaterequal(_N4._Q4,
_B4._j5)) {
{
_B4._j5 = _N4._Q4;
}
};
} // /// @description Insert description here
function _W2(_B4, _C4) {
var _o5 = _N4._m5();
var _p5 = -1;
if (yyCompareVal(_o5, 1, g_GMLMathEpsilon, false) == 0) {
_p5 = 0;
} else if (yyCompareVal(_o5, 0, g_GMLMathEpsilon, false) == 0) {
_p5 = 1;
} else if (yyCompareVal(_o5, 2, g_GMLMathEpsilon, false) == 0) {
_p5 = 2;
}
switch (_p5) {
case 0: {
_q5(20, 20, yyfplus("HIGH SCORE: ", _K4(_r5(_B4._j5))));
_q5(20, 40, yyfplus("SCORE: ", _K4(_r5(_N4._Q4))));
_q5(20, 60, yyfplus("LIVES: ", _K4(_r5(_N4._P4))));
break;
}
case 1: {
_s5(1);
_t5(yyfdivide(_K4(_N4._g5),
2), 100, "Eternal Space", 3, 3, 0, 65535, 16777215, 65535, 16777215, 1);
_q5(yyfdivide(_K4(_N4._g5), 2), yyfdivide(_K4(_N4._h5), 2), "Game Over");
_q5(yyfdivide(_K4(_N4._g5), 2), yyfplus(_K4(yyfdivide(_K4(_N4._h5), 2)), 50), yyfplus("High score: ", _K4(_r5(_B4._j5))));
_q5(yyfdivide(_K4(_N4._g5), 2), yyfplus(_K4(yyfdivide(_K4(_N4._h5), 2)), 100), yyfplus("Final score: ", _K4(_r5(_N4._Q4))));
_q5(yyfdivide(_K4(_N4._g5), 2), yyfplus(_K4(yyfdivide(_K4(_N4._h5), 2)), 150), ">> (solo) Press enter to restart <<");
_q5(yyfdivide(_K4(_N4._g5),
2), yyfplus(_K4(yyfdivide(_K4(_N4._h5), 2)), 170), ">> (duo) Press \"M\" to start <<");
_s5(0);
break;
}
case 2: {
_s5(1);
_t5(yyfdivide(_K4(_N4._g5), 2), 100, "Eternal Space", 3, 3, 0, 65535, 16777215, 65535, 16777215, 1);
_q5(yyfdivide(_K4(_N4._g5), 2), yyfdivide(_K4(_N4._h5), 2), "Grab a friend and try to last as long as possible!");
_q5(yyfdivide(_K4(_N4._g5), 2), yyfplus(_K4(yyfdivide(_K4(_N4._h5), 2)), 50), ">> (solo) Press enter to start <<");
_q5(yyfdivide(_K4(_N4._g5), 2), yyfplus(_K4(yyfdivide(_K4(_N4._h5), 2)), 70), ">> (duo) Press \"M\" to start <<");
_s5(0);
break;
}
};
}
function _X2(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _Y2(_B4, _C4) {
_B4._35 = _45(0, 359);
_B4._d3 = 1;
} // /// @description Insert description here
function _Z2(_B4, _C4) {
_B4._u5 = yyfminus(_B4._u5, 0.01);
if (yyflessequal(_B4._u5, 0)) {
{
_E4(_B4);
}
};
}
function __2(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _03(_B4, _C4) {
_B4._d3 = (-3);
}
function _13(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _23(_B4,
_C4) {
_E4(_B4);
for (var _v5 = 0, _w5 = yyGetInt32(15); _v5 < _w5; _v5++) {
{
_H4(_B4.x, _B4.y, "Instances", 5);
}
};
} // /// @description Insert description here
function _33(_B4, _C4) {
_B4._F4 = 7.5;
} // /// @description Insert description here
function _43(_B4, _C4) {
if (yyGetBool(_G4(69))) {
{
_H4(_B4.x, _B4.y, "Instances", 2);
}
};
if (yyGetBool(_I4(87))) {
{
_B4.y = yyfminus(_B4.y, 15);
}
};
_B4.y = yyfplus(_B4.y, _B4._F4);
_J4(_B4, 1, 1, yyfdivide(_K4(_B4._L4), 2));
}
function _53(_B4, _C4) {
_M4(_B4, _C4);
} // /// @description Insert description here
function _63(_B4,
_C4) {
_N4._O4(_N4._P4 - 1);
_N4._Q4 = yyfminus(_N4._Q4, 5000); {
var _x5 = _S4(3);
for (var _y5 in _x5) {
if (!_x5.hasOwnProperty(_y5)) continue;
var _z5 = _x5[_y5]; {
{
_V4(68063);
_z5._W4 = _X4(_z5._W4, 31060195);
_z5._W4[_Y4(1)] = _N4._Z4();
};
}
}
};
_E4(_B4);
for (var _A5 = 0, _B5 = yyGetInt32(15); _A5 < _B5; _A5++) {
{
_H4(_B4.x, _B4.y, "Instances", 5);
}
};
} // /// @description Insert description here
function _73(_B4, _C4) {
{
_E4(_C4);
};
_N4._O4(_N4._P4 + 1);
}
function _C5() {
_D5._E5 = true;
_F5._E5 = true;
_G5._E5 = true;
_H5._E5 = true;
_I5._E5 = true;
_J5._E5 = true;
_K5._E5 = true;
_L5._E5 = true;
_M5._E5 = true;
_N5._E5 = true;
_O5._E5 = true;
_P5._E5 = true;
_Q5._E5 = true;
_J4._E5 = true;
_R5._E5 = true;
_S5._E5 = true;
_T5._E5 = true;
_U5._E5 = true;
_V5._E5 = true;
_W5._E5 = true;
_X5._E5 = true;
_Y5._E5 = true;
_Z5._E5 = true;
__5._E5 = true;
_06._E5 = true;
_16._E5 = true;
_26._E5 = true;
_36._E5 = true;
_46._E5 = true;
_56._E5 = true;
_66._E5 = true;
_76._E5 = true;
_86._E5 = true;
_96._E5 = true;
_a6._E5 = true;
_b6._E5 = true;
_c6._E5 = true;
_d6._E5 = true;
_e6._E5 = true;
_f6._E5 = true;
_g6._E5 = true;
_h6._E5 = true;
_i6._E5 = true;
_j6._E5 = true;
_k6._E5 = true;
_l6._E5 = true;
_m6._E5 = true;
_E4._E5 = true;
_n6._E5 = true;
_o6._E5 = true;
_p6._E5 = true;
_q6._E5 = true;
_r6._E5 = true;
_s6._E5 = true;
_t6._E5 = true;
_u6._E5 = true;
_v6._E5 = true;
_w6._E5 = true;
_x6._E5 = true;
_y6._E5 = true;
_z6._E5 = true;
_A6._E5 = true;
_B6._E5 = true;
_C6._E5 = true;
_D6._E5 = true;
_E6._E5 = true;
_F6._E5 = true;
_G6._E5 = true;
_H6._E5 = true;
_I6._E5 = true;
_J6._E5 = true;
_K6._E5 = true;
_M4._L6 = true;
_M6._L6 = true;
_N6._L6 = true;
_O6._L6 = true;
_P6._E5 = true;
_Q6._E5 = true;
_R6._E5 = true;
_S6._E5 = true;
_T6._E5 = true;
_U6._E5 = true;
_V6._E5 = true;
_W6._E5 = true;
_X6._E5 = true;
_Y6._E5 = true;
_Z6._E5 = true;
__6._E5 = true;
_07._E5 = true;
_17._E5 = true;
_27._E5 = true;
_37._E5 = true;
_47._E5 = true;
_57._E5 = true;
_67._E5 = true;
_77._E5 = true;
_87._E5 = true;
_97._E5 = true;
_a7._E5 = true;
_b7._E5 = true;
_c7._E5 = true;
_d7._E5 = true;
_e7._E5 = true;
_f7._E5 = true;
_g7._E5 = true;
_h7._E5 = true;
_i7._E5 = true;
_j7._E5 = true;
_k7._E5 = true;
_l7._E5 = true;
_m7._E5 = true;
_n7._E5 = true;
_o7._E5 = true;
_p7._E5 = true;
_q7._E5 = true;
_r7._E5 = true;
_s7._E5 = true;
_t7._E5 = true;
_u7._E5 = true;
_v7._E5 = true;
_w7._E5 = true;
_x7._E5 = true;
_y7._E5 = true;
_z7._E5 = true;
_A7._E5 = true;
_B7._E5 = true;
_C7._E5 = true;
_D7._E5 = true;
_E7._E5 = true;
_F7._E5 = true;
}
function _G7() {}
_o1._H7 = [];
_o1._I7 = []; /*@constructor */
function _J7(_K7) {
this._L7 = false;
this._M7 = 0;
this._N7 = 0;
this._O7 = false;
this._P7 = null;
this._Q7 = null;
this._R7 = null;
this._S7 = null;
this._T7 = null;
this._U7 = null;
this._V7 = [];
this._W7(_K7._U7)
};
_J7.prototype._X7 = function () {
var _Y7 = new _J7({
_U7: this._U7
});
return _Y7
};;
_J7.prototype._W7 = function (_Z7) {
this._U7 = _Z7;
this._P7 = new spine.__7(_Z7);
this._T7 = new spine._08(this._P7.data);
this._S7 = new spine._18(this._T7);
var listener = new Object();
listener.start = function (_28) {};
listener.end = function (_28) {};
listener.complete = function (_28, _38) {};
listener.event = function (_28, _48) {
var map = _58();
_N4._68 = map;
_78(map, "name", _48.data.name);
_78(map, "track", _28);
_78(map, "integer", _48._88);
_78(map, "float", _48._98);
var _a8 = _48._a8 ? _48._a8 : _48.data._a8;
_78(map, "string", _a8);
_b8._c8(_d8, 0);
_e8(map);
_N4._68 = -1
};
this._S7._f8(listener);
if (_Z7.animations.length > 0) {
this._g8(null)
}
this._h8(null);
this._Q7 = new spine._i8();
var _j8 = this._P7._k8();
this._l8 = [_j8.scaleX, _j8.scaleY * -1.0];
};;
_J7.prototype._m8 = function (_n8, _o8) {
if (_o8 == undefined) _o8 = 0;
if (_o8 < 0) return 0;
if (_o8 >= this._S7._O1.length) return 0;
var _p8 = _q8 ? _q8._r8() : 30;
if (_s8) {
if ((_n8 != undefined) && (_n8 != null)) {
if (_n8._t8 == _u8) {
_p8 = _v8._w8()
} else {
_p8 = _n8._E1
}
} else {
_p8 = _v8._w8()
}
}
if (this._S7._O1[_o8] == null) {
return ~~((_p8 * this._R7.duration) + 0.5)
}
return ~~((_p8 * this._S7._O1[_o8]._x8.duration) + 0.5)
};;
function _y8(_z8, _A8) {
if (_A8 < 0.0) return _z8;
var _B8 = _z8 / _A8;
var _C8 = _B8 - Math.floor(_B8);
var _D8 = _C8 * _A8;
return _D8
}
_J7.prototype._E8 = function (_o8) {
if (_o8 < 0) return 0;
if (_o8 >= this._S7._O1.length) return 0;
if (this._S7._O1[_o8] === null) return 0;
var _p8 = _q8 ? _q8._r8() : 30;
if (_s8) {
_p8 = _v8._w8()
}
if (_p8 <= 0) return 0;
var _F8 = this._S7._O1[_o8]._G8 * _p8;
_F8 = _y8(_F8, _p8 * this._S7._O1[_o8]._x8.duration);
return ~~(_F8 + 0.5)
};;
_J7.prototype._H8 = function (_o8, _I8) {
if (_o8 < 0) return;
if (_o8 >= this._S7._O1.length) return;
if (this._S7._O1[_o8] === null) return;
var _p8 = _q8 ? _q8._r8() : 30;
if (_s8) {
_p8 = _v8._w8()
}
if (_p8 <= 0) return 0;
var _F8 = _y8(_I8, _p8 * this._S7._O1[_o8]._x8.duration);
var time = (_F8 / _p8);
this._S7._O1[_o8]._G8 = time;
this._L7 = true
};;
_J7.prototype._g8 = function (_J8) {
this._K8(_J8, 0)
};;
_J7.prototype._K8 = function (_J8, _o8) {
var _x8 = null;
if (((_J8 === null) || (_J8 === undefined)) && (_o8 === 0)) {
if (this._U7.animations.length > 0) {
_x8 = this._U7._L8(this._U7.animations[0].name)
}
} else {
_x8 = this._U7._L8(_J8)
}
if (_x8 !== null && _x8 !== undefined) {
if (_o8 === 0) {
this._M7 = 0;
this._N7 = 0;
this._R7 = _x8
}
this._S7._M8(_o8, _x8.name, true)
}
};;
_J7.prototype._h8 = function (_N8) {
if (_N8 === null || _N8 === undefined) {
if (this._U7._O8) {
this._P7._P8(this._U7._O8.name)
}
} else {
this._P7._P8(_N8)
}
this._P7._Q8()
};;
_J7.prototype._R8 = function (_S8, _T8, _U8) {
this._T7._V8(_S8, _T8, _U8)
};;
_J7.prototype._W8 = function (_X8, _Y8) {
var slot = this._P7._Z8(_X8);
if ((slot !== null) && (slot !== undefined)) {
if (typeof (_Y8) === 'number') {
slot.__8(null)
} else {
var _09 = this._P7._19(_X8);
for (var _29 = 0; _29 < this._U7.skins.length; _29++) {
var skin = this._U7.skins[_29];
var attachment = skin._39(_09, _Y8);
if (attachment) {
slot.__8(attachment);
return
}
}
for (var _49 = 0; _49 < this._V7.length; _49++) {
var attachment = this._V7[_49].attachment;
if (attachment.name === _Y8) {
slot.__8(attachment);
return
}
}
}
}
};;
_J7.prototype._59 = function (_X8, _69) {
var slot = this._P7._Z8(_X8);
if ((slot !== null) && (slot !== undefined)) {
var _79, _89, _99, _a9;
_79 = (_69 & 0xff) / 255.0;
_89 = ((_69 & 0xff00) >> 8) / 255.0;
_99 = ((_69 & 0xff0000) >> 16) / 255.0;
if (slot.color != undefined) {
_a9 = slot.color._a9
} else {
_a9 = 1.0
}
slot.color = new spine._b9(_79, _89, _99, _a9)
}
};;
_J7.prototype._c9 = function (_X8, _d9) {
var slot = this._P7._Z8(_X8);
if ((slot !== null) && (slot !== undefined)) {
var _79, _89, _99, _a9;
_a9 = _d9;
if (slot.color != undefined) {
_79 = slot.color._79;
_89 = slot.color._89;
_99 = slot.color._99
} else {
_79 = 1.0;
_89 = 1.0;
_99 = 1.0
}
slot.color = new spine._b9(_79, _89, _99, _a9)
}
};;
_J7.prototype._e9 = function (_X8, _69) {
var slot = this._P7._Z8(_X8);
if ((slot !== null) && (slot !== undefined)) {
var _f9;
if (slot.color != undefined) {
_f9 = slot.color._79 * 255.0;
_f9 |= (slot.color._89 * 255.0) << 8;
_f9 |= (slot.color._99 * 255.0) << 16;
_f9 |= 0xff000000
} else {
_f9 = 0xffffffff
}
return _f9
}
return 0xffffffff;
};;
_J7.prototype._g9 = function (_X8,
_69) {
var slot = this._P7._Z8(_X8);
if ((slot !== null) && (slot !== undefined)) {
if (slot.color != undefined) {
return slot.color._a9
} else {
return 1.0
}
}
return 1.0
};;
_J7.prototype._h9 = function (_X8, _Y8) {
var _i9 = undefined;
var _09 = this._P7._19(_X8);
for (var _29 = 0; _29 < this._U7.skins.length; _29++) {
var skin = this._U7.skins[_29];
var attachment = skin._39(_09, _Y8);
if (attachment) {
_i9 = _Y8;
break
}
}
if (_i9 !== undefined) {
for (var _49 = 0; _49 < this._V7.length; _49++) {
var attachment = this._V7[_49].attachment;
if (attachment.name === _Y8) {
_i9 = _Y8;
break
}
}
}
return _i9
};;
_J7.prototype._j9 = function (_Y8, _k9, _l9, _m9, _n9, _o9, _p9, _q9, _r9, _69, _d9) {
var _s9 = _k9._t9[_l9 % _k9._u9()];
var _v9 = _w9[_s9._N3];
if (!_v9.complete) {
debug("Trying to create attachment " + _Y8 + " with texture that hasn't been loaded yet.");
return
}
var _x9 = new spine._y9();
_x9.name = _k9._v1;
_x9._z9 = _s9._N3;
_x9.width = _s9._A9.width;
_x9.height = _s9._A9.height;
_x9._B9 = spine._C9.Linear;
_x9._D9 = spine._C9.Linear;
_x9._E9 = spine._F9.ClampToEdge;
_x9._G9 = spine._F9.ClampToEdge;
_x9._A9 = new _H9();
_x9._A9.width = _x9.width;
_x9._A9.height = _x9.height;
_x9._A9._z9 = _s9._N3;
_x9._A9._I9 = _v9;
_x9._A9._J9(_x9._B9, _x9._D9);
_x9._A9._K9(_x9._E9, _x9._G9);
var _L9 = new spine._M9();
_L9._x9 = _x9;
_L9.name = _Y8;
_L9.x = 0;
_L9.y = 0;
_L9.width = _k9.width;
_L9.height = _k9.height;
_L9._N9 = _s9.x / _s9._A9.width;
_L9._O9 = _s9.y / _s9._A9.height;
_L9._P9 = (_s9.x + _s9._k2) / _s9._A9.width;
_L9._Q9 = (_s9.y + _s9._l2) / _s9._A9.height;
_L9._R9 = 0;
_L9._S9 = 0;
_L9._T9 = _L9.width;
_L9._U9 = _L9.height;
_L9.index = 0;
_L9.rotate = 0;
_L9._V9 = null;
_L9._W9 = null;
_L9._A9 = _x9._A9;
var _X9 = new spine._Y9("");
_X9._Z9.push(_x9);
_X9.__9.push(_L9);
var _0a = new spine._1a(_X9);
var _2a = _0a._3a(this._U7.skins[0], _Y8, _Y8);
_2a.width = _L9.width;
_2a.height = _L9.height;
_2a.scaleX = _o9;
_2a.scaleY = _p9;
_2a.x = _m9;
_2a.y = _n9;
_2a.rotation = _q9;
if ((_69 != undefined) && (_d9 != undefined)) {
var _4a = (_69 & 0xff) / 255.0,
_5a = ((_69 & 0xff00) >> 8) / 255.0,
_6a = ((_69 & 0xff0000) >> 16) / 255.0;
_2a.color = new spine._b9(_4a, _5a, _6a, _d9)
} else if (_r9 != undefined) {
_2a.color = new spine._b9();
_2a.color._7a(_r9)
}
_2a._8a(_2a);
this._V7.push({
attachment: _2a,
_X9: _X9
})
};;
_J7.prototype._9a = function (_z8) {
this._O7 = _z8
};;
_J7.prototype._aa = function (_l9, _ba, _ca, _da, _ea, _fa, _ga, _n8) {
var skeleton = this._P7;
var _j8 = this._P7._k8();
var _ha = this._M7;
var _ia = this._L7;
var _ja = -_fa;
var _ka = (_ga !== undefined);
var _la = _da * this._l8[0];
var _ma = _ea * this._l8[1];
var _na = (_la < 0) ? -1.0 : 1.0;
var _oa = (_ma < 0) ? -1.0 : 1.0;
var _pa = Math.abs(_la);
var _qa = Math.abs(_ma);
if ((_ia == true) || (_ha !== _l9) || (skeleton.x !== _ba) || (skeleton.y !== _ca) || (_j8.scaleX !== _pa) || (_j8.scaleY !== _qa) || (skeleton.scaleX != _na) || (skeleton.scaleY != _oa) || (_j8.rotation !== _ja)) {
var _ra = _n8;
if (((_n8 == undefined) || (_n8 == null)) && (_ga != undefined) && (_ga != null)) {
var index;
index = _ga._15;
_ra = _sa._ta(index)
}
var _ua = this._m8(_ra, 0);
if (_ua > 0) {
var _va = _l9 % _ua,
_wa = this._M7 % _ua,
duration = this._R7.duration,
_xa = this._R7._ya.length;
var _za = 0;
if (Math.abs(_va - _wa) < (_ua / 2)) {
if (_va > _wa) _za = 1;
else if (_va < _wa) _za = -1;
else _za = 0
}
if ((this._N7 > 0) && (_va < _wa)) {
_va += _ua
}
if (_wa - _va >= _ua - 1) {
_va += _ua
}
this._N7 = _za;
var _Aa = (_va - _wa) / _ua;
this._S7._Ba(_Aa * duration)
}
this._S7.apply(this._P7);
this._M7 = _l9;
skeleton.x = _ba;
skeleton.y = _ca;
skeleton.scaleX = _na;
skeleton.scaleY = _oa;
_j8.scaleX = _pa;
_j8.scaleY = _qa;
_j8.rotation = _ja;
_ka = true;
this._L7 = false
}
if (_ka) {
if (_ga) {
_ga._Ca(_Da, 0, _ga, null)
}
skeleton._ka();
this._Q7._Ba(this._P7, 1)
}
};;
_J7.prototype._Ea = function (_Fa, _ba, _ca, _da, _ea, _fa) {
var _ua = this._m8(0);
var _Ga = ~~(_ua * (_Fa / this._R7.duration) + 0.5);
this._aa(_Ga, _ba, _ca, _da, _ea, _fa)
};;
_J7.prototype._Ha = function (_Ia, _l9, _ba, _ca, _da, _ea, _fa) {
var _Ja = this._Q7;
if (_Ja._Ka.length > 0) {
this._aa(_l9, _ba, _ca, _da, _ea, _fa);
_Ia.left = ~~(_Ja._La + 0.5);
_Ia.right = ~~(_Ja._Ma + 0.5);
_Ia.top = ~~(_Ja._Na + 0.5);
_Ia.bottom = ~~(_Ja._Oa + 0.5);
return true
}
return false
};;
_J7.prototype._Pa = function (_Ia) {
if (this._Q7._Ka.length > 0) {
this._P7._ka();
this._Q7._Ba(this._P7, 1);
_Ia.left = this._Q7._La;
_Ia.right = this._Q7._Ma;
_Ia.top = this._Q7._Na;
_Ia.bottom = this._Q7._Oa;
return true
}
return false
};;
_J7.prototype._Qa = function () {
if (this._Q7 == null) return 0;
this._Q7._Ba(this._P7, 1);
return this._Q7._Ka.length
};;
_J7.prototype._Ra = function (_I8) {
if (this._Q7 != null) {
if (_I8 >= 0) {
if (_I8 < this._Q7._Ka.length) {
this._P7._ka();
this._Q7._Ba(this._P7, 1);
var _Sa = this._Q7._Ta[_I8];
var _Ua = _Sa.length / 2;
var _Va = [];
_Va.push(_Ua);
_Va.push(this._Q7._Ka[_I8].name);
for (var _i2 = 0; _i2 < _Ua; _i2++) {
_Va.push(_Sa[_i2 * 2]);
_Va.push(_Sa[_i2 * 2 + 1])
}
return _Va
}
}
}
var _Va = [];
_Va.push(0, "");
return _Va
};;
_J7.prototype._Wa = function (_l9, _ba, _ca, _da, _ea, _fa, _Xa, _Ya, _Za, __a, _0b, _1b, _2b) {
this._aa(_l9, _ba, _ca, _da, _ea, _fa);
_Xa._aa(_Ya, _Za, __a, _0b, _1b, _2b);
for (var _3b = 0; _3b < _Xa._Q7._Ta.length; _3b++) {
var _4b = _Xa._Q7._Ta[_3b];
var size = _4b.length / 2;
for (var _5b = 0; _5b < size; _5b++) {
var _6b, _7b, _8b, _9b;
_6b = _4b[(_5b * 2) + 0];
_7b = _4b[(_5b * 2) + 1];
if (_5b === (size - 1)) {
_8b = _4b[0];
_9b = _4b[1]
} else {
_8b = _4b[((_5b + 1) * 2) + 0];
_9b = _4b[((_5b + 1) * 2) + 1]
}
var _ab = this._Q7._bb(_6b, _7b, _8b, _9b);
if (_ab !== null) {
return true
}
}
}
return false
};;
_J7.prototype._cb = function (_l9, _ba, _ca, _da, _ea, _fa, _ra, _db, _Ya, _Za, __a, _0b, _1b, _2b) {
this._aa(_l9, _ba, _ca, _da, _ea, _fa);
if (_ra == null) {
return false
}
if (_ra._eb <= 0) {
return false
}
if (_ra._fb.length > 0) {
_Ya = _Ya % _ra._fb.length
}
if (_Ya < 0) {
_Ya = _Ya + _ra._fb.length
}
_0b = 1.0 / _0b;
_1b = 1.0 / _1b;
var _Ja = this._Q7;
var _gb = _hb(_Ja._La, _db.left);
var _79 = _ib(_Ja._Ma, _db.right);
var _jb = _hb(_Ja._Na, _db.top);
var _99 = _ib(_Ja._Oa, _db.bottom);
var _kb = Math.sin(-_2b * (_lb / 180.0));
var _mb = Math.cos(-_2b * (_lb / 180.0));
for (var _i2 = _gb; _i2 <= _79; _i2++) {
for (var _nb = _jb; _nb <= _99; _nb++) {
var _ob = ((_mb * (_i2 - _Za) + _kb * (_nb - __a)) * _0b + _ra._pb);
var _qb = ((_mb * (_nb - __a) - _kb * (_i2 - _Za)) * _1b + _ra._rb);
if ((_ob < 0) || (_ob >= _ra._sb)) {
continue
}
if ((_qb < 0) || (_qb >= _ra._tb)) {
continue
}
if (_ra._ub) {
if (!_ra._fb._Va[_Ya]._Va[_ob + (_qb * _ra._sb)]) {
continue
}
}
var _ab = _Ja._vb(_i2, _nb);
if (_ab !== null) {
return true
}
}
}
return false
};;
_J7.prototype._wb = function (_l9, _ba, _ca, _da, _ea, _fa, _xb, _yb) {
this._aa(_l9, _ba, _ca, _da, _ea, _fa);
var _ab = this._Q7._vb(_xb, _yb);
if (_ab !== null) {
return true
}
return false
};;
_J7.prototype._zb = function (_l9, _ba, _ca, _da, _ea, _fa, _xb, _yb, _Za, __a) {
this._aa(_l9, _ba, _ca, _da, _ea, _fa);
var _ab = this._Q7._bb(_xb, _yb, _Za, __a);
if (_ab !== null) {
return true
}
return false
};;
_J7.prototype._Ab = function (_l9, _ba, _ca, _da, _ea, _fa, _xb, _yb, _Za, __a) {
this._aa(_l9, _ba, _ca, _da,
_ea, _fa);
var _Ja = this._Q7;
var _ab = _Ja._bb(_xb, _yb, _Za, __a);
if (_ab !== null) {
return true
}
_ab = _Ja._bb(_xb, _yb, _Za, _yb);
if (_ab !== null) {
return true
}
_ab = _Ja._bb(_Za, _yb, _Za, __a);
if (_ab !== null) {
return true
}
_ab = _Ja._bb(_Za, __a, _xb, __a);
if (_ab !== null) {
return true
}
_ab = _Ja._bb(_xb, __a, _xb, _yb);
if (_ab !== null) {
return true
}
return false
};;
_J7.prototype._Bb = function (_l9, _ba, _ca, _da, _ea, _fa, _Cb) {
this._aa(_l9, _ba, _ca, _da, _ea, _fa);
var _Ja = this._Q7;
var skeleton = this._P7;
var _gb = _hb(_Ja._La, _Cb.left);
var _79 = _ib(_Ja._Ma, _Cb.right);
var _jb = _hb(_Ja._Na, _Cb.top);
var _99 = _ib(_Ja._Oa, _Cb.bottom);
var _Db = ((_Cb.right + _Cb.left) / 2);
var _Eb = ((_Cb.bottom + _Cb.top) / 2);
var _Fb = ((_Cb.right - _Cb.left) / 2);
var _Gb = ((_Cb.bottom - _Cb.top) / 2);
var _sb = (_Ja._Ma - _Ja._La);
var _tb = (_Ja._Oa - _Ja._Na);
var _pb = skeleton.x - _Ja._La;
var _rb = skeleton.y - _Ja._Na;
if ((_da == 1) && (_ea == 1) && (Math.abs(_fa) < 0.0001)) {
for (var _i2 = _gb; _i2 <= _79; _i2++) {
for (var _nb = _jb; _nb <= _99; _nb++) {
if (_Hb((_i2 - _Db) / _Fb) + _Hb((_nb - _Eb) / _Gb) > 1) continue;
var _ob = _i2 - _ba + _pb;
var _qb = _nb - _ca + _rb;
if ((_ob < 0) || (_ob >= _sb)) continue;
if ((_qb < 0) || (_qb >= _tb)) continue;
var _ab = _Ja._vb(_i2, _nb);
if (_ab !== null) {
return true
}
}
}
} else {
var _Ib = Math.sin(-_fa * _lb / 180.0);
var _Jb = Math.cos(-_fa * _lb / 180.0);
for (var _i2 = _gb; _i2 <= _79; _i2++) {
for (var _nb = _jb; _nb <= _99; _nb++) {
if (_Hb((_i2 - _Db) / _Fb) + _Hb((_nb - _Eb) / _Gb) > 1) continue;
var _ob = Math.floor((_Jb * (_i2 - _ba) + _Ib * (_nb - _ca)) / _da + _pb);
var _qb = Math.floor((_Jb * (_nb - _ca) - _Ib * (_i2 - _ba)) / _ea + _rb);
if ((_ob < 0) || (_ob >= _sb)) continue;
if ((_qb < 0) || (_qb >= _tb)) continue;
var _ab = _Ja._vb(_i2, _nb);
if (_ab !== null) {
return true
}
}
}
}
return false
};;
_J7.prototype._Kb = function (_Lb, _Mb) {
var bone = this._P7._Nb(_Lb);
if (bone) {
var _Ob = _Pb._ta(_Mb);
if (_Ob) {
_Ob["length"] = bone.data.length;
_Ob["x"] = bone.data.x;
_Ob["y"] = bone.data.y;
_Ob["angle"] = bone.data.rotation;
_Ob["xscale"] = bone.data.scaleX;
_Ob["yscale"] = bone.data.scaleY;
if ((bone.data.parent !== undefined) && (bone.data.parent !== null)) {
_Ob["parent"] = bone.data.parent.name
} else {
_Ob["parent"] = ""
}
return true
}
}
return false
};;
_J7.prototype._Qb = function (_Lb, _Mb) {
var bone = this._P7._Nb(_Lb);
if (bone) {
var _Ob = _Pb._ta(_Mb);
if (_Ob) {
bone.data.length = (_Ob["length"] !== undefined) ? _Ob["length"] : bone.data.length;
bone.data.x = (_Ob["x"] !== undefined) ? _Ob["x"] : bone.data.x;
bone.data.y = (_Ob["y"] !== undefined) ? _Ob["y"] : bone.data.y;
bone.data.rotation = (_Ob["angle"] !== undefined) ? _Ob["angle"] : bone.data.rotation;
bone.data.scaleX = (_Ob["xscale"] !== undefined) ? _Ob["xscale"] : bone.data.scaleX;
bone.data.scaleY = (_Ob["yscale"] !== undefined) ? _Ob["yscale"] : bone.data.scaleY;
return true
}
}
return false
};;
_J7.prototype._Rb = function (_Lb, _Mb) {
var bone = this._P7._Nb(_Lb);
if (bone) {
var _Ob = _Pb._ta(_Mb);
if (_Ob) {
_Ob["x"] = bone.x;
_Ob["y"] = bone.y;
_Ob["angle"] = bone.rotation;
_Ob["xscale"] = bone.scaleX;
_Ob["yscale"] = bone.scaleY;
_Ob["worldX"] = bone._Sb;
_Ob["worldY"] = bone._Tb;
_Ob["worldAngleX"] = bone._Ub();
_Ob["worldAngleY"] = bone._Vb();
_Ob["worldScaleX"] = bone._Wb();
_Ob["worldScaleY"] = bone._Xb();
_Ob["appliedAngle"] = bone._Yb;
if (bone.parent != null)
if (bone.parent.data != null) _Ob["parent"] = bone.parent.data.name;
return true
}
}
return false
};;
_J7.prototype._Zb = function (_Lb, _Mb) {
var bone = this._P7._Nb(_Lb);
if (bone) {
var _Ob = _Pb._ta(_Mb);
if (_Ob) {
bone.x = _Ob["x"];
bone.y = _Ob["y"];
bone.rotation = _Ob["angle"];
bone.scaleX = _Ob["xscale"];
bone.scaleY = _Ob["yscale"];
return true
}
}
return false
};;
_J7.prototype.__b = function () {
if (this._P7.skin) {
return this._P7.skin.name
}
return ""
};;
_J7.prototype._0c = function (_o8) {
if ((_o8 >= 0) && (_o8 < this._S7._O1.length) && (this._S7._O1[_o8]) && (this._S7._O1[_o8]._x8)) {
return this._S7._O1[_o8]._x8.name
}
return ""
};;
_J7.prototype._1c = function (_o8) {
if ((_o8 >= 0) && (_o8 < this._S7._O1.length)) {
this._S7._2c(_o8)
}
};;
_J7.prototype._3c = function (_4c) {
var _x8 = this._U7._L8(_4c);
if (_x8) {
return _x8.duration
}
return 0.0
};;
_J7.prototype._5c = function (_4c) {
var _x8 = this._U7._L8(_4c);
if (_x8) {
var _p8 = _q8 ? _q8._r8() : 30;
if (_s8) {
_p8 = _v8._w8()
}
if (_p8 <= 0) return 0;
var _ua = _x8.duration * _p8;
return ~~(_ua + 0.5)
}
return 0.0
};;
_J7.prototype._6c = function (_4c, _7c) {
var _x8 = this._U7._L8(_4c);
if (_x8 == null) {
return null
}
var _i2;
var _8c = null;
for (_i2 = 0; _i2 < _x8._ya.length; _i2++) {
var _9c = _x8._ya[_i2];
if (_9c instanceof spine._ac) {
_8c = _9c;
break
}
}
if (_8c == null) {
return null
}
var _p8;
if (_s8) {
_p8 = _v8._w8()
} else {
_p8 = _q8 ? _q8._r8() : 30;
}
var _bc = [];
for (_i2 = 0; _i2 < _8c.events.length; _i2++) {
var _cc = _8c.events[_i2];
if (_cc.data != null) {
var _dc = _cc.data;
if (_dc.name == _7c) {
var time = _cc.time;
_bc.push(_p8 * time)
}
}
}
if (_bc.length == 0) {
return null
}
return _bc
};;
_J7.prototype._ec = function (_X8) {
var slot = this._P7._Z8(_X8);
if (slot !== null && slot !== undefined) {
if (slot.attachment) {
return slot.attachment.name
}
}
return ""
};;
_J7.prototype._fc = function (_gc) {
for (var _3b = 0; _3b < this._P7.slots.length; _3b++) {
var _hc = this._P7.slots[_3b];
var map = _58();
_78(map, "name", _hc.data.name);
_78(map, "bone", _hc.data._ic.name);
_78(map, "attachment", _hc.attachment ? _hc.attachment.name : "(none)");
_jc(_gc, map)
}
};;
var _kc = null;
var _lc = !1;
var _mc = -1;
var _nc = null;
var _oc = [0.0, 0.0, 0.0, 0.0];;
function _pc() {
this.width = null;
this.height = null
}
function _H9() {
this.name = null;
this._I9 = new _pc();
this._qc = function () {
return this._I9
};
this._J9 = function (_B9, _D9) {};
this._K9 = function (_E9, _G9) {};
this.dispose = function () {};
this._z9 = null;
this.width = null;
this.height = null;
} /*@constructor */
function _rc() {
this._sc = [];
this._tc = null;
this._U7 = null;
this._uc = null;
this._vc = null;
this._wc = false;
if (_xc) {
this._yc = this._zc;
this._Ac = this._Bc
} else {
this._yc = this._Cc;
this._Ac = this._Dc
}
};
_rc.prototype._Ec = function (_J8, _Fc, _Gc, _Hc) {
this._sc[_J8] = {
_Ic: [],
_Jc: 0,
_Kc: 32,
_A9: _w9[_Hc],
x: 0,
y: 0,
_k2: _Fc,
_l2: _Gc
}
};;
_rc.prototype._Lc = function (_Mc, _Nc, _Oc, _Pc, _Qc) {
var _Rc = _Pc;
var _Sc = _Qc;
var _Tc = 0;
var _Uc = _Mc + '/';
var _Vc = this;
var _Wc = function (_Xc) {
var _Yc = new _H9();
_Yc.name = _Xc;
_Yc.width = _Yc._I9.width = _Sc[_Tc].width;
_Yc.height = _Yc._I9.height = _Sc[_Tc].height;
var _Zc = __c(_0d + _Uc + _Xc);
_Yc._z9 = _Zc;
_w9[_Zc].onload = function (e) {
_Yc._I9 = e._1d;
var target = e.target || e.srcElement;
_Vc._Ec(_Yc.name, target.width, target.height, _Zc)
};
_w9[_Zc].onerror = function (e) {
var target = e.target || e.srcElement;
debug("ImageError: " + target.src)
};
_w9[_Zc].URL = _Xc;
if (_Tc < (_Rc - 1)) _Tc++;
return _Yc
};
this._uc = new spine._Y9(_Oc, _Wc);
this._tc = new spine._2d(new spine._1a(this._uc));
this._U7 = this._tc._3d(_Nc)
};;
_rc.prototype._4d = function () {
if (this._uc) {
if (this._uc._Z9) {
return this._uc._Z9.length
}
}
return 0
};;
_rc.prototype._5d = function (_I8) {
if (this._uc) {
if (this._uc._Z9) {
if (this._uc._Z9.length > _I8) {
if (this._uc._Z9[_I8]._A9) {
if (this._uc._Z9[_I8]._A9._z9) {
return this._uc._Z9[_I8]._A9._z9
}
}
}
}
}
return -1
};;
_rc.prototype._6d = function (_7d, _N8, _Ga, x, y, _8d, _9d, angle, _f9, alpha) {
if (this._U7 === null || this._U7 === undefined) return;
var _ad = new _J7(this);
_ad._g8(_7d);
_ad._h8(_N8);
_ad._aa(_Ga, x, y, _8d, _9d, angle);
this._bd(_ad._P7, _f9, alpha)
};;;
_rc.prototype._cd = function (_Ga, x, y, _8d, _9d, angle, _f9, alpha) {
if (!_kc || !_kc._dd()) {
this._6d(null, null, _Ga, x, y, _8d, _9d, angle, _f9, alpha)
} else {
var _ed = _kc._dd();
_ed._aa(_Ga, x, y, _8d, _9d, angle, _kc);
this._bd(_ed._P7, _f9, alpha);
if (_ed._O7) {
this._fd(_ed._Q7)
}
}
};;
_rc.prototype._gd = function (_hd, _7d, _N8, _Ga, x, y, _8d, _9d, angle, _id, _jd, _gc) {
_kd(_gc);
var _ld = false;
var _ed = null;
if ((_hd === undefined) || (_hd === null) || (_hd._dd() === null)) {
_ed = new _J7(this);
_ld = true;
_ed._g8(_7d);
_ed._h8(_N8)
} else {
_ed = _hd._dd();
if ((_7d !== undefined) && (_7d !== null)) {
_ed._g8(_7d)
}
if ((_N8 !== undefined) && (_N8 !== null)) {
_ed._h8(_N8)
}
}
_ed._aa(_Ga, x, y, _8d, _9d, angle, _hd);
var _md = [];
var _nd = 0;
for (var _i2 = 0, _3b = _ed._P7.slots.length; _i2 < _3b; _i2++) {
var slot = _ed._P7.drawOrder[_i2];
if (!slot.attachment) continue;
var _od = false;
if (slot.attachment instanceof spine._pd) {
_od = this._qd(slot, _id, _jd)
} else if (slot.attachment instanceof spine._rd) {
_od = this._sd(slot, _id, _jd)
} else if (slot.attachment instanceof spine._td) {
_od = this._ud(slot, _id, _jd)
}
if (_od) {
_md[_nd] = slot;
_nd++
}
}
if (_nd > 0) {
for (var _i2 = (_nd - 1); _i2 >= 0; _i2--) {
_jc(_gc, _md[_i2].data.name)
}
}
};;;
_rc.prototype._bd = function (_vd,
color, alpha) {
var _4a = (color & 0xff) / 255.0,
_5a = ((color & 0xff00) >> 8) / 255.0,
_6a = ((color & 0xff0000) >> 16) / 255.0;
if (_xc) {
this._wd(_vd, _4a, _5a, _6a, alpha)
} else {
this._xd(_vd, _4a, _5a, _6a, alpha)
}
};;
_rc.prototype._xd = function (_vd, _yd, _zd, _Ad, _Bd) {
var _Cd = [0, 1, 2, 2, 3, 0];
var vertices = [];
var _Dd = new spine._b9(1.0, 1.0, 1.0, 1.0);
var _Ed = false;
for (var _i2 = 0, _3b = _vd.slots.length; _i2 < _3b; _i2++) {
var slot = _vd.drawOrder[_i2];
if (!slot.attachment) continue;
var _79 = (_yd * 255);
var _89 = (_zd * 255);
var _99 = (_Ad * 255);
var _a9 = (_Bd * 255);
if ((slot.skeleton != undefined) && (slot.skeleton._79 != undefined)) {
_79 *= slot.skeleton._79;
_89 *= slot.skeleton._89;
_99 *= slot.skeleton._99;
_a9 *= slot.skeleton._a9
}
if (slot.color != undefined) {
_79 *= slot.color._79;
_89 *= slot.color._89;
_99 *= slot.color._99;
_a9 *= slot.color._a9
}
if (slot.attachment.color != undefined) {
_79 *= slot.attachment.color._79;
_89 *= slot.attachment.color._89;
_99 *= slot.attachment.color._99;
_a9 *= slot.attachment.color._a9
}
var _f9;
_f9 = (_a9 << 24) | (_79 << 16) | (_89 << 8) | (_99 << 0);
var _Fd = null;
var uvs = null;
var _Gd = null;
var _Hd = 2;
var _Id = 0;
var _Jd = 0;
var _Kd = 0;
var _Ld = null;
var _Zc = null;
if (slot.attachment instanceof spine._pd) {
var _L9 = slot.attachment;
if ((this._vc != null) && (this._vc._Md())) {
_L9._Nd(slot.bone, vertices, 0, 2);
_Fd = vertices;
uvs = _L9.uvs;
_Gd = _Cd;
_Jd = 4;
_Kd = 6;
_Zc = _w9[_L9._L9._Od._A9._z9];
if (!_Zc.complete) continue;
if (_f9 != _Pd) {
if (!this._sc[_L9._L9._Od._A9.name]) {
var _x9 = _L9._L9._A9;
this._Ec(_x9.name, _x9.width, _x9.height, _x9._z9)
}
_Zc = _Qd(this._sc[_L9._L9._A9.name], _f9)
}
var _Rd = _L9._L9._A9;
_Ld = this._sc[_Rd.name]
} else {
this._Cc(slot, _f9, _a9 / 255.0)
}
} else if (slot.attachment instanceof spine._rd) {
var _Sd = slot.attachment;
_Sd._Nd(slot, 0, _Sd._Td, vertices, 0, 2);
_Fd = vertices;
uvs = _Sd.uvs;
_Gd = _Sd.triangles;
_Jd = _Sd._Td;
_Kd = _Sd.triangles.length;
_Zc = _w9[_Sd._L9._Od._A9._z9];
if (!_Zc.complete) continue;
if (_f9 != _Pd) {
if (!this._sc[_Sd._L9._Od._x9.name]) {
var _x9 = _Sd._L9._Od._x9;
this._Ec(_x9.name, _x9.width, _x9.height, _Sd._L9._Od._x9._z9)
}
_Zc = _Qd(this._sc[_Sd._L9._Od._x9.name], _f9)
}
_Ld = this._sc[_Sd._L9._Od._x9.name]
} else if (slot.attachment instanceof spine._Ud) {
if (this._vc == null) {
this._vc = new spine._Vd()
}
this._vc._Wd(slot,
slot.attachment);
continue
}
if ((_Jd > 0) && (_Zc != null)) {
if ((this._vc != null) && (this._vc._Md())) {
this._vc._Xd(vertices, _Jd * 2, _Gd, _Kd, uvs, _Dd, _Dd, _Ed);
_Fd = this._vc._Yd;
uvs = this._vc._Yd;
_Gd = this._vc._Zd;
_Hd = 8;
_Id = 6;
_Jd = _Fd.length / _Hd;
_Kd = _Gd.length
}
for (var _O9 = 0; _O9 < _Kd / 3; _O9++) {
var __d = _O9 * 3;
var _0e = _Gd[__d++] * _Hd,
_1e = _Gd[__d++] * _Hd,
_2e = _Gd[__d++] * _Hd;
var _3e = [];
_3e[0] = {};
_3e[0].x = _Fd[_0e];
_3e[0]._N9 = uvs[_Id + _0e];
_0e++;
_3e[0].y = _Fd[_0e];
_3e[0]._O9 = uvs[_Id + _0e];
_3e[1] = {};
_3e[1].x = _Fd[_1e];
_3e[1]._N9 = uvs[_Id + _1e];
_1e++;
_3e[1].y = _Fd[_1e];
_3e[1]._O9 = uvs[_Id + _1e];
_3e[2] = {};
_3e[2].x = _Fd[_2e];
_3e[2]._N9 = uvs[_Id + _2e];
_2e++;
_3e[2].y = _Fd[_2e];
_3e[2]._O9 = uvs[_Id + _2e];
this._4e(_5e, _Zc, _3e[0].x, _3e[0].y, _3e[1].x, _3e[1].y, _3e[2].x, _3e[2].y, _3e[0]._N9 * _Ld._k2, _3e[0]._O9 * _Ld._l2, _3e[1]._N9 * _Ld._k2, _3e[1]._O9 * _Ld._l2, _3e[2]._N9 * _Ld._k2, _3e[2]._O9 * _Ld._l2)
}
}
if (this._vc != null) {
this._vc._6e(slot)
}
}
if (this._vc != null) {
this._vc._7e()
}
};;
function _8e(_9e, _ae, _be) {
if (_ae == false) {
switch (_9e) {
case spine._ce.Normal:
_be.src = _de._ee;
_be._fe = _de._ge;
break;
case spine._ce.Additive:
_be.src = _de._ee;
_be._fe = _de._he;
break;
case spine._ce.Multiply:
_be.src = _de._ie;
_be._fe = _de._ge;
break;
case spine._ce.Screen:
_be.src = _de._he;
_be._fe = _de._je;
break;
default:
_be.src = _de._ee;
_be._fe = _de._ge;
break
}
} else {
switch (_9e) {
case spine._ce.Normal:
_be.src = _de._he;
_be._fe = _de._ge;
break;
case spine._ce.Additive:
_be.src = _de._he;
_be._fe = _de._he;
break;
case spine._ce.Multiply:
_be.src = _de._ie;
_be._fe = _de._ge;
break;
case spine._ce.Screen:
_be.src = _de._he;
_be._fe = _de._je;
break;
default:
_be.src = _de._ee;
_be._fe = _de._ge;
break
}
}
}
_rc.prototype._wd = function (_vd, _yd, _zd, _Ad, _Bd) {
var _Cd = [0, 1, 2, 2, 3, 0];
var vertices = [];
var _Dd = new spine._b9(1.0, 1.0, 1.0, 1.0);
var _Ed = false;
var _ke, _le, _me, _ne;
var _oe;
if (_lc == true) {
_ke = _xc._pe._qe(_de._re);
_le = _xc._pe._qe(_de._se);
_me = _xc._pe._qe(_de._te);
_ne = _xc._pe._qe(_de._ue);
_oe = _xc._pe._qe(_de._ve)
}
var _we = new spine._b9(0.0, 0.0, 0.0, 0.0);
var _xe = false;
if (_ye != _mc) {
_mc = _ye;
_xe = true;
if (_mc != -1) {
_nc = _ze(_mc, "gm_SpineTintBlackColour")
}
}
for (var _i2 = 0, _3b = _vd.slots.length; _i2 < _3b; _i2++) {
var slot = _vd.drawOrder[_i2];
if (!slot.attachment) continue;
var _79 = (_yd * 255);
var _89 = (_zd * 255);
var _99 = (_Ad * 255);
var _a9 = (_Bd * 255);
if ((slot.skeleton != undefined) && (slot.skeleton._79 != undefined)) {
_79 *= slot.skeleton._79;
_89 *= slot.skeleton._89;
_99 *= slot.skeleton._99;
_a9 *= slot.skeleton._a9
}
if (slot.color != undefined) {
_79 *= slot.color._79;
_89 *= slot.color._89;
_99 *= slot.color._99;
_a9 *= slot.color._a9
}
if (slot.attachment.color != undefined) {
_79 *= slot.attachment.color._79;
_89 *= slot.attachment.color._89;
_99 *= slot.attachment.color._99;
_a9 *= slot.attachment.color._a9
}
var _f9;
_f9 = (_a9 << 24) | (_79 << 0) | (_89 << 8) | (_99 << 16);
if (_mc != -1) {
if ((_nc != undefined) && (_nc != -1)) {
var _Ae;
if ((slot._Be != undefined) && (slot._Be != null)) {
_Ae = slot._Be
} else {
_Ae = _we
}
var _Ce = [_Ae._79 * _yd, _Ae._89 * _zd, _Ae._99 * _Ad, _Bd];
if ((_xe) || ((_oc[0] != _Ce[0]) || (_oc[1] != _Ce[1]) || (_oc[2] != _Ce[2]) || (_oc[3] != _Ce[3]))) {
_oc = _Ce;
_De(_nc, _oc);
_xe = false
}
}
}
var _Fd = null;
var uvs = null;
var _Gd = null;
var _Hd = 2;
var _Id = 0;
var _Jd = 0;
var _Kd = 0;
var _Zc = null;
if (slot.attachment instanceof spine._pd) {
var _L9 = slot.attachment;
_L9._Nd(slot.bone, vertices, 0, 2);
_Fd = vertices;
uvs = _L9.uvs;
_Gd = _Cd;
_Jd = 4;
_Kd = 6;
_Zc = _w9[_L9._L9._Od._A9._z9]
} else if (slot.attachment instanceof spine._rd) {
var _Sd = slot.attachment;
_Sd._Nd(slot, 0, _Sd._Td, vertices, 0, 2);
_Fd = vertices;
uvs = _Sd.uvs;
_Gd = _Sd.triangles;
_Jd = _Sd._Td;
_Kd = _Sd.triangles.length;
_Zc = _w9[_Sd._L9._Od._A9._z9]
} else if (slot.attachment instanceof spine._Ud) {
if (this._vc == null) {
this._vc = new spine._Vd()
}
this._vc._Wd(slot, slot.attachment);
continue
}
if ((_Jd > 0) && (_Zc != null)) {
if (!_Zc.complete) continue;
if (!_Zc._Ee) _Fe({
_A9: _Zc
});
if ((this._vc != null) && (this._vc._Md())) {
this._vc._Xd(vertices, _Jd * 2, _Gd, _Kd, uvs, _Dd, _Dd, _Ed);
_Fd = this._vc._Yd;
uvs = this._vc._Yd;
_Gd = this._vc._Zd;
_Hd = 8;
_Id = 6;
_Jd = _Fd.length / _Hd;
_Kd = _Gd.length
}
if (_lc == true) {
var _Ge = slot.data._He;
var _Ie = new Object();
_8e(_Ge, this._wc, _Ie);
_xc._pe._Je(_de._re, _Ie.src);
_xc._pe._Je(_de._se, _Ie._fe);
_xc._pe._Je(_de._te, _Ie.src);
_xc._pe._Je(_de._ue, _Ie._fe)
}
var _Ke = _xc._Le(_de._Me, _Zc._Ee, _xc._Ne, _Kd);
var _Oe = _Ke._Pe() >> 2;
var index = _Oe * _Ke._Qe;
_Ke._Qe += _Kd;
var _Re = _Ke._Se;
var _Te = _Ke._Ue;
var _Ve = _Ke._We;
var _Xe = index;
for (var _O9 = 0; _O9 < _Kd; _O9++, _Xe += _Oe) {
var index = _Gd[_O9];
_Re[_Xe + 0] = _Fd[(index * _Hd) + 0];
_Re[_Xe + 1] = _Fd[(index * _Hd) + 1];
_Re[_Xe + 2] = _Ye;
_Te[_Xe + 0] = _f9;
_Ve[_Xe + 0] = uvs[(index * _Hd) + _Id + 0];
_Ve[_Xe + 1] = uvs[(index * _Hd) + _Id + 1]
}
}
if (this._vc != null) {
this._vc._6e(slot)
}
}
if (this._vc != null) {
this._vc._7e()
}
if (_lc == true) {
_xc._pe._Je(_de._re, _ke);
_xc._pe._Je(_de._se, _le);
_xc._pe._Je(_de._te, _me);
_xc._pe._Je(_de._ue, _ne);
_xc._pe._Je(_de._ve, _oe)
}
};;
_rc.prototype._fd = function (_Ze) {
__e(_Ze._La, _Ze._Na, _Ze._La, _Ze._Oa);
__e(_Ze._La, _Ze._Oa, _Ze._Ma, _Ze._Oa);
__e(_Ze._Ma, _Ze._Oa, _Ze._Ma, _Ze._Na);
__e(_Ze._Ma, _Ze._Na, _Ze._La, _Ze._Na);
for (var _3b = 0; _3b < _Ze._Ta.length; _3b++) {
var _4b = _Ze._Ta[_3b];
var size = _4b.length / 2;
for (var _5b = 0; _5b < size; _5b++) {
var _6b, _7b, _8b, _9b;
_6b = _4b[(_5b * 2) + 0];
_7b = _4b[(_5b * 2) + 1];
if (_5b == (size - 1)) {
_8b = _4b[0];
_9b = _4b[1]
} else {
_8b = _4b[((_5b + 1) * 2) + 0];
_9b = _4b[((_5b + 1) * 2) + 1]
}
__e(_6b, _7b, _8b, _9b)
}
}
};;
_rc.prototype._Cc = function (slot, _f9, alpha) {
var _L9 = slot.attachment,
vertices = [],
uvs;
var _0f = 0;
var _1f = 0;
if (slot.skeleton) {
_0f = slot.skeleton.x;
_1f = slot.skeleton.y
} else if (slot.bone.skeleton) {
_0f = slot.bone.skeleton.x;
_1f = slot.bone.skeleton.y
}
_L9._Nd(slot.bone, vertices, 0, 2);
uvs = _L9.uvs;
var _3e = [];
_3e[0] = {};
_3e[0].x = vertices[spine._pd._2f];
_3e[0].y = vertices[spine._pd._3f];
_3e[0]._N9 = uvs[spine._pd._2f];
_3e[0]._O9 = uvs[spine._pd._3f];
_3e[1] = {};
_3e[1].x = vertices[spine._pd._4f];
_3e[1].y = vertices[spine._pd._5f];
_3e[1]._N9 = uvs[spine._pd._4f];
_3e[1]._O9 = uvs[spine._pd._5f];
_3e[2] = {};
_3e[2].x = vertices[spine._pd._6f];
_3e[2].y = vertices[spine._pd._7f];
_3e[2]._N9 = uvs[spine._pd._6f];
_3e[2]._O9 = uvs[spine._pd._7f];
_5e.globalAlpha = alpha;
var _Rd = _L9._L9._A9;
var _Zc = _w9[_L9._L9._Od._A9._z9];
if (!_Zc.complete) return;
if (_f9 != _Pd) {
if (!this._sc[_L9._L9._Od._A9.name]) {
var _x9 = _L9._L9._A9;
this._Ec(_x9.name, _x9.width, _x9.height, _x9._z9)
}
_Zc = _Qd(this._sc[_L9._L9._A9.name], _f9)
}
var _Ld = this._sc[_Rd.name];
this._8f(_5e, _Zc, _3e[0].x, _3e[0].y, _3e[1].x, _3e[1].y, _3e[2].x, _3e[2].y, _3e[0]._N9 * _Ld._k2, _3e[0]._O9 * _Ld._l2, _3e[1]._N9 * _Ld._k2,
_3e[1]._O9 * _Ld._l2, _3e[2]._N9 * _Ld._k2, _3e[2]._O9 * _Ld._l2)
};;
_rc.prototype._Dc = function (slot, _f9, alpha) {
var _Sd = slot.attachment,
vertices = [],
uvs;
_Sd._Nd(slot, 0, _Sd._Td, vertices, 0, 2);
uvs = _Sd.uvs;
var _Rd = _Sd._L9;
var _Zc = _w9[_Sd._L9._Od._A9._z9];
if (!_Zc.complete) return;
if (_f9 != _Pd) {
if (!this._sc[_Sd._L9._Od._x9.name]) {
var _x9 = _Sd._L9._Od._x9;
this._Ec(_x9.name, _x9.width, _x9.height, _Sd._L9._Od._x9._z9)
}
_Zc = _Qd(this._sc[_Sd._L9._Od._x9.name], _f9)
}
for (var _3b = 0; _3b < _Sd.triangles.length / 3; _3b++) {
var __d = _3b * 3;
var _0e = _Sd.triangles[__d++] * 2,
_1e = _Sd.triangles[__d++] * 2,
_2e = _Sd.triangles[__d++] * 2;
var _3e = [];
_3e[0] = {};
_3e[0].x = vertices[_0e];
_3e[0]._N9 = uvs[_0e++];
_3e[0].y = vertices[_0e];
_3e[0]._O9 = uvs[_0e];
_3e[1] = {};
_3e[1].x = vertices[_1e];
_3e[1]._N9 = uvs[_1e++];
_3e[1].y = vertices[_1e];
_3e[1]._O9 = uvs[_1e];
_3e[2] = {};
_3e[2].x = vertices[_2e];
_3e[2]._N9 = uvs[_2e++];
_3e[2].y = vertices[_2e];
_3e[2]._O9 = uvs[_2e];
var _Ld = this._sc[_Sd._L9._Od._x9.name];
this._4e(_5e, _Zc, _3e[0].x, _3e[0].y, _3e[1].x, _3e[1].y, _3e[2].x, _3e[2].y, _3e[0]._N9 * _Ld._k2, _3e[0]._O9 * _Ld._l2,
_3e[1]._N9 * _Ld._k2, _3e[1]._O9 * _Ld._l2, _3e[2]._N9 * _Ld._k2, _3e[2]._O9 * _Ld._l2)
}
};;;
_rc.prototype._4e = function (_9f, _af, _bf, _cf, _6b, _7b, _8b, _9b, _df, _ef, _ff, _gf, _hf, _if) {
_9f.save();
_9f.beginPath();
_9f.moveTo(_bf, _cf);
_9f.lineTo(_6b, _7b);
_9f.lineTo(_8b, _9b);
_9f.closePath();
_9f.clip();
var _jf = _df * (_if - _gf) - _ff * _if + _hf * _gf + (_ff - _hf) * _ef;
if (_jf == 0) {
return
}
var _kf = -(_ef * (_8b - _6b) - _gf * _8b + _if * _6b + (_gf - _if) * _bf) / _jf;
var _lf = (_gf * _9b + _ef * (_7b - _9b) - _if * _7b + (_if - _gf) * _cf) / _jf;
var _mf = (_df * (_8b - _6b) - _ff * _8b + _hf * _6b + (_ff - _hf) * _bf) / _jf;
var _nf = -(_ff * _9b + _df * (_7b - _9b) - _hf * _7b + (_hf - _ff) * _cf) / _jf;
var _of = (_df * (_if * _6b - _gf * _8b) + _ef * (_ff * _8b - _hf * _6b) + (_hf * _gf - _ff * _if) * _bf) / _jf;
var _pf = (_df * (_if * _7b - _gf * _9b) + _ef * (_ff * _9b - _hf * _7b) + (_hf * _gf - _ff * _if) * _cf) / _jf;
_9f.transform(_kf, _lf, _mf, _nf, _of, _pf);
_9f.drawImage(_af, 0, 0);
_9f.restore()
};;
_rc.prototype._8f = function (_9f, _af, _bf, _cf, _6b, _7b, _8b, _9b, _df, _ef, _ff, _gf, _hf, _if) {
_9f.save();
var _qf, _rf;
_qf = _bf + (_8b - _6b);
_rf = _cf + (_9b - _7b);
_9f.beginPath();
_9f.moveTo(_bf, _cf);
_9f.lineTo(_6b, _7b);
_9f.lineTo(_8b,
_9b);
_9f.lineTo(_qf, _rf);
_9f.closePath();
_9f.clip();
var _jf = _df * (_if - _gf) - _ff * _if + _hf * _gf + (_ff - _hf) * _ef;
if (_jf == 0) {
return
}
var _kf = -(_ef * (_8b - _6b) - _gf * _8b + _if * _6b + (_gf - _if) * _bf) / _jf;
var _lf = (_gf * _9b + _ef * (_7b - _9b) - _if * _7b + (_if - _gf) * _cf) / _jf;
var _mf = (_df * (_8b - _6b) - _ff * _8b + _hf * _6b + (_ff - _hf) * _bf) / _jf;
var _nf = -(_ff * _9b + _df * (_7b - _9b) - _hf * _7b + (_hf - _ff) * _cf) / _jf;
var _of = (_df * (_if * _6b - _gf * _8b) + _ef * (_ff * _8b - _hf * _6b) + (_hf * _gf - _ff * _if) * _bf) / _jf;
var _pf = (_df * (_if * _7b - _gf * _9b) + _ef * (_ff * _9b - _hf * _7b) + (_hf * _gf - _ff * _if) * _cf) / _jf;
_9f.transform(_kf, _lf, _mf, _nf, _of, _pf);
_9f.drawImage(_af, 0, 0);
_9f.restore()
};;
_rc.prototype._zc = function (slot, _f9, alpha) {
var _L9 = slot.attachment,
vertices = [],
uvs;
var _0f = 0;
var _1f = 0;
if (slot.skeleton) {
_0f = slot.skeleton.x;
_1f = slot.skeleton.y
} else if (slot.bone.skeleton) {
_0f = slot.bone.skeleton.x;
_1f = slot.bone.skeleton.y
}
_L9._Nd(slot.bone, vertices, 0, 2);
uvs = _L9.uvs;
var _Zc = _w9[_L9._L9._Od._A9._z9];
if (!_Zc.complete) return;
if (!_Zc._Ee) _Fe({
_A9: _Zc
});
var _Jd = 6;
var _Ke = _xc._Le(_de._Me, _Zc._Ee, _xc._Ne, _Jd);
var _Oe = _Ke._Pe() >> 2;
var index = _Oe * _Ke._Qe;
_Ke._Qe += _Jd;
var _Re = _Ke._Se;
var _Te = _Ke._Ue;
var _Ve = _Ke._We;
var _Xe = index;
var _sf = _Xe + _Oe;
var _Q9 = _sf + _Oe;
var _tf = _Q9 + _Oe;
var _uf = _tf + _Oe;
var _vf = _uf + _Oe;
_Re[_Xe + 0] = _Re[_vf + 0] = vertices[spine._pd._2f];
_Re[_Xe + 1] = _Re[_vf + 1] = vertices[spine._pd._3f];
_Re[_sf + 0] = vertices[spine._pd._4f];
_Re[_sf + 1] = vertices[spine._pd._5f];
_Re[_Q9 + 0] = _Re[_tf + 0] = vertices[spine._pd._6f];
_Re[_Q9 + 1] = _Re[_tf + 1] = vertices[spine._pd._7f];
_Re[_uf + 0] = vertices[spine._pd._wf];
_Re[_uf + 1] = vertices[spine._pd._xf];
_Re[_Xe + 2] = _Re[_sf + 2] = _Re[_Q9 + 2] = _Re[_tf + 2] = _Re[_uf + 2] = _Re[_vf + 2] = _Ye;
_Te[_Xe] = _Te[_sf] = _Te[_Q9] = _Te[_tf] = _Te[_uf] = _Te[_vf] = _f9;
_Ve[_Xe + 0] = _Ve[_vf + 0] = uvs[spine._pd._2f];
_Ve[_Xe + 1] = _Ve[_vf + 1] = uvs[spine._pd._3f];
_Ve[_sf + 0] = uvs[spine._pd._4f];
_Ve[_sf + 1] = uvs[spine._pd._5f];
_Ve[_Q9 + 0] = _Ve[_tf + 0] = uvs[spine._pd._6f];
_Ve[_Q9 + 1] = _Ve[_tf + 1] = uvs[spine._pd._7f];
_Ve[_uf + 0] = uvs[spine._pd._wf];
_Ve[_uf + 1] = uvs[spine._pd._xf]
};;
_rc.prototype._Bc = function (slot, _f9, alpha) {
var _Sd = slot.attachment,
vertices = [],
uvs;
var _0f = 0;
var _1f = 0;
if (slot.skeleton) {
_0f = slot.skeleton.x;
_1f = slot.skeleton.y
} else if (slot.bone.skeleton) {
_0f = slot.bone.skeleton.x;
_1f = slot.bone.skeleton.y
}
_Sd._Nd(slot, 0, _Sd._Td, vertices, 0, 2);
uvs = _Sd.uvs;
var _Zc = _w9[_Sd._L9._Od._A9._z9];
if (!_Zc.complete) return;
if (!_Zc._Ee) _Fe({
_A9: _Zc
});
var _Jd = _Sd.triangles.length;
var _Ke = _xc._Le(_de._Me, _Zc._Ee, _xc._Ne, _Jd);
var _Oe = _Ke._Pe() >> 2;
var index = _Oe * _Ke._Qe;
_Ke._Qe += _Jd;
var _Re = _Ke._Se;
var _Te = _Ke._Ue;
var _Ve = _Ke._We;
var _Xe = index;
for (var _3b = 0; _3b < _Jd; _3b++, _Xe += _Oe) {
var _0e = _Sd.triangles[_3b];
_Re[_Xe + 0] = vertices[(_0e * 2) + 0];
_Re[_Xe + 1] = vertices[(_0e * 2) + 1];
_Re[_Xe + 2] = _Ye;
_Te[_Xe + 0] = _Te[_Xe + 1] = _f9;
_Ve[_Xe + 0] = uvs[(_0e * 2) + 0];
_Ve[_Xe + 1] = uvs[(_0e * 2) + 1]
}
};;
_rc.prototype._qd = function (slot, _ba, _ca) {
var _L9 = slot.attachment,
vertices = [];
_L9._Nd(slot.bone, vertices, 0, 2);
var _yf, _zf, _Af, _Bf;
var _Cf;
_yf = _ba - vertices[spine._pd._wf];
_zf = _ca - vertices[spine._pd._xf];
_Af = vertices[spine._pd._2f] - vertices[spine._pd._wf];
_Bf = vertices[spine._pd._3f] - vertices[spine._pd._xf];
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf >= 0) return false;
_yf = _ba - vertices[spine._pd._4f];
_zf = _ca - vertices[spine._pd._5f];
_Af = vertices[spine._pd._6f] - vertices[spine._pd._4f];
_Bf = vertices[spine._pd._7f] - vertices[spine._pd._5f];
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf >= 0) return false;
_yf = _ba - vertices[spine._pd._2f];
_zf = _ca - vertices[spine._pd._3f];
_Af = vertices[spine._pd._4f] - vertices[spine._pd._2f];
_Bf = vertices[spine._pd._5f] - vertices[spine._pd._3f];
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf >= 0) return false;
_yf = _ba - vertices[spine._pd._6f];
_zf = _ca - vertices[spine._pd._7f];
_Af = vertices[spine._pd._wf] - vertices[spine._pd._6f];
_Bf = vertices[spine._pd._xf] - vertices[spine._pd._7f];
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf >= 0) return false;
return true
};;
_rc.prototype._sd = function (slot, _ba, _ca) {
var _Sd = slot.attachment,
vertices = [];
_Sd._Nd(slot, 0, _Sd._Td, vertices, 0, 2);
var _yf, _zf, _Af, _Bf;
var _Cf;
var _Kd = _Sd.triangles.length;
for (var _3b = 0; _3b < _Kd; _3b += 3) {
var _0e = _Sd.triangles[_3b + 0];
var _1e = _Sd.triangles[_3b + 1];
var _2e = _Sd.triangles[_3b + 2];
var _Df = vertices[(_0e * 2) + 0];
var _Ef = vertices[(_0e * 2) + 1];
var _Ff = vertices[(_1e * 2) + 0];
var _Gf = vertices[(_1e * 2) + 1];
var _Hf = vertices[(_2e * 2) + 0];
var _If = vertices[(_2e * 2) + 1];
_yf = _ba - _Df;
_zf = _ca - _Ef;
_Af = _Ff - _Df;
_Bf = _Gf - _Ef;
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf >= 0) continue;
_yf = _ba - _Ff;
_zf = _ca - _Gf;
_Af = _Hf - _Ff;
_Bf = _If - _Gf;
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf >= 0) continue;
_yf = _ba - _Hf;
_zf = _ca - _If;
_Af = _Df - _Hf;
_Bf = _Ef - _If;
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf >= 0) continue;
return true
}
return false
};;
_rc.prototype._ud = function (slot, _ba, _ca) {
var _Jf = slot.attachment,
vertices = [];
_Jf._Nd(slot, 0, _Jf._Td, vertices, 0, 2);
var _yf, _zf, _Af, _Bf;
var _Cf;
var _Kf = 0;
for (var _3b = 0; _3b < ((_Jf._Td) / 2) - 1; _3b++) {
var _Df = vertices[_Kf + 0];
var _Ef = vertices[_Kf + 1];
_Kf += 2;
var _Ff = vertices[_Kf + 0];
var _Gf = vertices[_Kf + 1];
_yf = _ba - _Df;
_zf = _ca - _Ef;
_Af = _Ff - _Df;
_Bf = _Gf - _Ef;
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf <= 0) {
return false
}
}
var _Df = vertices[_Kf + 0];
var _Ef = vertices[_Kf + 1];
var _Ff = vertices[0];
var _Gf = vertices[1];
_yf = _ba - _Df;
_zf = _ca - _Ef;
_Af = _Ff - _Df;
_Bf = _Gf - _Ef;
_Cf = (_yf * _Bf) - (_zf * _Af);
if (_Cf <= 0) {
return false
}
return true
};;;;;;
_rc.prototype._fc = function (_gc) {
for (var _3b = 0; _3b < this._U7.slots.length; _3b++) {
var _hc = this._U7.slots[_3b];
var map = _58();
_78(map, "name",
_hc.name);
_78(map, "bone", _hc._ic.name);
_78(map, "attachment", _hc._Lf ? _hc._Lf : "(none)");
_jc(_gc, map)
}
};;
function _Mf(_Nf) {
_Of("draw_primitive_begin()")
}
function _Pf(_Nf, _Qf) {
_Of("draw_primitive_begin_texture()")
}
function _Rf(x, y) {
_Of("draw_vertex()");
}
function _Sf(x, y, _f9, alpha) {
_Of("draw_vertex_color()")
}
var _Tf = _Sf;
function _Uf(x, y, _Vf, _Wf) {
_Of("draw_vertex_texture()")
}
function _Xf(x, y, _Vf, _Wf, _f9, alpha) {
_Of("draw_vertex_texture_color()")
}
var _Yf = _Xf;
function _Zf() {
_Of("draw_primitive_end()")
}
function __f(_Nf) {
_Of("d3d_primitive_begin()")
}
function _0g(_Nf, _Qf) {
_Of("d3d_primitive_begin_texture()")
}
function _1g(x, y, _2g) {
_Of("d3d_vertex()")
}
function _3g(x, y, _2g, _f9, alpha) {
_Of("d3d_vertex_color()")
}
var _4g = _3g;
function _5g(x, y, _2g, _Vf, _Wf) {
_Of("d3d_vertex_texture()")
}
function _6g(x, y, _2g, _Vf, _Wf, _f9, alpha) {
_Of("d3d_vertex_texture_color()")
}
var _7g = _6g;
function _8g(x, y, _2g, _9g, _ag, _bg) {
_Of("d3d_vertex_normal()")
}
function _cg(x, y, _2g, _9g, _ag, _bg, _f9, alpha) {
_Of("d3d_vertex_normal_color()")
}
var _dg = _cg;
function _eg(x, y,
_2g, _9g, _ag, _bg, _Vf, _Wf) {
_Of("d3d_vertex_normal_texture()")
}
function _fg(x, y, _2g, _9g, _ag, _bg, _Vf, _Wf, _f9, alpha) {
_Of("d3d_vertex_normal_texture_color()")
}
var _gg = _fg;
function _hg() {
_Of("d3d_primitive_end()")
}
var _ig = null;
var _jg = 0,
_kg = -1,
_lg = null,
_mg = null;
var _ng = 1,
_og = 2,
_pg = 3,
_qg = 4,
_rg = 5,
_sg = 6,
_tg = 7;
function _ug() {
_Mf = _vg;
_Pf = _wg;
_Rf = _xg;
_Sf = _yg;
_Tf = _yg;
_Uf = _zg;
_Xf = _Ag;
_Yf = _Ag;
_Zf = _Bg;
__f = _Cg;
_0g = _Dg;
_1g = _Eg;
_3g = _Fg;
_4g = _Fg;
_5g = _Gg;
_6g = _Hg;
_7g = _Hg;
_8g = _Ig;
_cg = _Jg;
_dg = _Jg;
_eg = _Kg;
_fg = _Lg;
_gg = _Lg;
_hg = _Mg
}
function _Ng(_Og) {
switch (_Og) {
case _ng:
return _de._Pg;
case _og:
return _de._Qg;
case _pg:
return _de._Rg;
case _qg:
return _de._Me;
case _rg:
return _de._Sg;
case _sg:
return _de._Tg;
case _tg:
return _de._Me
}
return -1
}
function _Ug() {
_jg = 0;
_kg = -1;
_lg = null;
_mg = null
}
function _vg(_Vg) {
_wg(yyGetInt32(_Vg), -1)
}
function _wg(_Vg, _Hc) {
_jg = yyGetInt32(_Vg);
_kg = null;
_lg = null;
if (typeof (_Hc) == "object") {
_kg = _Hc._Wg;
_lg = _Hc._Xg
} else if ((_Hc != -1) && _w9[yyGetInt32(_Hc)]) {
_kg = _w9[yyGetInt32(_Hc)];
}
if (_kg && !_kg._Ee) {
_Fe({
_A9: _kg
})
}
_mg = new _Yg(_Zg,
_xc.__g(_xc._Ne), false)
}
function _xg(_ba, _ca) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = yyGetReal(_ba);
_mg._Se[index + 1] = yyGetReal(_ca);
_mg._Se[index + 2] = _Ye;
_mg._We[index + 0] = 0;
_mg._We[index + 1] = 0;
_mg._Ue[index] = ((_1h * 255.0) << 24) | (_2h & 0x00ffffff)
}
function _yg(_ba, _ca, _3h, _Bd) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = yyGetReal(_ba);
_mg._Se[index + 1] = yyGetReal(_ca);
_mg._Se[index + 2] = _Ye;
_mg._We[index + 0] = 0;
_mg._We[index + 1] = 0;
_mg._Ue[index] = ((yyGetReal(_Bd) * 255.0) << 24) | _4h(yyGetInt32(_3h))
}
function _zg(_ba, _ca, _5h, _6h) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = yyGetReal(_ba);
_mg._Se[index + 1] = yyGetReal(_ca);
_mg._Se[index + 2] = _Ye;
var _7h = _8h(yyGetReal(_5h), yyGetReal(_6h));
_mg._We[index + 0] = _7h._N9;
_mg._We[index + 1] = _7h._O9;
_mg._Ue[index] = ((_1h * 255.0) << 24) | (_2h & 0x00ffffff)
}
function _Ag(_ba, _ca, _5h, _6h, _3h, _Bd) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = yyGetReal(_ba);
_mg._Se[index + 1] = yyGetReal(_ca);
_mg._Se[index + 2] = _Ye;
var _7h = _8h(yyGetReal(_5h),
yyGetReal(_6h));
_mg._We[index + 0] = _7h._N9;
_mg._We[index + 1] = _7h._O9;
_mg._Ue[index] = ((yyGetReal(_Bd) * 255.0) << 24) | _4h(yyGetInt32(_3h))
}
function _Bg() {
var _9h = _Ng(_jg);
if (_9h == -1) {
return
}
var _ah = _mg._bh.subarray(0, _mg._Qe * _mg._Pe());
var _ch = _kg ? _kg._Ee : null;
var _Ke = _xc._Le(_9h, _ch, _xc._Ne, _mg._Qe);
_Ke._bh.set(_ah, _Ke._Qe * _Ke._Pe());
_Ke._Qe += _mg._Qe
}
function _Cg(_Nf) {
_0g(_Nf, -1)
}
function _Dg(_Vg, _Hc) {
_jg = _Vg;
_kg = null;
_lg = null;
if (typeof (_Hc) == "object") {
_kg = _Hc._Wg;
_lg = _Hc._Xg
} else if ((_Hc != -1) && _w9[_Hc]) {
_kg = _w9[_Hc]
}
if (_kg && !_kg._Ee) {
_Fe({
_A9: _kg
})
}
_mg = new _Yg(_Zg, _xc.__g(_xc._dh), false)
}
function _8h(_5h, _6h) {
if (_lg && _kg) {
return ({
_N9: (_lg.x + (_5h * _lg._J3)) / _kg._eh,
_O9: (_lg.y + (_6h * _lg._K3)) / _kg._fh
})
} else {
return ({
_N9: _5h,
_O9: _6h
})
}
};
function _Eg(_ba, _ca, _gh) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = 0;
_mg._hh[index + 1] = 0;
_mg._hh[index + 2] = 0;
_mg._We[index + 0] = 0;
_mg._We[index + 1] = 0;
_mg._Ue[index] = ((_1h * 255.0) << 24) | (_2h & 0x00ffffff)
}
function _Fg(_ba, _ca, _gh, _ih, _Bd) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = 0;
_mg._hh[index + 1] = 0;
_mg._hh[index + 2] = 0;
_mg._We[index + 0] = 0;
_mg._We[index + 1] = 0;
_mg._Ue[index] = ((_Bd * 255.0) << 24) | _4h(_ih)
}
function _Gg(_ba, _ca, _gh, _jh, _kh) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = 0;
_mg._hh[index + 1] = 0;
_mg._hh[index + 2] = 0;
var _7h = _8h(_jh,
_kh);
_mg._We[index + 0] = _7h._N9;
_mg._We[index + 1] = _7h._O9;
_mg._Ue[index] = ((_1h * 255.0) << 24) | (_2h & 0x00ffffff)
}
function _Hg(_ba, _ca, _gh, _jh, _kh, _ih, _Bd) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = 0;
_mg._hh[index + 1] = 0;
_mg._hh[index + 2] = 0;
var _7h = _8h(_jh, _kh);
_mg._We[index + 0] = _7h._N9;
_mg._We[index + 1] = _7h._O9;
_mg._Ue[index] = ((_Bd * 255.0) << 24) | _4h(_ih)
}
function _Ig(_ba, _ca, _gh, _lh, _mh, _nh) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = _lh;
_mg._hh[index + 1] = _mh;
_mg._hh[index + 2] = _nh;
_mg._We[index + 0] = 0;
_mg._We[index + 1] = 0;
_mg._Ue[index] = ((_1h * 255.0) << 24) | (_2h & 0x00ffffff)
}
function _Jg(_ba, _ca, _gh, _lh, _mh, _nh, _ih, _Bd) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = _lh;
_mg._hh[index + 1] = _mh;
_mg._hh[index + 2] = _nh;
_mg._We[index + 0] = 0;
_mg._We[index + 1] = 0;
_mg._Ue[index] = ((_Bd * 255.0) << 24) | _4h(_ih)
}
function _Kg(_ba, _ca, _gh, _lh, _mh, _nh, _jh, _kh) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = _lh;
_mg._hh[index + 1] = _mh;
_mg._hh[index + 2] = _nh;
var _7h = _8h(_jh, _kh);
_mg._We[index + 0] = _7h._N9;
_mg._We[index + 1] = _7h._O9;
_mg._Ue[index] = ((_1h * 255.0) << 24) | (_2h & 0x00ffffff)
}
function _Lg(_ba, _ca, _gh, _lh, _mh, _nh, _jh, _kh, _ih, _Bd) {
var _Oe = _mg._Pe() >> 2;
var index = _mg._Qe * _Oe;
_mg._0h(1);
_mg._Se[index + 0] = _ba;
_mg._Se[index + 1] = _ca;
_mg._Se[index + 2] = _gh;
_mg._hh[index + 0] = _lh;
_mg._hh[index + 1] = _mh;
_mg._hh[index + 2] = _nh;
var _7h = _8h(_jh, _kh);
_mg._We[index + 0] = _7h._N9;
_mg._We[index + 1] = _7h._O9;
_mg._Ue[index] = ((_Bd * 255.0) << 24) | _4h(_ih)
}
function _Mg() {
var _9h = _Ng(_jg);
if (_9h == -1) {
return
}
var _ah = _mg._bh.subarray(0, _mg._Qe * _mg._Pe());
var _ch = _kg ? _kg._Ee : null;
var _Ke = _xc._Le(_9h, _ch, _xc._dh, _mg._Qe);
_Ke._bh.set(_ah, _Ke._Qe * _Ke._Pe());
_Ke._Qe += _mg._Qe
} /*@constructor */
function _oh(_ph) {
var _qh = null,
_rh = null,
_sh = null,
_th = false,
_uh = null,
_vh;
var _wh = 0,
_xh = 0,
_yh = 0,
_zh = 0;
var _Ah = this;
(function () {
_qh = new ArrayBuffer(_ph);
_rh = new DataView(_qh)
})();
function _Bh(_Ch, _Dh) {
var _Eh = false;
var _Fh = _uh._Gh;
for (var _i2 = 0; _i2 < _Fh.length; _i2++) {
var _Hh = _Fh[_i2];
if (((_Ch == -1) || (_Hh._Ih == _Ch)) && (_Hh.type == _Dh)) {
_Eh = true;
if ((_Hh._Jh & _wh) === 0) {
var _Kh = (_zh + _Hh.offset);
_wh |= _Hh._Jh;
if (_uh._Lh === _wh) {
_wh = 0;
_xh++;
_zh += _uh._Mh;
if ((_zh + _uh._Mh) >= _qh.byteLength) {
_Ah._Nh(_qh.byteLength * 2)
}
}
return _Kh
}
}
}
if (_Eh) {
debug("VERTEX BUILDER: element already written, must write the whole vertex first\n\n", true);
return -1
}
debug("VERTEX BUILDER: Vertex format does not contain selected type.\n\n", true);
return -1
}; /*@this {yyVBufferBuilder} */
this._Nh = function (_ph) {
var _Oh = new ArrayBuffer(_ph);
var _Ph = new Int8Array(_qh);
var _Qh = new Int8Array(_Oh);
_Qh.set(_Ph);
_qh = _Oh;
_rh = new DataView(_qh)
}; /*@this {yyVBufferBuilder} */
this._Rh = function (_Sh) {
_wh = 0;
_xh = 0;
_yh = 0;
_zh = 0;
_vh = _Sh;
_uh = _xc.__g(_Sh);
if (_uh._Mh > _qh.byteLength) {
this._Nh(_uh._Mh * 36)
}
}; /*@this {yyVBufferBuilder} */
this._Th = function () {};
this._Uh = function () {
return _vh
};
this._Vh = function () {
return _xc.__g(_vh)
}; /*@this {yyVBufferBuilder} */
this._Wh = function (x, y) {
var _Kh = _Bh(_de._Xh, _de._Yh);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, x, true);
_rh.setFloat32(_Kh + 4, y, true)
}
}; /*@this {yyVBufferBuilder} */
this._Zh = function (x, y, _2g) {
var _Kh = _Bh(_de._Xh, _de.__h);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, x, true);
_rh.setFloat32(_Kh + 4, y, true);
_rh.setFloat32(_Kh + 8, _2g, true)
}
}; /*@this {yyVBufferBuilder} */
this._0i = function (_ih, _Bd) {
var _Kh = _Bh(_de._1i, _de._2i);
if (_Kh >= 0) {
var _3i = ((_Bd * 255.0) << 24) | _4h(_ih);
_rh.setUint32(_Kh,
_3i, true)
}
}; /*@this {yyVBufferBuilder} */
this._4i = function (_5i) {
var _Kh = _Bh(_de._1i, _de._2i);
if (_Kh >= 0) {
var _f9 = ((_5i & 0xff) << 24) | ((_5i & 0xff00) << 8) | ((_5i & 0xff0000) >> 8) | ((_5i & 0xff000000) >> 24);
_rh.setUint32(_Kh, _f9, true)
}
}; /*@this {yyVBufferBuilder} */
this._6i = function (_7i) {
var _Kh = _Bh(_de._1i, _de._2i);
if (_Kh >= 0) {
var _f9 = (_7i & 0xff000000) | ((_7i & 0xff) << 16) | (_7i & 0xff00) | ((_7i & 0xff0000) >> 16);
_rh.setUint32(_Kh, _f9, true)
}
}; /*@this {yyVBufferBuilder} */
this._8i = function (_N9, _O9) {
var _Kh = _Bh(_de._9i, _de._Yh);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, _N9, true);
_rh.setFloat32(_Kh + 4, _O9, true)
}
}; /*@this {yyVBufferBuilder} */
this._ai = function (x, y, _2g) {
var _Kh = _Bh(_de._bi, _de.__h);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, x, true);
_rh.setFloat32(_Kh + 4, y, true);
_rh.setFloat32(_Kh + 8, _2g, true)
}
}; /*@this {yyVBufferBuilder} */
this._ci = function (x) {
var _Kh = _Bh(-1, _de._di);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, x, true)
}
}; /*@this {yyVBufferBuilder} */
this._ei = function (x, y) {
var _Kh = _Bh(-1, _de._Yh);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, x, true);
_rh.setFloat32(_Kh + 4, y, true)
}
}; /*@this {yyVBufferBuilder} */
this._fi = function (x, y, _2g) {
var _Kh = _Bh(-1, _de.__h);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, x, true);
_rh.setFloat32(_Kh + 4, y, true);
_rh.setFloat32(_Kh + 8, _2g, true)
}
}; /*@this {yyVBufferBuilder} */
this._gi = function (x, y, _2g, _k2) {
var _Kh = _Bh(-1, _de._hi);
if (_Kh >= 0) {
_rh.setFloat32(_Kh, x, true);
_rh.setFloat32(_Kh + 4, y, true);
_rh.setFloat32(_Kh + 8, _2g, true);
_rh.setFloat32(_Kh + 12, _k2, true)
}
}; /*@this {yyVBufferBuilder} */
this._ii = function (x, y, _2g, _k2) {
var _Kh = _Bh(-1, _de._ji);
if (_Kh >= 0) {
_rh.setUint8(_Kh,
x, true);
_rh.setUint8(_Kh + 1, y, true);
_rh.setUint8(_Kh + 2, _2g, true);
_rh.setUint8(_Kh + 3, _k2, true)
}
}; /*@this {yyVBufferBuilder} */
this._ki = function () {
var _li = new _Yg(_xh, _uh, false);
var _mi = _xh * _uh._Mh;
var _ni = new Int8Array(_qh, 0, _mi);
_li._bh.set(_ni);
_li._Qe += _xh;
_li._ki();
_sh = _li;
_th = true;
_qh = null;
_rh = null
}; /*@this {yyVBufferBuilder} */
this._oi = function (_pi, _qi) {
if (_th) {
if (_qi == -1) {
_xc._ri(_pi, null, _sh, 0)
} else _xc._ri(_pi, _qi._Wg._Ee, _sh, 0)
} else {
var _Ke;
if (_qi == -1) {
_Ke = _xc._Le(_pi, null, _vh, _xh)
} else {
_Ke = _xc._Le(_pi,
_qi._Wg._Ee, _vh, _xh)
}
var _si = _Ke._Qe * _uh._Mh;
var _ni = new Int8Array(_qh, 0, _xh * _uh._Mh);
_Ke._bh.set(_ni, _si);
_Ke._Qe += _xh
}
};
this._ti = function (_ui) {
_xh = _ui;
_yh = 0;
_zh = _ui * _uh._Mh
};
this._vi = function () {
return _xh
};
this._wi = function () {
return _qh
}
}
var _xi = null;
var _yi = []; /*@constructor */
function _zi() {
var _Ai = 0,
_Bi = 0.5;
var _Ci;
var _Di = [];
var _Ei = [];
var _Fi = [];
var _Gi = _Ai;
var _Hi = _Bi;
Object.defineProperties(this, {
_Ii: {
get: function () {
return _Gi;
},
set: function (_Ji) {
_Gi = _Ji
}
},
_Ki: {
get: function () {
return _Hi
},
set: function (_Ji) {
_Hi = _Ji
}
}
}); /*@this {yyGamePad} */
this._Li = function (_Mi) {
_Ci = _Mi.id;
_Ei = _Di.slice();
_Fi = _Mi.axes.slice();
var _Ni = _Mi.buttons;
if (_Ni) {
for (var _99 in _Ni) {
if (!_Ni.hasOwnProperty(_99)) continue;
if (typeof (_Ni[_99]) === "object") {
_Di[_99] = _Ni[_99].value
} else {
_Di[_99] = _Ni[_99]
}
}
}
}; /*@this {yyGamePad} */
this._Oi = function () {
return _Ci || ""
}; /*@this {yyGamePad} */
this._Pi = function () {
if (_Di) {
return _Di.length
}
return 0
}; /*@this {yyGamePad} */
this._Qi = function (_Ri) {
var _Si = _Di[_Ri];
var _Ti = _Ei[_Ri];
if ((_Si !== undefined) && (_Ti !== undefined)) {
return ((_Si >= _Hi) && (_Ti < _Hi))
}
return false
}; /*@this {yyGamePad} */
this._Ui = function (_Ri) {
var _Si = _Di[_Ri];
var _Ti = _Ei[_Ri];
if ((_Si !== undefined) && (_Ti !== undefined)) {
return ((_Si < _Hi) && (_Ti >= _Hi))
}
return false
}; /*@this {yyGamePad} */
this._Vi = function (_Ri) {
var _Si;
if (typeof (_Di[_Ri]) === "object") {
_Si = _Di[_Ri].value
} else {
_Si = _Di[_Ri]
}
if (_Si !== undefined) {
return (_Si >= _Hi)
}
return false
}; /*@this {yyGamePad} */
this._Wi = function (_Ri) {
var _Si;
if (typeof (_Di[_Ri]) === "object") {
_Si = _Di[_Ri].value
} else {
_Si = _Di[_Ri]
}
return _Si || 0.0
}; /*@this {yyGamePad} */
this._Xi = function () {
if (_Fi) {
return _Fi.length
}
return 0
}; /*@this {yyGamePad} */
this._Yi = function (_Zi, __i) {
var _0j = _Fi[_Zi] || 0;
if (_Gi > 0.0) {
var _1j = Math.abs(_0j);
if (_1j < _Gi) {
_0j = 0.0
} else {
var sign = (_0j >= 0) ? 1.0 : -1.0;
_0j = ((_1j - _Gi) / (__i - _Gi)) * sign
}
}
return _0j
}
} /*@constructor */
function _2j() {
var _3j = 1.0,
_4j = 1.0;
var _5j = 0,
_6j = 1;
var _7j = 0x8000,
_8j = 0x8001,
_9j = 0x8002,
_aj = 0x8003,
_bj = 0x8004,
_cj = 0x8005,
_dj = 0x8006,
_ej = 0x8007,
_fj = 0x8008,
_gj = 0x8009,
_hj = 0x800A,
_ij = 0x800B,
_jj = 0x800C,
_kj = 0x800D,
_lj = 0x800E,
_mj = 0x800F,
_nj = 0x8010,
_oj = 0x8011,
_pj = 0x8012,
_qj = 0x8013,
_rj = 0x8014;
var _sj = 0,
_tj = 1,
_uj = 2,
_vj = 3,
_wj = 4,
_xj = 5,
_yj = 6,
_zj = 7,
_Aj = 8,
_Bj = 9,
_Cj = 10,
_Dj = 11,
_Ej = 12,
_Fj = 13,
_Gj = 14,
_Hj = 15;
var _Ij = 0,
_Jj = 1,
_Kj = 2,
_Lj = 3;
function _Mj() {
return !!navigator["getGamepads"] || !!navigator["webkitGetGamepads"] || !!navigator["webkitGamepads"]
}
var _Nj = _Mj() ? _6j : _5j;
var _Oj = [];
function _Pj() {
if (navigator["getGamepads"]) {
return navigator["getGamepads"]();
}
if (navigator["webkitGetGamepads"]) {
return navigator["webkitGetGamepads"]()
}
if (navigator["webkitGamepads"]) {
return navigator["webkitGamepads"]()
}
return null
}
function _Qj() {
var gamepads = _Pj();
if (gamepads !== null) {
var _Rj = 0;
for (_Rj = 0; _Rj < gamepads.length; ++_Rj) {
var _Sj = gamepads[_Rj];
if (!_Sj && _Oj[_Rj]) {
_Oj[_Rj] = undefined;
var _Tj = _Uj._Vj(undefined, undefined, _Wj, undefined);
_Tj._Xj = "gamepad lost";
_Tj._Yj = _Rj;
_Tj._Zj = 0;
_Tj.__j = true
} else {
if (_Sj && !_Oj[_Rj]) {
_Oj[_Rj] = new _zi();
if (_yi[_Rj] !== undefined) {
_Oj[_Rj]._Ii = _yi[_Rj];
}
var _Tj = _Uj._Vj(undefined, undefined, _Wj, undefined);
_Tj._Xj = "gamepad discovered";
_Tj._Yj = _Rj;
_Tj._Zj = 0;
_Tj.__j = true
}
if (_Oj[_Rj]) {
_Oj[_Rj]._Li(_Sj)
}
}
}
}
}
function _0k(_Ri) {
if (_Ri < _7j) {
return _Ri
}
switch (_Ri) {
case _8j:
return _sj;
case _9j:
return _tj;
case _aj:
return _uj;
case _bj:
return _vj;
case _cj:
return _wj;
case _dj:
return _xj;
case _ej:
return _yj;
case _fj:
return _zj;
case _gj:
return _Aj;
case _hj:
return _Bj;
case _ij:
return _Cj;
case _jj:
return _Dj;
case _kj:
return _Ej;
case _lj:
return _Fj;
case _mj:
return _Gj;
case _nj:
return _Hj
}
return 0
}
function _1k(_Zi) {
if (_Zi < _7j) {
return _Zi
}
switch (_Zi) {
case _oj:
return _Ij;
case _pj:
return _Jj;
case _qj:
return _Kj;
case _rj:
return _Lj
}
return 0
}
function _2j() {} /*@this {yyGamepadManager} */
this._2k = function () {
return _Oj.length
}; /*@this {yyGamepadManager} */
this._3k = function (_4k) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Oi()
}
return ""
}; /*@this {yyGamepadManager} */
this._6k = function () {
return (_Nj !== _5j)
}; /*@this {yyGamepadManager} */
this._Ki = function (_4k) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Ki
}
return 0.0;
}; /*@this {yyGamepadManager} */
this._7k = function (_4k, _8k) {
var _5k = _Oj[_4k];
if (_5k) {
if ((_8k >= 0.0) && (_8k <= _3j)) {
_5k._Ki = _8k
}
}
}; /*@this {yyGamepadManager} */
this._Ii = function (_4k) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Ii
} else if (_yi[_4k] !== undefined) {
return _yi[_4k]
}
return 0.0
}; /*@this {yyGamepadManager} */
this._9k = function (_4k, _ak) {
_yi[_4k] = _ak;
var _5k = _Oj[_4k];
if (_5k) {
if ((_ak >= 0.0) && (_ak <= _4j)) {
_5k._Ii = _ak
}
}
}; /*@this {yyGamepadManager} */
this._bk = function () {
_Oj = []
}; /*@this {yyGamepadManager} */
this._ck = function () {
switch (_Nj) {
case _6j:
_Qj();
break;
case _5j:
default:
return
}
}; /*@this {yyGamepadManager} */
this._dk = function (_4k) {
if (_Oj[_4k] !== null && _Oj[_4k] !== undefined) {
return true
}
return false
}; /*@this {yyGamepadManager} */
this._Pi = function (_4k) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Pi()
}
return 0
}; /*@this {yyGamepadManager} */
this._Xi = function (_4k) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Xi()
}
return 0
}; /*@this {yyGamepadManager} */
this._Vi = function (_4k, _Ri) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Vi(_0k(_Ri), _5k._Ki);
}
return false
}; /*@this {yyGamepadManager} */
this._Qi = function (_4k, _Ri) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Qi(_0k(_Ri), _5k._Ki)
}
return false
}; /*@this {yyGamepadManager} */
this._Ui = function (_4k,
_Ri) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Ui(_0k(_Ri), _5k._Ki)
}
return false
}; /*@this {yyGamepadManager} */
this._Wi = function (_4k, _Ri) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Wi(_0k(_Ri))
}
return 0
}; /*@this {yyGamepadManager} */
this._Yi = function (_4k, _Zi) {
var _5k = _Oj[_4k];
if (_5k) {
return _5k._Yi(_1k(_Zi), _4j)
}
return 0;
}
};
var _ek = [];
var _fk = "None";
var _gk = 0;
var _hk = 0; /*@constructor */
function _ik() {
this.x = 0;
this.y = 0;
this._Vi = 0;
this._Qi = 0;
this._Ui = 0;
this._jk = 0
};
_ik.prototype._bk = function () {
this._Vi = 0;
this._Qi = 0;
this._Ui = 0;
this._jk = 0
};;
_ik.prototype._kk = function (_ba, _ca) {
if (_q8) {
var _lk;
if (!_q8._mk) {
_lk = _nk
} else {
_lk = _q8._ok
}
for (var _O9 = 0; _O9 < _lk.length; _O9++) {
var _pk = _lk[_O9];
if (_pk._r2) {
_qk(canvas, _rk);
if (((_ba - _rk.left) >= _pk._sk) && ((_ba - _rk.left) < _pk._tk) && ((_ca - _rk.top) >= _pk._uk) && ((_ca - _rk.top) < _pk._vk)) {
this.x = _pk._wk(_ba, _ca);
this.y = _pk._xk(_ba, _ca);
return
}
}
}
}
this.x = _ba;
this.y = _ca
};; /*@constructor */
function _yk(_zk) {
for (var _i2 = 0; _i2 < _ek.length; _i2++) {
if (_ek[_i2] === _zk) {
return _i2
}
}
return -1
}
function _Ak(_zk) {
var _Bk = -1;
for (var _i2 = 0; _i2 < _ek.length; _i2++) {
if ((_ek[_i2] === _zk) || (_ek[_i2] === -1)) {
_Bk = _i2;
break
}
}
if (_Bk == -1) {
_Bk = _ek.length
}
_ek[_Bk] = _zk;
_Ck[_Bk] = new _ik();
return _Bk
}
var _Dk = !1;
function _Ek(event) {
for (var _Fk = 0; _Fk < event.changedTouches.length; _Fk++) {
var _Gk = event.changedTouches[_Fk];
var type = "";
var _Bk = -1;
_fk = event.type;
switch (event.type) {
case "touchstart":
_Bk = _Ak(_Gk["identifier"]);
break;
case "touchend":
if (!_Dk && (_Hk == _Ik)) {
_Jk();
_Dk = true
}
_Bk = _yk(_Gk["identifier"]);
_ek[_Bk] = -1;
break;
case "touchcancel":
_Bk = _yk(_Gk["identifier"]);
_ek[_Bk] = -1;
break;
case "touchmove":
_Bk = _yk(_Gk["identifier"]);
break;
default:
return
}
var _Kk;
var _Lk;
_Kk = _Gk.pageX;
_Lk = _Gk.pageY;
if (_Bk == 0) {
if (_Mk != null) {
_Nk = _Kk;
_Ok = _Lk
}
switch (event.type) {
case "touchstart":
_Pk = 1;
break;
case "touchmove":
_Pk = 1;
break;
case "touchcancel":
case "touchend":
_Pk = 0;
break
}
}
_Ck[_Bk]._kk(_Kk, _Lk);
_Qk[_Bk].x = _Kk;
_Qk[_Bk].y = _Lk;
switch (event.type) {
case "touchstart":
_Ck[_Bk]._Vi = 1;
_Qk[_Bk]._Rk = _Sk | _Tk | _Uk;
break;
case "touchcancel":
case "touchend":
_Ck[_Bk]._Vi = 0;
_Qk[_Bk]._Rk = 0;
break;
case "touchmove":
default:
break
}
event.preventDefault()
}
}
function _Vk(e) {
var _Bk = -1;
var type = "";
switch (e.type) {
case 'mousemove':
_Bk = 0;
break;
case 'touchstart':
case 'touchmove':
case 'touchend':
_Ek(e);
break;
case 'pointerdown':
case 'MSPointerDown':
_Bk = _Ak(e["pointerId"]);
type = "start";
break;
case 'pointermove':
case 'MSPointerMove':
_Bk = _yk(e["pointerId"]);
type = "move";
break;
case 'pointerup':
case 'MSPointerUp':
case 'pointercancel':
case 'MSPointerCancel':
case 'pointerout':
case 'MSPointerOut':
_Bk = _yk(e["pointerId"]);
_ek[_Bk] = -1;
type = "end";
break
}
if (_Bk >= 0) {
var _Kk = e.pageX;
var _Lk = e.pageY;
if (_Bk == 0) {
if (_Mk != null) {
_Nk = _Kk;
_Ok = _Lk
}
switch (type) {
case "start":
case "move": {
_Wk = 0;
if (e.pointerType == "mouse") {
_Wk = e.button
}
if (_Wk == 2) _Wk = 1;
else if (_Wk == 1) _Wk = 2;
_Xk = _Wk;
_Yk = _Wk;
_Pk |= (1 << _Wk)
}
break;
case "end":
_Pk = 0;
break
}
}
_Ck[_Bk]._kk(_Kk, _Lk);
_Qk[_Bk].x = _Kk;
_Qk[_Bk].y = _Lk;
switch (type) {
case "start":
_Ck[_Bk]._Vi = 1;
_Qk[_Bk]._Rk = _Sk | _Tk | _Uk;
break;
case "end":
_Ck[_Bk]._Vi = 0;
_Qk[_Bk]._Rk = 0;
break;
case "move":
default:
break
}
}
e.preventDefault()
}
function _Zk() {
if ((window.PointerEvent) || (window.navigator.pointerEnabled) || (window.navigator.msPointerEnabled)) {
canvas.addEventListener("pointerdown", _Vk, false);
canvas.addEventListener("pointermove", _Vk, false);
canvas.addEventListener("pointerup", _Vk, false);
canvas.addEventListener("pointercancel", _Vk, false);
canvas.addEventListener("pointerover", _Vk, false);
canvas.addEventListener("pointerout", _Vk, false);
canvas.addEventListener("MSPointerDown", _Vk, false);
canvas.addEventListener("MSPointerMove", _Vk, false);
canvas.addEventListener("MSPointerUp", _Vk, false);
canvas.addEventListener("MSPointerCancel", _Vk, false);
canvas.addEventListener("MSPointerOver",
_Vk, false);
canvas.addEventListener("MSPointerOut", _Vk, false)
} else {
canvas.ontouchstart = _Ek;
canvas.ontouchmove = _Ek;
canvas.ontouchend = _Ek;
canvas.ontouchcancel = _Ek
}
canvas.style.touchAction = "none"
}
var __k, _0l, _1l, _2l, _3l, _4l, _5l; /*@constructor */ /*@constructor */
function _6l(_7l, _8l) {
this._9l = [];
this._eh = _7l;
this._fh = _8l;
var _jb = _7l * _8l;
for (var _i2 = 0; _i2 < _jb; _i2++) {
this._9l[_i2] = 0
}
}
_6l.prototype._al = function (_bl) {
this._eh = _bl._eh;
this._fh = _bl._fh;
this._9l = _bl._9l.slice()
};;
var _cl = _dl;
function _dl(_el, _ba,
_ca, _z8) {
_el = yyGetInt32(_el);
_ba = yyGetInt32(_ba);
_ca = yyGetInt32(_ca);
var _fl = _gl._ta(_el);
if (!_fl) {
_hl("Error: invalid ds_grid ID (ds_grid_set)");
return
}
if (_ba < 0 || _ba >= _fl._eh || _ca < 0 || _ca >= _fl._fh) {
_hl("Error: grid out of bounds(set) - GridID: " + _el + " size[" + _fl._eh + "," + _fl._fh + "] at (" + _ba + "," + _ca + ")");
return
}
_fl._9l[_ba + (_ca * _fl._eh)] = _z8
}
var _il = _jl;
function _jl(_el, _ba, _ca, _z8) {
_el = yyGetInt32(_el);
_ba = yyGetInt32(_ba);
_ca = yyGetInt32(_ca);
var _fl = _gl._ta(_el);
if (!_fl) {
_hl("Error: invalid ds_grid ID (ds_grid_set)");
return _z8
}
if (_ba < 0 || _ba >= _fl._eh || _ca < 0 || _ca >= _fl._fh) {
_hl("Error: grid out of bounds(set) - GridID: " + _el + " size[" + _fl._eh + "," + _fl._fh + "] at (" + _ba + "," + _ca + ")");
return _z8
}
_fl._9l[_ba + (_ca * _fl._eh)] = _z8;
return _z8
}
var _kl = _ll;
function _ll(_el, _ba, _ca, _z8) {
_el = yyGetInt32(_el);
_ba = yyGetInt32(_ba);
_ca = yyGetInt32(_ca);
var _fl = _gl._ta(_el);
if (!_fl) {
_hl("Error: invalid ds_grid ID (ds_grid_set)");
return _z8
}
if (_ba < 0 || _ba >= _fl._eh || _ca < 0 || _ca >= _fl._fh) {
_hl("Error: grid out of bounds(set) - GridID: " + _el + " size[" + _fl._eh + "," + _fl._fh + "] at (" + _ba + "," + _ca + ")");
return _z8
}
var _i9 = _fl._9l[_ba + (_ca * _fl._eh)];
_fl._9l[_ba + (_ca * _fl._eh)] = _z8;
return _i9
}
var _ml = _nl;
function _nl(_el, _ba, _ca) {
_el = yyGetInt32(_el);
var _fl = _gl._ta(_el),
x = yyGetInt32(_ba),
y = yyGetInt32(_ca);
if (!_fl) {
_hl("Error: invalid ds_grid ID (ds_grid_get)");
return undefined
}
if (x < 0 || x >= _fl._eh || y < 0 || y >= _fl._fh) {
_hl("Error: grid out of bounds(get) - GridID: " + _el + " size[" + _fl._eh + "," + _fl._fh + "] at (" + x + "," + y + ")");
return undefined
}
return _fl._9l[x + (y * _fl._eh)]
}
function _ol() {
var _gb = new _pl();
_gb._ql = true;
return _rl._Vj(_gb)
}
function _sl(_el) {
_el = yyGetInt32(_el);
var _tl = _rl._ta(_el);
if (_tl) {
_tl._bk();
_rl._ul(_el)
}
}
function _kd(_el) {
var _vl = _rl._ta(yyGetInt32(_el));
if (_vl) {
_vl._bk();
return
}
_hl("Error: invalid ds_list ID (ds_list_clear)")
}
function _wl(_el) {
var _vl = _rl._ta(yyGetInt32(_el));
if (_vl) return _vl.length;
_hl("Error: invalid ds_list ID (ds_list_size)");
return 0
}
function _jc() {
var _xl = arguments;
var _yl = arguments.length;
var _vl = _rl._ta(_xl[0]);
if (!_vl) {
_hl("Error: invalid ds_list ID (ds_list_add)");
return
}
for (var _i2 = 1; _i2 < _yl; _i2++) {
_vl._Vj(_xl[_i2])
}
return
}
function _zl(_el, _Al) {
if (isNaN(_Al)) _hl("Error: index must be a number");
var _O9, _Bl = _Cl(_Al),
_vl = _rl._ta(_Cl(yyGetInt32(_el)));
if (_vl) {
_O9 = _vl._Dl[_Bl];
if (typeof (_O9) === "object" && _O9.Object !== undefined) {
return _O9.Object
} else return _O9
}
_hl("Error: invalid ds_list ID (ds_list_find_value)");
return undefined
}
var _El = 1,
_Fl = 2;
function _Gl() {}
_Gl.prototype._el = 0;;
function _Hl(_Il) {
switch (typeof (_Il)) {
case "undefined":
case "number":
case "string":
case "boolean":
break;
case "object":
if (_Il instanceof Long) _Il = "__@@YYLong-" + _Il.toString();
else if (_Il instanceof ArrayBuffer) _Il = "__@@YYArrayBuffer-" + _Jl(_Il);
else _Il = "__@@YYKey-" + JSON.stringify(_Il);
break;
default:
_hl("Illegal key type for ds_map");
break
}
return _Il
}
function _Jl(_Il) {
for (var _gb = 0; _gb < _Kl._Dl.length; _gb++) {
if (_Kl._Dl[_gb]._Ll == _Il) return _gb.toString()
}
return -1
}
function _Ml(_el) {
return _Nl(Number._Ol(_el))
}
function _Pl(_Il) {
if (typeof (_Il) === "string") {
if (_Il.startsWith("__@@YYKey-")) {
var _Ql = _Il.substring(10);
_Il = JSON.parse(_Ql)
} else if (_Il.startsWith("__@@YYLong-")) {
var _Rl = _Il.substring(11);
_Il = Long._Ol(_Rl)
} else if (_Il.startsWith("__@@YYArrayBuffer-")) {
var buffer = _Il.substring(18);
_Il = _Ml(buffer)
}
}
return _Il
} /*@constructor */
function _Sl(_Dh, _Tl) {
this._Ul = _Dh;
this.Object = _Tl
}
function _58() {
var _Ob = {};
var id = _Pb._Vj(_Ob);
return id
}
function _e8(_el) {
_el = yyGetInt32(_el);
var _Ob = _Pb._ta(_el);
if (_Ob) {
_Vl(_Ob);
_Pb._ul(_el)
}
}
function _Wl(_el) {
_el = yyGetInt32(_el);
var _Ob = _Pb._ta(_el);
if (_Ob) {
_Vl(_Ob);
var _Xl = {};
_Pb._Yl(_el, _Xl)
}
}
function _Vl(_Zl) {
for (var __l in _Zl) {
var _O9 = _Zl[__l];
if (_O9 != null && _O9.Object !== undefined) switch (_O9._Ul) {
case _El:
_e8(_O9.Object);
break;
case _Fl:
_sl(_O9.Object);
break
}
}
}
function _78(_el, _Il, _z8) {
_Il = _Hl(_Il);
var _Ob = _Pb._ta(yyGetInt32(_el));
if (_Ob) {
if (_Ob.hasOwnProperty(_Il)) {} else _Ob[_Il] = _z8
}
}
function _0m(_el, _Il) {
if (Number.isNaN(_Il)) return undefined;
if ((_el == undefined) || Number.isNaN(_el)) {
_hl("Error: " + _el + " is not a valid map reference");
return undefined
}
_Il = _Hl(_Il);
var _Ob = _Pb._ta(yyGetInt32(_el));
if (_Ob) {
var _1m = _Ob[_Il];
if (typeof (_1m) === "object" && (_1m != null) && _1m.Object !== undefined) {
return _1m.Object
} else return _1m;
}
return undefined
}
function _2m(_el, _Il) {
_Il = _Hl(_Il);
var _3m = false;
var _Ob = _Pb._ta(yyGetInt32(_el));
for (var _4m in _Ob) {
if (_Ob.hasOwnProperty(_4m)) {
if (_3m) {
return _Pl(_4m)
}
if (_4m == _Il) {
_3m = true
}
}
}
return undefined
}
function _5m(_el) {
var _Ob = _Pb._ta(yyGetInt32(_el));
for (var _4m in _Ob) {
if (_Ob.hasOwnProperty(_4m)) {
return _Pl(_4m)
}
}
return undefined
} /*@constructor */ /*@constructor */
function _6m(_7m, _Tl) {
this._r3 = _7m;
this._8m = _Tl
}
function _9m(_el, _z8, _am) {
var _bm = _cm._ta(yyGetInt32(_el));
if (_bm == null || _bm == undefined) {
_hl("Error: invalid priority queue ds_priority_add()");
return
}
var _dm = new _6m(_am, _z8);
_bm._Vj(_dm)
}
var _em = !1;
var _fm = 'Trying to stop non-existing sound.',
_gm = 'Trying to draw a non-existing sprite.',
_hm = 'Trying to draw a non-existing background.',
_im = 'Cannot compare arguments.',
_jm = 'Trying to replace non-existing resource.',
_km = 'File does not exist.',
_lm = 'The particle emitter must first be created.';
var _mm = -1,
_nm = [],
_om = [];
function _pm(_qm, _ih, _Bd) {
_qm._rm = _Cl(_ih);
_qm._u5 = _Bd
}
var _sm = _pm;
function _tm(_ih) {
_um(_ih)
}
var _vm = _tm;
function _wm(_Dh, _xm, _ym, _zm, _Am, _Bm) {
var type = _Cl(_Dh);
var _Cm = _Cl(_xm);
var _Dm = _Cl(_ym);
var _Em = _Cl(_zm);
if (_mm < 0) {
_mm = _Fm()
}
if (_nm[type] < 0) {
_nm[type] = _Gm()
}
var _Hm = _nm[type];
if (_Cm == 0) {
_Im(_Hm, _Dm, _Em)
} else {
_Jm(_Hm, _Dm, _Em)
}
_Km(_Hm, _Am, _Bm)
}
var _Lm = _wm;
function _Mm(_Nm) {
var _Om = _Pm._Qm(_Nm);
if ((_Om === null) || (_Om === undefined)) {
return false
}
return true
}
function _Rm(_Nm) {
var _Sm = _Pm._Qm(_Nm);
if (!_Sm) return 0;
if (_Sm._Tm === undefined) return 0;
return _Sm._Tm._L3
}
function _Um(_Nm) {
var _Sm = _Pm._Qm(_Nm);
if (!_Sm) return 0;
if (_Sm._Tm === undefined) return 0;
return _Sm._Tm._M3
}
function _Vm(_ba, _ca, _7l, _8l, _Wm, _Xm) {
var _Ym = _Zm(_7l, _8l);
var __m = _0n._ta(_Ym);
var _1n = __m.getContext('2d');
_1n.drawImage(canvas, -_ba, -_ca);
if (_Wm) {
_2n(_1n, _7l, _8l)
}
var _3n = new _4n();
var _s9 = new _5n();
_3n._Tm = _s9;
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _7l;
_s9._l2 = _8l;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _s9._k2;
_s9._M3 = _s9._l2;
_s9._N3 = _Ym;
_s9._A9 = __m;
return _Pm._6n(_3n)
}
function _7n(_el, _ba, _ca, _7l, _8l, _Wm, _Xm) {
var _8n = _0n._ta(_el);
var _Ym = _Zm(_7l, _8l);
var __m = _0n._ta(_Ym);
var _1n = __m.getContext('2d');
_1n.drawImage(_8n, -_ba, -_ca);
if (_Wm) {
_2n(_1n, _7l, _8l)
}
var _3n = new _4n();
var _s9 = new _5n();
_3n._Tm = _s9;
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _7l;
_s9._l2 = _8l;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _s9._k2;
_s9._M3 = _s9._l2;
_s9._N3 = _Ym;
_s9._A9 = __m;
return _Pm._6n(_3n)
}
function _9n(_7l, _8l, _3h) {
var _an = _Zm(_7l, _8l);
var _bn = _0n._ta(_an);
var _1n = _bn.getContext('2d');
_1n.globalAlpha = 1.0;
_1n.fillStyle = _cn(_4h(_3h), 1);
_1n.fillRect(0, 0, _7l, _8l);
var _3n = new _4n();
var _s9 = new _5n();
_3n._Tm = _s9;
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _7l;
_s9._l2 = _8l;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _s9._k2;
_s9._M3 = _s9._l2;
_s9._N3 = _an;
_s9._A9 = _bn;
return _Pm._6n(_3n)
}
var _dn = _9n;
function _en(_l9) {
var __m = _Pm._Qm(_l9);
if (__m) {
return ({
_Wg: __m._Tm._A9,
_Xg: __m._Tm
})
}
return null
}
var _fn = [];
var _gn = 0;
function _76(_hn, _ba, _ca, _Tl, _in, _jn) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
_in = yyGetBool(_in);
return _kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _ba, _ca, _in, function (_mn) {
var _nn = _mn._on(_ba, _ca, _in);
if (!_nn) {
return _ln
}
return _mn.id
})
}
function _pn(_qn, _rn, _sn, _tn) {
var _un = [];
for (var _i2 = 0; _i2 < _qn.length; ++_i2) {
var _vn = _qn[_i2];
var _of = _vn.x - _sn;
var _pf = _vn.y - _tn;
var _wn = (_of * _of) + (_pf * _pf);
var _xn = {
_yn: _vn.id,
_zn: _wn
};
_un.push(_xn);
}
_un.sort(function (_a9, _99) {
return _a9._zn - _99._zn
});
for (var _i2 = 0; _i2 < _un.length; ++_i2) {
_rn._Vj(_un[_i2]._yn)
}
}
function _86(_hn, _ba, _ca, _Tl, _in, _jn, _gc, _An) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
_in = yyGetBool(_in);
var _vl = _rl._ta(yyGetInt32(_gc));
if (!_vl) {
_hl("Error: invalid ds_list ID (collision_point_list)");
return 0
}
var _Bn = 0;
var sort = yyGetBool(_An);
var _Va = [];
_kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _ba, _ca, _in, function (_mn) {
if (_mn._on(_ba, _ca, _in)) {
if (sort) _Va[_Bn] = _mn;
else _vl._Vj(_mn.id);
_Bn += 1
}
return _ln
});
if (sort) _pn(_Va, _vl, _ba, _ca);
return _Bn
}
function _96(_hn, _xb, _yb, _Za, __a, _Tl, _in, _jn) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_in = yyGetBool(_in);
return _kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _xb, _yb, _Za, __a, _in, function (_mn) {
var _nn = _mn._Cn(_xb, _yb, _Za, __a, _in);
if (!_nn) {
return _ln
}
return _mn.id
})
}
function _a6(_hn, _xb, _yb, _Za, __a, _Tl, _in, _jn, _gc, _An) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_in = yyGetBool(_in);
var _vl = _rl._ta(yyGetInt32(_gc));
if (!_vl) {
_hl("Error: invalid ds_list ID (collision_rectangle_list)");
return 0
}
var _Bn = 0;
var sort = yyGetBool(_An);
var _Va = [];
_kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _xb, _yb,
_Za, __a, _in,
function (_mn) {
if (_mn._Cn(_xb, _yb, _Za, __a, _in)) {
if (sort) _Va[_Bn] = _mn;
else _vl._Vj(_mn.id);
_Bn += 1
}
return _ln
});
if (sort) {
var _Dn = (_xb + _Za) * 0.5;
var _En = (_yb + __a) * 0.5;
_pn(_Va, _vl, _Dn, _En)
}
return _Bn
}
function _b6(_hn, _Fn, _Gn, _Hn, _Tl, _in, _jn) {
return _d6(_hn, _Fn - _Hn, _Gn - _Hn, _Fn + _Hn, _Gn + _Hn, _Tl, _in, _jn)
}
function _c6(_hn, _Fn, _Gn, _Hn, _Tl, _in, _jn, _gc, _An) {
var _vl = _rl._ta(yyGetInt32(_gc));
if (!_vl) {
_hl("Error: invalid ds_list ID (collision_circle_list)");
return 0
}
return _e6(_hn, _Fn - _Hn, _Gn - _Hn, _Fn + _Hn, _Gn + _Hn,
_Tl, _in, _jn, _gc, _An)
}
function _d6(_hn, _xb, _yb, _Za, __a, _Tl, _in, _jn) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_in = yyGetBool(_in);
return _kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _xb, _yb, _Za, __a, _in, function (_mn) {
var _nn = _mn._In(_xb, _yb, _Za, __a, _in);
if (!_nn) {
return _ln
}
return _mn.id
})
}
function _e6(_hn, _xb, _yb, _Za, __a, _Tl, _in, _jn, _gc, _An) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_in = yyGetBool(_in);
var _vl = _rl._ta(yyGetInt32(_gc));
if (!_vl) {
_hl("Error: invalid ds_list ID (collision_ellipse_list)");
return 0
}
var _Bn = 0;
var sort = (_An >= 0.5) ? true : false;
var _Va = [];
_kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _xb, _yb, _Za, __a, _in, function (_mn) {
if (_mn._In(_xb, _yb, _Za, __a, _in)) {
if (sort) _Va[_Bn] = _mn;
else _vl._Vj(_mn.id);
_Bn += 1
}
return _ln
});
if (sort) {
var _Dn = (_xb + _Za) * 0.5;
var _En = (_yb + __a) * 0.5;
_pn(_Va, _vl, _Dn, _En)
}
return _Bn
}
function _f6(_hn, _xb, _yb, _Za, __a, _Tl, _in, _jn) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_in = yyGetBool(_in);
return _kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _xb, _yb, _Za, __a, _in, function (_mn) {
var _nn = _mn._Jn(_xb, _yb, _Za, __a, _in);
if (!_nn) {
return _ln;
}
return _mn.id
})
}
function _g6(_hn, _xb, _yb, _Za, __a, _Tl, _in, _jn, _gc, _An) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_in = yyGetBool(_in);
var _vl = _rl._ta(yyGetInt32(_gc));
if (!_vl) {
_hl("Error: invalid ds_list ID (collision_line_list)");
return 0
}
var _Bn = 0;
var sort = yyGetBool(_An);
var _Va = [];
_kn(_hn, yyGetInt32(_Tl), yyGetBool(_jn), _ln, _xb, _yb, _Za,
__a, _in,
function (_mn) {
if (_mn._Jn(_xb, _yb, _Za, __a, _in)) {
if (sort) _Va[_Bn] = _mn;
else _vl._Vj(_mn.id);
_Bn += 1
}
return _ln
});
if (sort) _pn(_Va, _vl, _xb, _yb);
return _Bn
}
function _Kn(_Ln, _Mn, _6b, _7b, _8b, _9b, _qf, _rf) {
var _Df = _qf - _6b;
var _Ff = _8b - _6b;
var _Hf = _Ln - _6b;
var _Ef = _rf - _7b;
var _Gf = _9b - _7b;
var _If = _Mn - _7b;
var _Nn = (_Df * _Df) + (_Ef * _Ef);
var _On = (_Df * _Ff) + (_Ef * _Gf);
var _Pn = (_Df * _Hf) + (_Ef * _If);
var _Qn = (_Ff * _Ff) + (_Gf * _Gf);
var _Rn = (_Ff * _Hf) + (_Gf * _If);
var _Sn = 1.0 / (_Nn * _Qn - _On * _On);
var _N9 = (_Qn * _Pn - _On * _Rn) * _Sn;
var _O9 = (_Nn * _Rn - _On * _Pn) * _Sn;
return ((_N9 >= 0.0) && (_O9 >= 0.0) && (_N9 + _O9 < 1.0));
}
function _Tn(_sn, _tn, _Un, _Vn, _Wn) {
var _Xn = (((_sn - _Un) * (_sn - _Un)) + ((_tn - _Vn) * (_tn - _Vn)));
if (_Xn <= _Wn) return true;
return false
}
function _Yn(_Zn, __n) {
var _of = __n.x - _Zn.x;
var _pf = __n.y - _Zn.y;
var _0o = {
"x": -_pf,
"y": _of
};
return _0o
}
function _1o(_3e, _2o, _0o) {
var min, max;
var _Xn = _3e[0].x * _0o.x + _3e[0].y * _0o.y;
min = max = _Xn;
for (var _i2 = 1; _i2 < _2o; ++_i2) {
_Xn = _3e[_i2].x * _0o.x + _3e[_i2].y * _0o.y;
if (_Xn < min) min = _Xn;
else if (_Xn > max) max = _Xn
}
var _3o = {
"min": min,
"max": max
};
return _3o
}
function _4o() {
_Of("d3d_start()")
}
function _5o() {
_Of("d3d_end()")
}
function _6o(enable) {
_Of("d3d_set_hidden()")
}
function _7o(_8o) {
_Of("d3d_set_culling()")
}
function _9o(_x1) {
_Of("d3d_set_shading()");
}
function _ao(_bo) {
_Of("d3d_set_zwriteenable()")
}
function _co(_r3) {
_Of("d3d_set_depth()")
}
function _do(_eo, _fo, _go, alpha) {
_Of("draw_set_color_write_enable()")
}
var _ho = _do;
function _io(enable) {
_Of("d3d_set_shading()")
}
function _jo(_ko, _of, _pf, _lo, _f9) {
_Of("d3d_light_define_direction()")
}
function _mo(_ko, x, y, _2g, _no, _f9) {
_Of("d3d_light_define_point()")
}
function _oo(_ko, enable) {
_Of("d3d_light_enable()")
}
function _po(_e3) {
_Of("d3d_light_define_ambient()")
}
function _qo(enable, color, start, end) {
_Of("d3d_set_fog()");
}
function _ro(index) {
_Of("d3d_light_get()")
}
function _so(index) {
_Of("d3d_light_get_ambient()")
}
function _to() {
_Of("d3d_get_lighting()")
}
function _uo(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _xo, _yo) {
_Of("d3d_draw_floor()")
}
function _zo(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _xo, _yo, _Ao) {
_Of("d3d_draw_ellipsoid()")
}
function _Bo(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _xo, _yo) {
_Of("d3d_draw_block()")
}
function _Co(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _xo, _yo, _Do, _Ao) {
_Of("d3d_draw_cylinder()")
}
function _Eo(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _xo, _yo, _Do, _Ao) {
_Of("d3d_draw_cone()")
}
function _Fo(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _xo, _yo) {
_Of("d3d_draw_wall()")
}
function _Go() {
_Of("d3d_model_create()")
}
function _Ho(_ko) {
_Of("d3d_model_destroy()")
}
function _Io(_ko) {
_Of("d3d_model_clear()")
}
function _Jo(_ko, _Ko) {
_Of("d3d_model_save()")
}
function _Lo(_ko, _Ko) {
_Of("d3d_model_load()")
}
function _Mo(_ko, _Ko) {
_Of("d3d_model_save_buffer()")
}
function _No(_ko, _Ko) {
_Of("d3d_model_load_buffer()")
}
function _Oo(_ko, x, y, _2g, _Qf) {
_Of("d3d_model_draw()")
}
function _Po(_ko, _Nf) {
_Of("d3d_model_primitive_begin()")
}
function _Qo(_ko, x, y, _2g) {
_Of("d3d_model_vertex()")
}
function _Ro(_ko, x, y, _2g, _f9, alpha) {
_Of("d3d_model_vertex_colour()")
}
function _So(_ko, x, y, _2g, _f9, alpha) {
_Of("d3d_model_vertex_color()")
}
function _To(_ko, x, y, _2g, _Vf, _Wf) {
_Of("d3d_model_vertex_texture()")
}
function _Uo(_ko, x, y, _2g, _Vf, _Wf, _f9, alpha) {
_Of("d3d_model_vertex_texture_colour()")
}
function _Vo(_ko,
x, y, _2g, _Vf, _Wf, _f9, alpha) {
_Of("d3d_model_vertex_texture_color()")
}
function _Wo(_ko, x, y, _2g, _9g, _ag, _bg) {
_Of("d3d_model_vertex_normal()")
}
function _Xo(_ko, x, y, _2g, _9g, _ag, _bg, _f9, alpha) {
_Of("d3d_model_vertex_normal_color()")
}
function _Yo(_ko, x, y, _2g, _9g, _ag, _bg, _Vf, _Wf) {
_Of("d3d_model_vertex_normal_texture()")
}
function _Zo(_ko, x, y, _2g, _9g, _ag, _bg, _Vf, _Wf, _f9, alpha) {
_Of("d3d_model_vertex_normal_texture_color()")
}
function __o(_ko) {
_Of("d3d_model_primitive_end()")
}
function _0p(_ko, _6b, _7b, _vo, _8b, _9b, _wo,
_xo, _yo) {
_Of("d3d_model_block()")
}
function _1p(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Do, _Ao) {
_Of("d3d_model_cylinder()")
}
function _2p(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Do, _Ao) {
_Of("d3d_model_cone()")
}
function _3p(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Ao) {
_Of("d3d_model_ellipsoid()")
}
function _4p(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo) {
_Of("d3d_model_wall()")
}
function _5p(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo) {
_Of("d3d_model_floor()")
}
function _6p(enable) {
_Of("d3d_set_perspective()")
}
function _7p(_8p, _9p, _ap,
_bp, _cp, _dp, _ep, _fp, _gp) {
_Of("d3d_set_projection()")
}
function _hp(_8p, _9p, _ap, _bp, _cp, _dp, _ep, _fp, _gp, angle, _ip, _jp, _kp) {
_Of("d3d_set_projection_ext()")
}
function _lp(x, y, _k2, _l2, angle) {
_Of("d3d_set_projection_ortho()")
}
function _mp(x, y, _k2, _l2, angle) {
_Of("d3d_set_projection_perspective()")
}
function _np() {
_Of("d3d_transform_set_identity()")
}
function _op(_pp, _qp, _rp) {
_Of("d3d_transform_set_translation()")
}
function _sp(_8d, _9d, _tp) {
_Of("d3d_transform_set_scaling()")
}
function _up(angle) {
_Of("d3d_transform_set_rotation_x()");
}
function _vp(angle) {
_Of("d3d_transform_set_rotation_y()")
}
function _wp(angle) {
_Of("d3d_transform_set_rotation_z()")
}
function _xp(_yp, _zp, _Ap, angle) {
_Of("d3d_transform_set_rotation_axis()")
}
function _Bp(_pp, _qp, _rp) {
_Of("d3d_transform_add_translation()")
}
function _Cp(_8d, _9d, _tp) {
_Of("d3d_transform_add_scaling()")
}
function _Dp(angle) {
_Of("d3d_transform_add_rotation_x()")
}
function _Ep(angle) {
_Of("d3d_transform_add_rotation_y()")
}
function _Fp(angle) {
_Of("d3d_transform_add_rotation_axis()")
}
function _Gp(_yp,
_zp, _Ap, angle) {
_Of("d3d_transform_add_rotation_z()")
}
function _Hp(_ba, _ca, _gh) {
_Of("d3d_transform_vertex()")
}
function _Ip(_Dh) {
_Of("matrix_get()")
}
function _Jp(_Dh, _Kp) {
_Of("matrix_set()")
}
var _Lp = _Mp;
var _Np = _Op;
var _Pp = _Qp;
var _Rp = _Sp;
var _Tp = _Up;
var _Vp = _Wp;
var _Xp = _Yp;
var _Zp = __p;
var _0q = _1q;
var _2q = _3q;
var _4q = _5q;
var _6q = _7q;
var _8q = _9q;
var _aq = _bq;
function _cq() {
_Of("d3d_transform_stack_clear()")
}
function _dq() {
_Of("d3d_transform_stack_empty()")
}
function _eq() {
_Of("d3d_transform_stack_push()")
}
function _fq() {
_Of("d3d_transform_stack_pop()")
}
function _gq() {
_Of("d3d_transform_stack_top()")
}
function _hq() {
_Of("d3d_transform_stack_discard()")
}
function _iq(enable) {
_Of("gpu_set_blendenable()")
}
function _jq(enable) {
_Of("gpu_set_ztestenable()");
}
function _kq(_lq) {
_Of("gpu_set_zfunc()")
}
function _mq(enable) {
_Of("gpu_set_zwriteenable()")
}
function _nq(enable, _f9, start, end) {
_Of("gpu_set_fog()")
}
function _oq(_pq) {
_Of("gpu_set_cullmode()")
}
function _qq(_rq) {
_Of("gpu_set_blendmode()")
}
function _sq(src, _fe) {
_Of("gpu_set_blendmode_ext()")
}
function _tq(src, _fe, _uq, _vq) {
_Of("gpu_set_blendmode_ext_sepalpha()")
}
function _wq(_eo, _fo, _go, alpha) {
_Of("gpu_set_colorwriteenable()")
}
function _xq(_eo, _fo, _go, alpha) {
_Of("gpu_set_colourwriteenable()")
}
function _yq(enable) {
_Of("gpu_set_alphatestenable()")
}
function _zq(value) {
_Of("gpu_set_alphatestref()")
}
function _Aq(_Bq) {
_Of("gpu_set_texfilter()")
}
function _Cq(_Dq, _Bq) {
_Of("gpu_set_texfilter_ext()")
}
function _Eq(repeat) {
_Of("gpu_set_texrepeat()")
}
function _Fq(_Dq, repeat) {
_Of("gpu_set_texrepeat_ext()")
}
function _Gq(_Bq) {
_Of("gpu_set_tex_filter()")
}
function _Hq(_Dq, _Bq) {
_Of("gpu_set_tex_filter_ext()")
}
function _Iq(repeat) {
_Of("gpu_set_tex_repeat()")
}
function _Jq(_Dq, repeat) {
_Of("gpu_set_tex_repeat_ext()")
}
function _Kq(_Lq) {
_Of("gpu_set_tex_mip_filter(filter)")
}
function _Mq(_Dq, _Lq) {
_Of("gpu_set_tex_mip_filter_ext(sampler_id, filter)")
}
function _Nq(_Oq) {
_Of("gpu_set_tex_mip_bias(bias)")
}
function _Pq(_Dq, _Oq) {
_Of("gpu_set_tex_mip_bias_ext(sampler_id, bias)")
}
function _Qq(_Rq) {
_Of("gpu_set_tex_min_mip(minmip)")
}
function _Sq(_Dq, _Rq) {
_Of("gpu_set_tex_min_mip_ext(sampler_id, minmip)")
}
function _Tq(_Uq) {
_Of("gpu_set_tex_max_mip(maxmip)")
}
function _Vq(_Dq, _Uq) {
_Of("gpu_set_tex_max_mip_ext(sampler_id, maxmip)")
}
function _Wq(_Xq) {
_Of("gpu_set_tex_max_aniso(maxaniso)");
}
function _Yq(_Dq, _Xq) {
_Of("gpu_set_tex_max_aniso_ext(sampler_id, maxaniso)")
}
function _Zq(__q) {
_Of("gpu_set_tex_mip_enable(setting)")
}
function _0r(_Dq, __q) {
_Of("gpu_set_tex_mip_enable_ext(sampler_id, setting)")
}
function _1r() {
_Of("gpu_get_blendenable()")
}
function _2r() {
_Of("gpu_get_ztestenable()")
}
function _3r() {
_Of("gpu_get_zfunc()")
}
function _4r() {
_Of("gpu_get_zwriteenable()");
}
function _5r() {
_Of("gpu_get_fog()")
}
function _6r() {
_Of("gpu_get_cullmode()")
}
function _7r() {
_Of("gpu_get_blendmode()")
}
function _8r() {
_Of("gpu_get_blendmode_ext()")
}
function _9r() {
_Of("gpu_get_blendmode_ext_sepalpha()")
}
function _ar() {
_Of("gpu_get_blendmode_src()")
}
function _br() {
_Of("gpu_get_blendmode_dest()")
}
function _cr() {
_Of("gpu_get_blendmode_srcalpha()");
}
function _dr() {
_Of("gpu_get_blendmode_destalpha()")
}
function _er() {
_Of("gpu_get_colorwriteenable()")
}
function _fr() {
_Of("gpu_get_colourwriteenable()")
}
function _gr() {
_Of("gpu_get_alphatestenable()")
}
function _hr() {
_Of("gpu_get_alphatestref()")
}
function _ir() {
_Of("gpu_get_texfilter()")
}
function _jr(_Dq) {
_Of("gpu_get_texfilter_ext()")
}
function _kr() {
_Of("gpu_get_texrepeat()")
}
function _lr(_Dq) {
_Of("gpu_get_texrepeat_ext()")
}
function _mr() {
_Of("gpu_get_tex_filter()")
}
function _nr(_Dq) {
_Of("gpu_get_tex_filter_ext()")
}
function _or() {
_Of("gpu_get_tex_repeat()")
}
function _pr(_Dq) {
_Of("gpu_get_tex_repeat_ext()")
}
function _qr() {
_Of("gpu_get_tex_mip_filter()")
}
function _rr(_Dq) {
_Of("gpu_get_tex_mip_filter_ext(sampler_id)");
}
function _sr() {
_Of("gpu_get_tex_mip_bias()")
}
function _tr(_Dq) {
_Of("gpu_get_tex_mip_bias_ext(sampler_id)")
}
function _ur() {
_Of("gpu_get_tex_min_mip()")
}
function _vr(_Dq) {
_Of("gpu_get_tex_min_mip_ext(sampler_id)")
}
function _wr() {
_Of("gpu_get_tex_max_mip()")
}
function _xr(_Dq) {
_Of("gpu_get_tex_max_mip_ext(sampler_id)")
}
function _yr() {
_Of("gpu_get_tex_max_aniso()")
}
function _zr(_Dq) {
_Of("gpu_get_tex_max_aniso_ext(sampler_id)")
}
function _Ar() {
_Of("gpu_get_tex_mip_enable()")
}
function _Br(_Dq) {
_Of("gpu_get_tex_mip_enable_ext(sampler_id)")
}
function _Cr() {
_Of("gpu_push_state()")
}
function _Dr() {
_Of("gpu_pop_state()")
}
function _Er() {
_Of("gpu_get_state()")
}
function _Fr(map) {
_Of("gpu_set_state()")
}
var _Gr = [];
var _Hr = 50;
var _Ir = 0;
var _Jr = new Array(_Hr + 1);
function _Kr() {
if (!_xc) {
return
}
_4o = _Lr;
_5o = _Mr;
_7o = _Nr;
_9o = _Or;
_ao = _Pr;
_co = _Qr;
_6o = _Rr;
_do = _Sr;
_ho = _Sr;
_6p = _Tr;
_7p = _Ur;
_hp = _Vr;
_lp = _Wr;
_mp = _Xr;
_np = _Yr;
_op = _Zr;
_sp = __r;
_up = _0s;
_vp = _1s;
_wp = _2s;
_xp = _3s;
_Bp = _4s;
_Cp = _5s;
_Dp = _6s;
_Ep = _7s;
_Fp = _8s;
_Gp = _9s;
_Hp = _as;
_cq = _bs;
_dq = _cs;
_eq = _ds;
_fq = _es;
_gq = _fs;
_hq = _gs;
_uo = _hs;
_zo = _is;
_Bo = _js;
_Co = _ks;
_Eo = _ls;
_Fo = _ms;
_io = _ns;
_jo = _os;
_mo = _ps;
_oo = _qs;
_po = _rs;
_qo = _ss;
_ro = _ts;
_so = _us;
_to = _vs;
_Go = _ws;
_Ho = _xs;
_Io = _ys;
_Jo = _zs;
_Lo = _As;
_Mo = _Bs;
_No = _Cs;
_Oo = _Ds;
_Po = _Es;
_Qo = _Fs;
_So = _Gs;
_Ro = _Gs;
_To = _Hs;
_Vo = _Is;
_Uo = _Is;
_Wo = _Js;
_Xo = _Ks;
_Yo = _Ls;
_Zo = _Ms;
__o = _Ns;
_0p = _Os;
_1p = _Ps;
_2p = _Qs;
_3p = _Rs;
_4p = _Ss;
_5p = _Ts;
_Ip = _Us;
_Jp = _Vs;
_Lp = _Mp;
_Np = _Op;
_Pp = _Qp;
_Rp = _Sp;
_Tp = _Up;
_Vp = _Wp;
_Xp = _Yp;
_Zp = __p;
_0q = _1q;
_qq = _Ws;
_iq = _Xs;
_jq = _Ys;
_kq = _Zs;
_mq = __s;
_nq = _0t;
_oq = _1t;
_qq = _Ws;
_sq = _2t;
_tq = _3t;
_wq = _4t;
_xq = _5t;
_yq = _6t;
_zq = _7t;
_Aq = _8t;
_Cq = _9t;
_Eq = _at;
_Fq = _bt;
_Gq = _8t;
_Hq = _9t;
_Iq = _at;
_Jq = _bt;
_Kq = _ct;
_Mq = _dt;
_Nq = _et;
_Pq = _ft;
_Qq = _gt;
_Sq = _ht;
_Tq = _it;
_Vq = _jt;
_Wq = _kt;
_Yq = _lt;
_Zq = _mt;
_0r = _nt;
_1r = _ot;
_2r = _pt;
_3r = _qt;
_4r = _rt;
_5r = _st;
_6r = _tt;
_7r = _ut;
_8r = _vt;
_9r = _wt;
_ar = _xt;
_br = _yt;
_cr = _zt;
_dr = _At;
_er = _Bt;
_fr = _Ct;
_gr = _Dt;
_hr = _Et;
_ir = _Ft;
_jr = _Gt;
_kr = _Ht;
_lr = _It;
_mr = _Ft;
_nr = _Gt;
_or = _Ht;
_pr = _It;
_qr = _Jt;
_rr = _Kt;
_sr = _Lt;
_tr = _Mt;
_ur = _Nt;
_vr = _Ot;
_wr = _Pt;
_xr = _Qt;
_yr = _Rt;
_zr = _St;
_Ar = _Tt;
_Br = _Ut;
_Cr = _Vt;
_Dr = _Wt;
_Er = _Xt;
_Fr = _Yt;
_Jr[0] = new _Zt()
}
function _Lr() {
__t = true;
_xc._0u(_1u);
_xc._2u(_3u);
_xc._4u(_5u)
}
function _Mr() {
__t = false;
_xc._0u(false);
_xc._2u(false);
_xc._4u(false)
}
function _Nr(_6u) {
_5u = _6u > 0.5;
_xc._4u(_5u)
}
function _Or(_Xm) {}
function _Pr(_7u) {
_3u = (_7u > 0.5);
_xc._2u(_3u)
}
function _Qr(_8u) {
if (__t || _s8) {
_Ye = Math.min(16000.0, Math.max(-16000.0, _8u))
} else {
_Ye = 0.0
}
}
function _Rr(_9u) {
_1u = (_9u > 0.5);
_xc._0u(_1u)
}
function _Sr(_eo, _fo, _go, alpha) {
_au._eo = (_eo >= 0.5);
_au._fo = (_fo >= 0.5);
_au._go = (_go >= 0.5);
_au.alpha = (alpha >= 0.5);
_xc._bu(_au._eo, _au._fo, _au._go, _au.alpha)
}
function _Tr(_cu) {
_du = _cu
}
function _ns(_cu) {
if (_eu != _cu) {
_eu = _cu;
_xc._fu(_gu())
}
}
function _vs() {
return _eu
}
function _Ur(_8p, _9p, _ap, _bp, _cp, _dp, _ep, _fp, _gp) {
var _hu = new _Zt();
var _Bl = new _iu(_8p, _9p, _ap);
var _ju = new _iu(_bp, _cp, _dp);
var _ku = new _iu(_ep, _fp, _gp);
_hu._lu(_Bl, _ju, _ku);
_xc._mu(_hu)
}
function _Vr(_8p, _9p,
_ap, _bp, _cp, _dp, _ep, _fp, _gp, angle, _ip, _nu, _ou) {
var _hu = new _Zt();
var _Bl = new _iu(_8p, _9p, _ap);
var _ju = new _iu(_bp, _cp, _dp);
var _ku = new _iu(_ep, _fp, _gp);
_hu._lu(_Bl, _ju, _ku);
var _3o = new _Zt();
_3o._pu(angle, _ip, _nu, _ou);
_3o._5b[_qu] *= _ru;
_xc._mu(_hu);
_xc._su(_3o)
}
function _Wr(x, y, _k2, _l2, angle) {
var _hu = new _Zt();
var _sf = new _iu(x + (_k2 / 2.0), y + (_l2 / 2.0), -_k2);
var _Q9 = new _iu(x + (_k2 / 2.0), y + (_l2 / 2.0), 0.0);
var _tf = new _iu(Math.sin(-angle * (Math.PI / 180.0)), Math.cos(-angle * (Math.PI / 180.0)), 0.0);
_hu._lu(_sf, _Q9, _tf);
var _tu = new _Zt();
_tu._uu(_k2, -_l2 * _ru, 1.0, 32000.0);
_xc._mu(_hu);
_xc._su(_tu)
}
function _Xr(x, y, _k2, _l2, angle) {
var _hu = new _Zt();
var _sf = new _iu(x + (_k2 / 2.0), y + (_l2 / 2.0), -_k2);
var _Q9 = new _iu(x + (_k2 / 2.0), y + (_l2 / 2.0), 0.0);
var _tf = new _iu(Math.sin(-angle * (Math.PI / 180.0)), Math.cos(-angle * (Math.PI / 180.0)), 0.0);
_hu._lu(_sf, _Q9, _tf);
var _3o = new _Zt();
_3o._vu(1.0, (_l2 / _k2), 1.0, 32000.0);
_3o._5b[_qu] *= _ru;
_xc._mu(_hu);
_xc._su(_3o)
}
function _hs(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _xo, _yo) {
var _wu = _xu();
_yu(true);
_0g(_sg, _Qf); {
_eg(_6b, _7b, _vo, 0, 0,
1, 0, 0);
_eg(_6b, _9b, _vo, 0, 0, 1, 0, _yo);
_eg(_8b, _9b, _wo, 0, 0, 1, _xo, _yo);
_eg(_8b, _7b, _wo, 0, 0, 1, _xo, 0)
}
_hg();
_yu(_wu)
}
function _is(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _zu, _Au, _Ao) {
var _wu = _xu();
_yu(true);
if (_Ao < 3) {
_Ao = 3
}
if (_Ao > 128) {
_Ao = 128
}
var _Jb = [];
var _Ib = [];
for (var _i2 = 0; _i2 <= _Ao; _i2++) {
_Jb[_i2] = Math.cos(_i2 * 2.0 * Math.PI / _Ao);
_Ib[_i2] = Math.sin(_i2 * 2.0 * Math.PI / _Ao)
}
var _Db = (_8b + _6b) / 2,
_Eb = (_9b + _7b) / 2,
_Bu = (_wo + _vo) / 2,
_Cu = (_8b - _6b) / 2,
_Du = (_9b - _7b) / 2,
_Eu = (_wo - _vo) / 2;
var _Fu = (_Ao + 1) / 2;
for (var _nb = 0; _nb < _Fu; _nb++) {
var _Gu = Math.cos(_nb * Math.PI / _Fu),
_Hu = Math.sin(_nb * Math.PI / _Fu),
_Iu = Math.cos((_nb + 1) * Math.PI / _Fu),
_Ju = Math.sin((_nb + 1) * Math.PI / _Fu);
_0g(_rg, _Qf);
for (var _i2 = 0; _i2 <= _Ao; _i2++) {
_eg(_Db + _Cu * _Hu * _Jb[_i2], _Eb + _Du * _Hu * _Ib[_i2], _Bu + _Eu * _Gu, _Hu * _Jb[_i2], _Hu * _Ib[_i2], _Gu, _zu * _i2 / _Ao, _nb * _Au / _Fu);
_eg(_Db + _Cu * _Ju * _Jb[_i2], _Eb + _Du * _Ju * _Ib[_i2], _Bu + _Eu * _Iu, _Ju * _Jb[_i2], _Ju * _Ib[_i2], _Iu, _zu * _i2 / _Ao, (_nb + 1) * _Au / _Fu)
}
_hg()
}
_yu(_wu)
}
function _js(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _zu, _Au) {
var _wu = _xu();
_yu(true);
_0g(_qg, _Qf); {
_eg(_6b, _7b, _vo, 0, 0, -1, 0, 0);
_eg(_6b,
_9b, _vo, 0, 0, -1, 0, _Au);
_eg(_8b, _9b, _vo, 0, 0, -1, _zu, _Au);
_eg(_8b, _9b, _vo, 0, 0, -1, _zu, _Au);
_eg(_8b, _7b, _vo, 0, 0, -1, _zu, 0);
_eg(_6b, _7b, _vo, 0, 0, -1, 0, 0)
} {
_eg(_6b, _7b, _wo, 0, 0, 1, 0, 0);
_eg(_8b, _7b, _wo, 0, 0, 1, _zu, 0);
_eg(_8b, _9b, _wo, 0, 0, 1, _zu, _Au);
_eg(_8b, _9b, _wo, 0, 0, 1, _zu, _Au);
_eg(_6b, _9b, _wo, 0, 0, 1, 0, _Au);
_eg(_6b, _7b, _wo, 0, 0, 1, 0, 0)
} {
_eg(_6b, _9b, _vo, 0, 1, 0, 0, 0);
_eg(_6b, _9b, _wo, 0, 1, 0, 0, _Au);
_eg(_8b, _9b, _wo, 0, 1, 0, _zu, _Au);
_eg(_8b, _9b, _wo, 0, 1, 0, _zu, _Au);
_eg(_8b, _9b, _vo, 0, 1, 0, _zu, 0);
_eg(_6b, _9b, _vo, 0, 1, 0, 0, 0)
} {
_eg(_8b,
_9b, _vo, 1, 0, 0, 0, 0);
_eg(_8b, _9b, _wo, 1, 0, 0, 0, _Au);
_eg(_8b, _7b, _wo, 1, 0, 0, _zu, _Au);
_eg(_8b, _7b, _wo, 1, 0, 0, _zu, _Au);
_eg(_8b, _7b, _vo, 1, 0, 0, _zu, 0);
_eg(_8b, _9b, _vo, 1, 0, 0, 0, 0)
} {
_eg(_8b, _7b, _vo, 0, -1, 0, 0, 0);
_eg(_8b, _7b, _wo, 0, -1, 0, 0, _Au);
_eg(_6b, _7b, _wo, 0, -1, 0, _zu, _Au);
_eg(_6b, _7b, _wo, 0, -1, 0, _zu, _Au);
_eg(_6b, _7b, _vo, 0, -1, 0, _zu, 0);
_eg(_8b, _7b, _vo, 0, -1, 0, 0, 0)
} {
_eg(_6b, _7b, _vo, -1, 0, 0, 0, 0);
_eg(_6b, _7b, _wo, -1, 0, 0, 0, _Au);
_eg(_6b, _9b, _wo, -1, 0, 0, _zu, _Au);
_eg(_6b, _9b, _wo, -1, 0, 0, _zu, _Au);
_eg(_6b, _9b, _vo, -1, 0, 0, _zu, 0);
_eg(_6b, _7b, _vo, -1, 0, 0, 0, 0)
}
_hg();
_yu(_wu)
}
function _ks(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _zu, _Au, _Do, _Ao) {
var _Jb = [];
var _Ib = [];
var _wu = _xu();
_yu(true);
if (_Ao < 3) {
_Ao = 3
}
if (_Ao > 128) {
_Ao = 128
}
for (var _i2 = 0; _i2 <= _Ao; _i2++) {
_Jb[_i2] = Math.cos(_i2 * 2.0 * Math.PI / _Ao);
_Ib[_i2] = Math.sin(_i2 * 2.0 * Math.PI / _Ao)
}
var _Db = (_8b + _6b) / 2.0;
var _Eb = (_9b + _7b) / 2.0;
var _Cu = (_8b - _6b) / 2.0;
var _Du = (_9b - _7b) / 2.0;
if (true == _Do) {
_0g(_sg, _Qf);
_eg(_Db, _Eb, _wo, 0, 0, 1, 0, _Au);
for (var _i2 = 0; _i2 <= _Ao; _i2++) {
_eg(_Db + _Jb[_i2] * _Cu, _Eb + _Ib[_i2] * _Du, _wo, 0, 0,
1, 0, _Au)
}
_hg()
}
_0g(_rg, _Qf);
for (var _i2 = 0; _i2 <= _Ao; _i2++) {
_eg(_Db + _Jb[_i2] * _Cu, _Eb + _Ib[_i2] * _Du, _wo, _Jb[_i2], _Ib[_i2], 0, _zu * _i2 / _Ao, _Au);
_eg(_Db + _Jb[_i2] * _Cu, _Eb + _Ib[_i2] * _Du, _vo, _Jb[_i2], _Ib[_i2], 0, _zu * _i2 / _Ao, 0)
}
_hg();
if (true == _Do) {
_0g(_sg, _Qf);
_eg(_Db, _Eb, _vo, 0, 0, -1, 0, 0);
for (var _i2 = _Ao; _i2 >= 0; _i2--) {
_eg(_Db + _Jb[_i2] * _Cu, _Eb + _Ib[_i2] * _Du, _vo, 0, 0, -1, 0, 0)
}
_hg()
}
_yu(_wu)
}
function _ls(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _zu, _Au, _Do, _Ao) {
var _Jb = [];
var _Ib = [];
var _wu = _xu();
_yu(true);
if (_Ao < 3) {
_Ao = 3
}
if (_Ao > 128) {
_Ao = 128
}
for (var _i2 = 0; _i2 <= _Ao; _i2++) {
_Jb[_i2] = Math.cos(_i2 * 2.0 * Math.PI / _Ao);
_Ib[_i2] = Math.sin(_i2 * 2.0 * Math.PI / _Ao)
}
var _Db = (_8b + _6b) / 2.0;
var _Eb = (_9b + _7b) / 2.0;
var _Cu = (_8b - _6b) / 2.0;
var _Du = (_9b - _7b) / 2.0;
_0g(_rg, _Qf);
for (var _i2 = 0; _i2 <= _Ao; _i2++) {
_eg(_Db, _Eb, _wo, 0, 0, 1, _zu * _i2 / _Ao, _Au);
_eg(_Db + _Jb[_i2] * _Cu, _Eb + _Ib[_i2] * _Du, _vo, _Jb[_i2], _Ib[_i2], 0, _zu * _i2 / _Ao, 0)
}
_hg();
if (true == _Do) {
_0g(_sg, _Qf);
_eg(_Db, _Eb, _vo, 0, 0, -1, 0, 0);
for (var _i2 = _Ao; _i2 >= 0; _i2--) {
_eg(_Db + _Jb[_i2] * _Cu, _Eb + _Ib[_i2] * _Du, _vo, 0, 0, -1, 0, 0)
}
_hg()
}
_yu(_wu)
}
function _ms(_6b, _7b, _vo, _8b, _9b, _wo, _Qf, _zu, _Au) {
var _wu = _xu();
_yu(true);
var _gb = Math.sqrt(_Ku(_8b - _6b) + _Ku(_9b - _7b));
if (_gb == 0.0) {
return
}
var _9g = (_9b - _7b) / _gb;
var _ag = -(_8b - _6b) / _gb;
_0g(_sg, _Qf); {
_eg(_6b, _7b, _vo, _9g, _ag, 0, 0, 0);
_eg(_8b, _9b, _vo, _9g, _ag, 0, _zu, 0);
_eg(_8b, _9b, _wo, _9g, _ag, 0, _zu, _Au);
_eg(_6b, _7b, _wo, _9g, _ag, 0, 0, _Au)
}
_hg();
_yu(_wu)
}
function _os(_ko, _of, _pf, _lo, _f9) {
var _Lu = new _iu(_of, _pf, _lo);
_Lu._Mu();
var _Nu = _ko * 4;
_Ou[_Nu + 0] = _Lu._Pu;
_Ou[_Nu + 1] = _Lu._Qu;
_Ou[_Nu + 2] = _Lu._Ru;
_Ou[_Nu + 3] = 0.0;
_Su[_Nu + 0] = (_f9 & 0xff) / 255.0;
_Su[_Nu + 1] = ((_f9 >> 8) & 0xff) / 255.0;
_Su[_Nu + 2] = ((_f9 >> 16) & 0xff) / 255.0;
_Su[_Nu + 3] = 1.0;
_Tu[_ko] = _Uu;
_Vu[_Nu + 0] = 0;
_Vu[_Nu + 1] = 0;
_Vu[_Nu + 2] = 0;
_Vu[_Nu + 3] = 0;
_xc._Wu(_ko, _Vu.subarray(_ko * 4, (_ko + 1) * 4), _Ou.subarray(_ko * 4, (_ko + 1) * 4), _Su.subarray(_ko * 4, (_ko + 1) * 4))
}
function _us() {
var _f9 = (((_Xu[0] * 255.0)) & 0xff) | (((_Xu[1] * 255.0) << 8) & 0xff00) | (((_Xu[2] * 255.0) << 16) & 0xff0000) | (((_Xu[3] * 255.0) << 24) & 0xff000000);
return _f9
}
function _ts(index) {
var _i9 = [];
if (index < 0 || index > 7) {
console.log("draw_light_get() - light index out of range");
return
}
var _Nu = index * 4;
_i9[0] = _Yu[index];
_i9[1] = _Tu[index];
if (_Tu[index] == _Uu) {
_i9[2] = _Ou[_Nu + 0];
_i9[3] = _Ou[_Nu + 1];
_i9[4] = _Ou[_Nu + 2];
_i9[5] = _Ou[_Nu + 3]
} else {
_i9[2] = _Vu[_Nu + 0];
_i9[3] = _Vu[_Nu + 1];
_i9[4] = _Vu[_Nu + 2];
_i9[5] = _Vu[_Nu + 3]
}
var _79 = (((_Su[_Nu + 0] * 255.0)) & 0xff);
var _89 = (((_Su[_Nu + 1] * 255.0) << 8) & 0xff00);
var _99 = (((_Su[_Nu + 2] * 255.0) << 16) & 0xff0000);
var _a9 = (((_Su[_Nu + 3] * 255.0) << 24) & 0xff000000);
var _f9 = _79 | _89 | _99 | _a9;
_i9[6] = _f9;
return _i9
}
function _ps(_ko, x, y, _2g, _no, _f9) {
var _Nu = _ko * 4;
_Vu[_Nu + 0] = x;
_Vu[_Nu + 1] = y;
_Vu[_Nu + 2] = _2g;
_Vu[_Nu + 3] = _no;
_Su[_Nu + 0] = (_f9 & 0xff) / 255.0;
_Su[_Nu + 1] = ((_f9 >> 8) & 0xff) / 255.0;
_Su[_Nu + 2] = ((_f9 >> 16) & 0xff) / 255.0;
_Su[_Nu + 3] = 1.0;
_Tu[_ko] = _Zu;
_Ou[_Nu + 0] = 0;
_Ou[_Nu + 1] = 0;
_Ou[_Nu + 2] = 0;
_Ou[_Nu + 3] = 0;
_xc._Wu(_ko, _Vu.subarray(_ko * 4, (_ko + 1) * 4), _Ou.subarray(_ko * 4, (_ko + 1) * 4), _Su.subarray(_ko * 4, (_ko + 1) * 4))
}
function _qs(_ko, enable) {
_Yu[_ko] = enable;
_xc.__u(_ko, enable, _Su.subarray(_ko * 4, (_ko + 1) * 4))
}
function _rs(_e3) {
_Xu[0] = (_e3 & 0xff) / 255.0;
_Xu[1] = ((_e3 >> 8) & 0xff) / 255.0;
_Xu[2] = ((_e3 >> 16) & 0xff) / 255.0;
_Xu[3] = ((_e3 >> 24) & 0xff) / 255.0;
_xc._0v(_Xu)
}
function _ss(enable, _e3, start, end) {
if (_1v == null) {
_1v = new Float32Array(8);
}
_1v[0] = enable;
var _no = end - start;
_1v[1] = (_no == 0.0) ? 0.0 : (1.0 / _no);
_1v[2] = end;
_1v[3] = 0.0;
_1v[4] = (_e3 & 0xff) / 255.0;
_1v[5] = ((_e3 >> 8) & 0xff) / 255.0;
_1v[6] = ((_e3 >> 16) & 0xff) / 255.0;
_1v[7] = ((_e3 >> 24) & 0xff) / 255.0;
_xc._2v(_1v)
}
function _ws() {
return (_Gr.push(new _3v()) - 1)
}
function _xs(_ko) {
if (_Gr[_ko]) {
_Gr[_ko]._bk();
_Gr[_ko] = null
}
}
function _ys(_ko) {
if (_Gr[_ko]) {
_Gr[_ko]._bk()
}
}
function _zs(_ko, _Ko) {
if (_Gr[_ko]) {
_Gr[_ko]._4v(_Ko)
}
}
function _Bs(_ko,
_5v) {}
function _As(_ko, _Ko) {
if (_Gr[_ko]) {
_Gr[_ko]._Lc(_Ko);
}
}
function _Cs(_ko, _5v) {}
function _Ds(_ko, x, y, _2g, _Qf) {
if (_Gr[_ko]) {
_Gr[_ko]._cd(x, y, _2g, _Qf)
}
}
function _Es(_ko, _Nf) {
if (_Gr[_ko]) {
_Gr[_ko]._Rh(_Nf)
}
}
function _Fs(_ko, x, y, _2g) {
if (_Gr[_ko]) {
_Gr[_ko]._6v(x, y, _2g)
}
}
function _Gs(_ko, x, y, _2g, _f9, alpha) {
if (_Gr[_ko]) {
_Gr[_ko]._7v(x, y, _2g, _f9, alpha)
}
}
function _Hs(_ko, x, y, _2g, _Vf, _Wf) {
if (_Gr[_ko]) {
_Gr[_ko]._8v(x, y, _2g, _Vf, _Wf)
}
}
function _Is(_ko, x, y, _2g, _Vf, _Wf, _f9, alpha) {
if (_Gr[_ko]) {
_Gr[_ko]._9v(x, y, _2g,
_Vf, _Wf, _f9, alpha)
}
}
function _Js(_ko, x, y, _2g, _9g, _ag, _bg) {
if (_Gr[_ko]) {
_Gr[_ko]._av(x, y, _2g, _9g, _ag, _bg)
}
}
function _Ks(_ko, x, y, _2g, _9g, _ag, _bg, _f9, alpha) {
if (_Gr[_ko]) {
_Gr[_ko]._bv(x, y, _2g, _9g, _ag, _bg, _f9, alpha)
}
}
function _Ls(_ko, x, y, _2g, _9g, _ag, _bg, _Vf, _Wf) {
if (_Gr[_ko]) {
_Gr[_ko]._cv(x, y, _2g, _9g, _ag, _bg, _Vf, _Wf)
}
}
function _Ms(_ko, x, y, _2g, _9g, _ag, _bg, _Vf, _Wf, _f9, alpha) {
if (_Gr[_ko]) {
_Gr[_ko]._dv(x, y, _2g, _9g, _ag, _bg, _Vf, _Wf, _f9, alpha)
}
}
function _Ns(_ko) {
if (_Gr[_ko]) {
_Gr[_ko]._Th()
}
}
function _Os(_ko, _6b, _7b,
_vo, _8b, _9b, _wo, _xo, _yo) {
if (_Gr[_ko]) {
_Gr[_ko]._ev(_6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo)
}
}
function _Ps(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Do, _Ao) {
if (_Gr[_ko]) {
_Gr[_ko]._fv(_6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Do, _Ao)
}
}
function _Qs(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Do, _Ao) {
if (_Gr[_ko]) {
_Gr[_ko]._gv(_6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Do, _Ao)
}
}
function _Rs(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Ao) {
if (_Gr[_ko]) {
_Gr[_ko]._hv(_6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo, _Ao)
}
}
function _Ss(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo) {
if (_Gr[_ko]) {
_Gr[_ko]._iv(_6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo)
}
}
function _Ts(_ko, _6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo) {
if (_Gr[_ko]) {
_Gr[_ko]._jv(_6b, _7b, _vo, _8b, _9b, _wo, _xo, _yo)
}
}
function _Yr() {
_kv(_lv, new _Zt())
}
function _Zr(_pp, _qp, _rp) {
var _5b = new _Zt();
_5b._mv(_pp, _qp, _rp);
_kv(_lv, _5b)
}
function __r(_8d, _9d, _tp) {
var _5b = new _Zt();
_5b._nv(_8d, _9d, _tp);
_kv(_lv, _5b)
}
function _0s(angle) {
var _5b = new _Zt();
_5b._ov(angle);
_kv(_lv, _5b)
}
function _1s(angle) {
var _5b = new _Zt();
_5b._pv(angle);
_kv(_lv, _5b)
}
function _2s(angle) {
var _5b = new _Zt();
_5b._qv(angle);
_kv(_lv, _5b)
}
function _3s(_yp, _zp, _Ap, angle) {
var _5b = new _Zt();
_5b._rv(new _iu(_yp, _zp, _Ap), -angle);
_kv(_lv, _5b)
}
function _4s(_pp, _qp, _rp) {
var _sv = new _Zt();
_sv._mv(_pp, _qp, _rp);
var _tv = _uv(_lv);
var _5b = new _Zt();
_5b.Multiply(_tv, _sv);
_kv(_lv, _5b)
}
function _5s(_8d, _9d, _tp) {
var _vv = new _Zt();
_vv._nv(_8d, _9d, _tp);
var _tv = _uv(_lv);
var _5b = new _Zt();
_5b.Multiply(_tv, _vv);
_kv(_lv, _5b)
}
function _6s(angle) {
var _wv = new _Zt();
_wv._ov(angle);
var _tv = _uv(_lv);
var _5b = new _Zt();
_5b.Multiply(_tv, _wv);
_kv(_lv, _5b)
}
function _7s(angle) {
var _wv = new _Zt();
_wv._pv(angle);
var _tv = _uv(_lv);
var _5b = new _Zt();
_5b.Multiply(_tv, _wv);
_kv(_lv, _5b)
}
function _8s(angle) {
var _wv = new _Zt();
_wv._qv(angle);
var _tv = _uv(_lv);
var _5b = new _Zt();
_5b.Multiply(_tv, _wv);
_kv(_lv, _5b)
}
function _9s(_yp, _zp, _Ap, angle) {
var _wv = new _Zt();
_wv._rv(new _iu(_yp, _zp, _Ap), -angle);
var _tv = _uv(_lv);
var _5b = new _Zt();
_5b.Multiply(_tv, _wv);
_kv(_lv, _5b)
}
function _as(_ba, _ca, _gh) {
var _tv = _uv(_lv);
var _ob = (_tv._5b[_xv] * _ba) + (_tv._5b[_yv] * _ca) + (_tv._5b[_zv] * _gh) + _tv._5b[_Av];
var _qb = (_tv._5b[_Bv] * _ba) + (_tv._5b[_qu] * _ca) + (_tv._5b[_Cv] * _gh) + _tv._5b[_Dv];
var _Ev = (_tv._5b[_Fv] * _ba) + (_tv._5b[_Gv] * _ca) + (_tv._5b[_Hv] * _gh) + _tv._5b[_Iv];
var _79 = [];
_79[0] = _ob;
_79[1] = _qb;
_79[2] = _Ev;
return _79
}
function _bs() {
_Jv()
}
function _cs() {
return _Kv()
}
function _ds() {
var _tv = _uv(_lv);
return _Lv(_tv)
}
function _es() {
return _Mv()
}
function _fs() {
return _Nv()
}
function _gs() {
return _Ov()
}
function _Us(_Dh) {
_Dh = yyGetInt32(_Dh);
var _5b = [];
if (_Dh < 0 || _Dh > 2) {
_hl('ERROR: Invalid matrix type (matrix_get)');
for (var _i2 = 0; _i2 < 16; _i2++) {
_5b[_i2] = 0
}
return _5b
}
var _Pv = _Qv[_Dh];
for (var _i2 = 0; _i2 < 16; _i2++) {
_5b[_i2] = _Pv._5b[_i2];
}
return _5b
}
function _Vs(_Dh, _Kp) {
_Dh = yyGetInt32(_Dh);
if (_Dh < 0 || _Dh > 2) {
_hl('ERROR: Invalid matrix type (matrix_get)');
return
}
_kv(_Dh, _Kp)
}
function _3q() {
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, ]
}
function _5q(_8p, _9p, _ap, _bp, _cp, _dp, _ep, _fp, _gp) {
var _5b = new _Zt();
var _Rv = new _iu(yyGetReal(_8p), yyGetReal(_9p), yyGetReal(_ap));
var _Sv = new _iu(yyGetReal(_bp), yyGetReal(_cp), yyGetReal(_dp));
var _Tv = new _iu(yyGetReal(_ep), yyGetReal(_fp), yyGetReal(_gp));
_5b._lu(_Rv, _Sv, _Tv);
var _Pv = [];
for (var _i2 = 0; _i2 < 16; _i2++) {
_Pv[_i2] = _5b._5b[_i2];
}
return _Pv
}
function _7q(width, height, _nu, _ou) {
var _5b = new _Zt();
_5b._uu(yyGetReal(width), yyGetReal(height), yyGetReal(_nu), yyGetReal(_ou));
var _Pv = [];
for (var _i2 = 0; _i2 < 16; _i2++) {
_Pv[_i2] = _5b._5b[_i2]
}
return _Pv
}
function _9q(width, height, _nu, _ou) {
var _5b = new _Zt();
_5b._vu(yyGetReal(width), yyGetReal(height), yyGetReal(_nu), yyGetReal(_ou));
var _Pv = [];
for (var _i2 = 0; _i2 < 16; _i2++) {
_Pv[_i2] = _5b._5b[_i2]
}
return _Pv
}
function _bq(_Uv, _ip, _nu, _ou) {
var _5b = new _Zt();
_5b._pu(yyGetReal(_Uv),
yyGetReal(_ip), yyGetReal(_nu), yyGetReal(_ou));
var _Pv = [];
for (var _i2 = 0; _i2 < 16; _i2++) {
_Pv[_i2] = _5b._5b[_i2]
}
return _Pv
}
function _Mp(_ba, _ca, _gh, _Vv, _Wv, _Xv, _Yv, _Zv, __v) {
var _5b = new _Zt();
var _0w = (Math.PI / 180.0);
_Vv = (_0w * -yyGetReal(_Vv));
_Wv = (_0w * -yyGetReal(_Wv));
_Xv = (_0w * -yyGetReal(_Xv));
_5b._1w(yyGetReal(_ba), yyGetReal(_ca), yyGetReal(_gh), _Vv, _Wv, _Xv, yyGetReal(_Yv), yyGetReal(_Zv), yyGetReal(__v));
var _Pv = [];
for (var _i2 = 0; _i2 < 16; _i2++) {
_Pv[_i2] = _5b._5b[_i2]
}
return _Pv
}
function _Op(_2w, _3w) {
var _4w = new _Zt();
var _5w = new _Zt();
var _6w = new _Zt();
for (var _i2 = 0; _i2 < 16; _i2++) {
_4w._5b[_i2] = yyGetReal(_2w[_i2]);
_5w._5b[_i2] = yyGetReal(_3w[_i2])
}
_6w.Multiply(_4w, _5w);
var _Pv = [];
for (var _i2 = 0; _i2 < 16; _i2++) {
_Pv[_i2] = _6w._5b[_i2]
}
return _Pv
}
function _Qp(_7w, _ba, _ca, _gh) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
_gh = yyGetReal(_gh);
var _ob = (_7w[_xv] * _ba) + (_7w[_yv] * _ca) + (_7w[_zv] * _gh) + _7w[_Av];
var _qb = (_7w[_Bv] * _ba) + (_7w[_qu] * _ca) + (_7w[_Cv] * _gh) + _7w[_Dv];
var _Ev = (_7w[_Fv] * _ba) + (_7w[_Gv] * _ca) + (_7w[_Hv] * _gh) + _7w[_Iv];
var _Cf = [_ob, _qb, _Ev];
return _Cf
}
function _Sp(_Kp) {
if (_Ir >= _Hr) {
return
}
_Ir++;
if (arguments.length == 0) {
_Jr[_Ir] = new _Zt(_Jr[_Ir - 1]);
} else {
var _Pv = new _Zt();
var _i2;
for (_i2 = 0; _i2 < 16; _i2++) {
_Pv._5b[_i2] = _Kp[_i2]
}
_Jr[_Ir] = new _Zt();
_Jr[_Ir].Multiply(_Pv, _Jr[_Ir - 1])
}
}
function _Up() {
_Ir--;
if (_Ir < 0) {
_Yp()
}
}
function _Yp() {
_Ir = 0;
_Jr[0] = new _Zt()
}
function _Wp(_Kp) {
_Jr[_Ir] = new _Zt(_Kp)
}
function __p() {
var _8w = new Array(16);
var _i2;
for (_i2 = 0; _i2 < 16; _i2++) {
_8w[_i2] = _Jr[_Ir]._5b[_i2]
}
return _8w
}
function _1q() {
if (_Ir == 0) return true;
else return false
}
function _Xs(_cu) {
_xc._pe._Je(_de._9w, yyGetInt32(_cu) >= 0.5)
}
function _Ys(_cu) {
_xc._pe._Je(_de._aw, yyGetInt32(_cu) >= 0.5)
}
function _Zs(_bw) {
_xc._pe._Je(_de._cw, yyGetInt32(_bw))
}
function __s(_cu) {
_xc._pe._Je(_de._dw, yyGetInt32(_cu) >= 0.5)
}
function _0t(_cu, _ih, _ew, _fw) {
if (Array.isArray(_cu)) {
var _gw = _cu;
_xc._pe._Je(_de._hw, yyGetInt32(_gw[0]) >= 0.5);
_xc._pe._Je(_de._iw, yyGetInt32(_gw[1]));
_xc._pe._Je(_de._jw, yyGetReal(_gw[2]));
_xc._pe._Je(_de._kw, yyGetReal(_gw[3]))
} else {
_xc._pe._Je(_de._hw, yyGetInt32(_cu) >= 0.5);
_xc._pe._Je(_de._iw,
yyGetInt32(_ih));
_xc._pe._Je(_de._jw, yyGetReal(_ew));
_xc._pe._Je(_de._kw, yyGetReal(_fw))
}
}
function _1t(_lw) {
_xc._pe._Je(_de._mw, yyGetInt32(_lw))
}
function _Ws(_nw) {
switch (yyGetInt32(_nw)) {
case 1:
_xc._pe._Je(_de._re, _de._ee);
_xc._pe._Je(_de._se, _de._he);
_xc._pe._Je(_de._te, _de._ee);
_xc._pe._Je(_de._ue, _de._he);
_xc._pe._Je(_de._ve, false);
break;
case 2:
_xc._pe._Je(_de._re, _de._ee);
_xc._pe._Je(_de._se, _de._je);
_xc._pe._Je(_de._te, _de._ee);
_xc._pe._Je(_de._ue, _de._je);
_xc._pe._Je(_de._ve, false);
break;
case 3:
_xc._pe._Je(_de._re,
_de._ow);
_xc._pe._Je(_de._se, _de._je);
_xc._pe._Je(_de._te, _de._ow);
_xc._pe._Je(_de._ue, _de._je);
_xc._pe._Je(_de._ve, false);
break;
default:
_xc._pe._Je(_de._re, _de._ee);
_xc._pe._Je(_de._se, _de._ge);
_xc._pe._Je(_de._te, _de._ee);
_xc._pe._Je(_de._ue, _de._ge);
_xc._pe._Je(_de._ve, false);
break
}
}
function _2t(_bl, _pw) {
var _qw, _rw;
if (Array.isArray(_bl)) {
_qw = yyGetInt32(_bl[0]);
_rw = yyGetInt32(_bl[1])
} else {
_qw = yyGetInt32(_bl);
_rw = yyGetInt32(_pw)
}
_xc._pe._Je(_de._re, _qw);
_xc._pe._Je(_de._se, _rw);
_xc._pe._Je(_de._te,
_qw);
_xc._pe._Je(_de._ue, _rw);
_xc._pe._Je(_de._ve, false)
}
function _3t(_bl, _pw, _sw, _tw) {
var _qw, _rw, _uw, _vw;
if (Array.isArray(_bl)) {
_qw = yyGetInt32(_bl[0]);
_rw = yyGetInt32(_bl[1]);
_uw = yyGetInt32(_bl[2]);
_vw = yyGetInt32(_bl[3])
} else {
_qw = yyGetInt32(_bl);
_rw = yyGetInt32(_pw);
_uw = yyGetInt32(_sw);
_vw = yyGetInt32(_tw)
}
_xc._pe._Je(_de._re, _qw);
_xc._pe._Je(_de._se, _rw);
_xc._pe._Je(_de._te, _uw);
_xc._pe._Je(_de._ue, _vw);
_xc._pe._Je(_de._ve, true)
}
function _4t(_ww, _xw, _yw, _Bd) {
var _zw;
var _Aw;
var _Bw;
var _Cw;
if (Array.isArray(_ww)) {
var _gw = _ww;
_zw = (yyGetInt32(_gw[0]) >= 0.5);
_Aw = (yyGetInt32(_gw[1]) >= 0.5);
_Bw = (yyGetInt32(_gw[2]) >= 0.5);
_Cw = (yyGetInt32(_gw[3]) >= 0.5)
} else {
_zw = (yyGetInt32(_ww) >= 0.5);
_Aw = (yyGetInt32(_xw) >= 0.5);
_Bw = (yyGetInt32(_yw) >= 0.5);
_Cw = (yyGetInt32(_Bd) >= 0.5)
}
var _Dw = {
_eo: _zw,
_fo: _Aw,
_go: _Bw,
alpha: _Cw
};
_xc._pe._Je(_de._Ew, _Dw)
}
function _5t(_ww, _xw, _yw, _Bd) {
_4t(_ww, _xw, _yw, _Bd)
}
function _6t(_cu) {
_xc._pe._Je(_de._Fw, yyGetInt32(_cu) >= 0.5)
}
function _7t(_Gw) {
_xc._pe._Je(_de._Hw, yyGetInt32(_Gw))
}
function _8t(_Iw) {
var _Jw = _xc._Kw;
var _i2;
if (yyGetBool(_Iw)) {
for (_i2 = 0; _i2 < _Jw; _i2++) {
_xc._pe._Lw(_i2, _de._Mw, _de._Nw);
_xc._pe._Lw(_i2, _de._Ow, _de._Nw)
}
} else {
for (_i2 = 0; _i2 < _Jw; _i2++) {
_xc._pe._Lw(_i2, _de._Mw, _de._Pw);
_xc._pe._Lw(_i2, _de._Ow, _de._Pw)
}
}
}
function _9t(_Qw, _Iw) {
var _Dq, _Bq;
if (Array.isArray(_Qw)) {
var _gw = _Qw;
_Dq = yyGetInt32(_gw[0]);
_Bq = yyGetBool(_gw[1])
} else {
_Dq = yyGetInt32(_Qw);
_Bq = yyGetBool(_Iw)
}
if (_Bq) {
_xc._pe._Lw(_Dq, _de._Mw, _de._Nw);
_xc._pe._Lw(_Dq, _de._Ow, _de._Nw)
} else {
_xc._pe._Lw(_Dq, _de._Mw, _de._Pw);
_xc._pe._Lw(_Dq, _de._Ow,
_de._Pw)
}
}
function _at(_Rw) {
var _Jw = _xc._Kw;
var _i2;
if (yyGetBool(_Rw)) {
for (_i2 = 0; _i2 < _Jw; _i2++) {
_xc._pe._Lw(_i2, _de._Sw, _de._Tw);
_xc._pe._Lw(_i2, _de._Uw, _de._Tw)
}
} else {
for (_i2 = 0; _i2 < _Jw; _i2++) {
_xc._pe._Lw(_i2, _de._Sw, _de._Vw);
_xc._pe._Lw(_i2, _de._Uw, _de._Vw)
}
}
}
function _bt(_Qw, _Rw) {
var _Dq, repeat;
if (Array.isArray(_Qw)) {
var _gw = _Qw;
_Dq = yyGetInt32(_gw[0]);
repeat = yyGetBool(_gw[1])
} else {
_Dq = yyGetInt32(_Qw);
repeat = yyGetBool(_Rw)
}
if (repeat) {
_xc._pe._Lw(_Dq, _de._Sw, _de._Tw);
_xc._pe._Lw(_Dq, _de._Uw, _de._Tw)
} else {
_xc._pe._Lw(_Dq, _de._Sw, _de._Vw);
_xc._pe._Lw(_Dq, _de._Uw, _de._Vw)
}
}
function _ct(_Ww) {
var _Lq = _Ww;
for (var _i2 = 0; _i2 < _xc._Kw; _i2++) {
_xc._pe._Lw(_i2, _de._Xw, _Lq)
}
}
function _dt(_Yw, _Ww) {
var _Zw = _Yw;
var _Lq = _Ww;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
_xc._pe._Lw(_Zw, _de._Xw, _Lq)
}
function _et(__w) {
var _Oq = __w;
for (var _i2 = 0; _i2 < _xc._Kw; _i2++) {
_xc._pe._Lw(_i2, _de._0x, _Oq)
}
}
function _ft(_Yw, __w) {
var _Zw = _Yw;
var _Oq = __w;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
_xc._pe._Lw(_Zw, _de._0x, _Oq)
}
function _gt(_1x) {
var _Rq = _1x;
for (var _i2 = 0; _i2 < _xc._Kw; _i2++) {
_xc._pe._Lw(_i2, _de._2x, _Rq)
}
}
function _ht(_Yw, _1x) {
var _Zw = _Yw;
var _Rq = _1x;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
_xc._pe._Lw(_Zw, _de._2x, _Rq)
}
function _it(_3x) {
var _Uq = _3x;
for (var _i2 = 0; _i2 < _xc._Kw; _i2++) {
_xc._pe._Lw(_i2, _de._4x, _Uq)
}
}
function _jt(_Yw, _3x) {
var _Zw = _Yw;
var _Uq = _3x;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
_xc._pe._Lw(_Zw, _de._4x, _Uq)
}
function _kt(_5x) {
var _Xq = _5x;
for (var _i2 = 0; _i2 < _xc._Kw; _i2++) {
_xc._pe._Lw(_i2, _de._6x, _Xq)
}
}
function _lt(_Yw, _5x) {
var _Zw = _Yw;
var _Xq = _5x;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
_xc._pe._Lw(_Zw, _de._6x, _Xq)
}
function _mt(_cu) {
var enable = _cu;
for (var _i2 = 0; _i2 < _xc._Kw; _i2++) {
_xc._pe._Lw(_i2, _de._7x, enable)
}
}
function _nt(_Yw, _cu) {
var _Zw = _Yw;
var enable = _cu;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
_xc._pe._Lw(_Zw, _de._7x, enable)
}
function _ot() {
return _xc._pe._qe(_de._9w) ? 1.0 : 0.0
}
function _pt() {
return _xc._pe._qe(_de._aw) ? 1.0 : 0.0
}
function _qt() {
return _xc._pe._qe(_de._cw)
}
function _rt() {
return _xc._pe._qe(_de._dw) ? 1.0 : 0.0
}
function _st() {
var _gw = new Array();
_gw.push(_xc._pe._qe(_de._hw) ? 1.0 : 0.0);
_gw.push(_xc._pe._qe(_de._iw));
_gw.push(_xc._pe._qe(_de._jw));
_gw.push(_xc._pe._qe(_de._kw));
return _gw
}
function _tt() {
return _xc._pe._qe(_de._mw)
}
function _ut() {
var _qw = _xc._pe._qe(_de._re);
var _rw = _xc._pe._qe(_de._se);
var _uw = _xc._pe._qe(_de._te);
var _vw = _xc._pe._qe(_de._ue);
if ((_qw != _uw) || (_rw != _vw)) {
return -1
} else {
switch (_qw) {
case _8x: {
switch (_rw) {
case _9x:
return 0;
case _ax:
return 1;
case _bx:
return 2;
default:
return -1
}
}
case _cx: {
if (_rw == _bx) {
return 3
} else {
return -1
}
}
default:
return -1
}
}
}
function _vt() {
var _gw = new Array();
_gw[0] = _xc._pe._qe(_de._re);
_gw[1] = _xc._pe._qe(_de._se);
return _gw
}
function _wt() {
var _gw = new Array();
_gw[0] = _xc._pe._qe(_de._re);
_gw[1] = _xc._pe._qe(_de._se);
_gw[2] = _xc._pe._qe(_de._te);
_gw[3] = _xc._pe._qe(_de._ue);
return _gw
}
function _xt() {
return _xc._pe._qe(_de._re)
}
function _yt() {
return _xc._pe._qe(_de._se)
}
function _zt() {
return _xc._pe._qe(_de._te)
}
function _At() {
return _xc._pe._qe(_de._ue)
}
function _Bt() {
var _Ji = _xc._pe._qe(_de._Ew);
var _i9 = new Array();
_i9.push(_Ji._eo ? 1.0 : 0.0);
_i9.push(_Ji._fo ? 1.0 : 0.0);
_i9.push(_Ji._go ? 1.0 : 0.0);
_i9.push(_Ji.alpha ? 1.0 : 0.0);
return _i9
}
function _Ct() {
return _Bt()
}
function _Dt() {
return _xc._pe._qe(_de._Fw) ? 1.0 : 0.0;
}
function _Et() {
return _xc._pe._qe(_de._Hw)
}
function _Ft() {
return _xc._pe._dx(0, _de._Mw) == _de._Nw ? 1.0 : 0.0
}
function _Gt(_Qw) {
return _xc._pe._dx(yyGetInt32(_Qw), _de._Mw) == _de._Nw ? 1.0 : 0.0
}
function _Ht() {
return _xc._pe._dx(0, _de._Sw) == _de._Tw ? 1.0 : 0.0
}
function _It(_Qw) {
return _xc._pe._dx(yyGetInt32(_Qw), _de._Sw) == _de._Tw ? 1.0 : 0.0
}
function _Jt() {
return _xc._pe._dx(0, _de._Xw)
}
function _Kt(_Yw) {
var _Zw = _Yw;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
return _xc._pe._dx(_Zw, _de._Xw)
}
function _Lt() {
return _xc._pe._dx(0, _de._0x);
}
function _Mt(_Yw) {
var _Zw = _Yw;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
return _xc._pe._dx(_Zw, _de._0x)
}
function _Nt() {
return _xc._pe._dx(0, _de._2x)
}
function _Ot(_Yw) {
var _Zw = _Yw;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
return _xc._pe._dx(_Zw, _de._2x)
}
function _Pt() {
return _xc._pe._dx(0, _de._4x)
}
function _Qt(_Yw) {
var _Zw = _Yw;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
return _xc._pe._dx(_Zw, _de._4x)
}
function _Rt() {
return _xc._pe._dx(0,
_de._6x)
}
function _St(_Yw) {
var _Zw = _Yw;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
return _xc._pe._dx(_Zw, _de._6x)
}
function _Tt() {
return _xc._pe._dx(0, _de._7x)
}
function _Ut(_Yw) {
var _Zw = _Yw;
if ((_Zw < 0) || (_Zw >= _xc._Kw)) {
return
}
return _xc._pe._dx(_Zw, _de._7x)
}
function _Vt() {
_xc._pe._ex()
}
function _Wt() {
_xc._pe._fx()
}
var _gx = undefined;
var _hx = undefined;
function _ix() {
if (_gx == undefined) {
_gx = ["blendenable", _de._9w, "ztestenable", _de._aw, "zfunc", _de._cw, "zwriteenable", _de._dw, "fogenable", _de._hw, "fogcolor", _de._iw, "fogstart",
_de._jw, "fogend", _de._kw, "cullmode", _de._mw, "srcblend", _de._re, "destblend", _de._se, "srcblendalpha", _de._te, "destblendalpha", _de._ue, "sepalphaenable", _de._ve, "colorwriteenable", _de._Ew, "alphatestenable", _de._Fw, "alphatestref", _de._Hw, "alphatestfunc", _de._jx
]
}
}
function _kx() {
if (_hx == undefined) {
_hx = ["magfilter", _de._Mw, "minfilter", _de._Ow, "mipfilter", _de._lx, "addressu", _de._Sw, "addressv", _de._Uw, "minmip", _de._2x, "maxmip", _de._4x, "mipbias", _de._0x, "maxaniso", _de._6x, "mipenable", _de._7x]
}
}
function _Xt() {
_ix();
_kx();
var map = _58();
var _mx = _gx.length / 2;
var _nx = _hx.length / 2;
var _i2;
for (_i2 = 0; _i2 < _mx; _i2++) {
var _Ji = _xc._pe._qe(_gx[_i2 * 2 + 1]);
_78(map, _gx[_i2 * 2], _Ji)
}
var _Jw = _xc._Kw;
for (_i2 = 0; _i2 < _nx; _i2++) {
var _nb;
for (_nb = 0; _nb < _Jw; _nb++) {
var name = _hx[_i2 * 2].slice(0) + _nb;
var _Ji = _xc._pe._dx(_nb, _hx[_i2 * 2 + 1]);
_78(map, name, _Ji)
}
}
return map
}
function _Yt(_Mb) {
_Mb = yyGetInt32(_Mb);
_ix();
_kx();
var _i2;
var _mx = _gx.length / 2;
var _nx = _hx.length / 2;
var _ox = _5m(_Mb);
while (_ox != undefined) {
var key = _ox;
var value = _0m(_Mb, key);
var _Bn = false;
for (_i2 = 0; _i2 < _mx; _i2++) {
if (key == _gx[_i2 * 2]) {
_xc._pe._Je(_gx[_i2 * 2 + 1], value);
_Bn = true;
break
}
}
if (!_Bn) {
for (_i2 = 0; _i2 < _nx; _i2++) {
var _px = _hx[_i2 * 2].length;
var _qx = key.substr(0, _px);
if (_qx == _hx[_i2 * 2]) {
var _rx = key.substr(_px - 1, key.length - _px);
var _2o = parseInt(_rx, 10);
_xc._pe._Lw(_2o, _hx[_i2 * 2 + 1], value);
break
}
}
}
_ox = _2m(_Mb, _ox)
}
}
var _sx = 1970;
var _tx = 0;
var _ux = 1;
var _vx = 365.25;
var _wx = 30.4375;
var _xx = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
var _yx = [];
var _zx = (86400.0);
var _Ax = (_zx * 30);
var _Bx = !0;
var _Cx = 0;
var _Dx = 1;
function _Ex(_Fx) {
if (_Fx < _Gx) {
return _Fx * _Hx
} else {
return (_Fx - _Gx) * _Hx;
}
}
function _Ix(_Jx) {
return _Jx % 400 == 0 || (_Jx % 100 != 0 && _Jx % 4 == 0)
}
function _Kx(_Jx) {
var _Lx = _xx.slice();;
if (_Ix(_Jx)) {
_Lx[1] = 29
}
return _Lx
}
var _Hx = 86400000.0;
var _Gx = 25569;
function _Mx(_Nx) {
return ((_Nx < 10) ? "0" : "") + _Nx.toString()
}
var _Ox = [];
var _Px = [];
var _Qx = [];
var _Rx = Date.now();
var _Sx = 0;
var _Tx = 1;
var _Ux = 2;
var _Vx = 3;
var _Wx = function (text) {
if (!text) return;
if (_Xx) {
if (_Yx) {
var _Hh = _Yx.document.getElementById('debug_console');
if (_Hh) {
var _Zx = String.fromCharCode(0x0a);
text = text.replace('',
'').replace('', '');
var __x = Date.now() - _Rx;
if (!_Hh) {
alert(text)
} else {
_Hh.value += text + _Zx;
var _0y = _Hh.textLength
}
_Rx = Date.now()
}
}
}
if (_1y != undefined) {
if (_1y._W3._g4) console.log(text);
if (_1y._W3._2y) {
var _3y = document.getElementById("yyDebugDiv");
var _4y = document.createElement('P');
_4y.textContent += text;
_3y.appendChild(_4y)
}
}
};
function debug(text) {
var index;
for (index = 0; index < arguments.length; ++index) {
_Wx(arguments[index])
}
}
function _5y(_6y, _7y, _8y, _9y, _ay) {
this._by = _6y;
this._cy = _7y;
this._dy = _ay;
this._ey = _8y;
this._fy = _9y;
this._gy = true
}
_5y.prototype.toString = function () {
return yyGetString(this)
};;
function _hl(text) {
var index;
var _hy = _iy();
var _jy = new _5y(text, text, _ky(_hl.caller.name), -1, _hy);
throw _jy
}
function _ly(_my) {
if (!_Qx[_my]) {
_Qx[_my] = true;
_ny(_my);
debug(_my)
}
}
function _Of(_my) {
if (!_Ox[_my]) {
_Ox[_my] = true;
var _oy = "Error: function " + _my;
debug(_oy)
}
}
function _py(_my) {
if (!_Ox[_my]) {
_Ox[_my] = true;
var _oy = "Error: function " + _my + " is not yet implemented";
debug(_oy)
}
}
function _qy(_my) {
if (!_Px[_my]) {
_Px[_my] = true;
var _oy = "Warning: function " + _my;
debug(_oy)
}
}
function _ry(_sy) {
var _ty = _uy._vy(_sy, -1);
var _Zx = String.fromCharCode(0x0a);
var _wy = "";
for (var _i2 = 0; _i2 < _ty.length; _i2++) {
if (_i2 != 0) _wy = _wy + _Zx;
_wy += _ty[_i2]
}
return _wy
}
function _xy(_sy) {
var _yy = yyGetString(_sy);
if (!_yy) return;
debug(_yy)
}
function _zy(_sy) {
var _yy = yyGetString(_sy);
if (!_yy) return;
alert(_ry(_yy))
}
function _Ay(_By) {
var _j8 = document.getElementById(_Cy);
var _Dy = _j8.parentNode;
var _Ey = document.createElement("div");
_Fy = "gm4html5_login_ID";
_Ey.setAttribute("class",
"gm4html5_login");
_Ey.setAttribute("id", _Fy);
_Dy.insertBefore(_Ey, _j8.nextSibling);
_Ey.innerHTML = "
" + "" + "" + "";
_Gy();
_Hy = true;
var login = document.getElementById("gm4html5_login_button_id");
var _Iy = document.getElementById("gm4html5_login_username_id");
var _Jy = document.getElementById("gm4html5_login_password_id");
_Iy.value = _By._Ky[0];
_Jy.value = _By._Ky[1];
login.onmouseup = function () {
var _Ly = _Iy.value;
var _My = _Jy.value;
var _Ny = _Oy(_Fy);
if (!_Ny) return;
_Ny._Ly = _Ly;
_Ny._My = _My;
_Ny.value = 0;
_Ny.result = "";
_Ny.__j = true;
_Ny._Zj = _Py;
_Dy.removeChild(_Ey);
_Hy = false;
_Qy();
_Ry(_By.id)
};
var _Sy = document.getElementById("gm4html5_cancel_button_id");
_Sy.onmouseup = function () {
_Dy.removeChild(_Ey);
_Hy = false;
var _Ny = _Oy(_Fy);
if (!_Ny) return;
_Ny._Ly = "";
_Ny._My = "";
_Ny.value = 0;
_Ny.result = "";
_Ny.__j = true;
_Ny._Zj = _Ty;
_Qy();
_Ry(_By.id)
};
_Uy();
_Uj._Vj(_By.id, null, _Vy, _Fy)
}
function _Wy(_By) {
var _j8 = document.getElementById(_Cy);
var _Dy = _j8.parentNode;
var _Ey = document.createElement("div");
_Fy = "gm4html5_input_ID";
_Ey.setAttribute("class", "gm4html5_login");
_Ey.setAttribute("id", _Fy);
_Dy.insertBefore(_Ey, _j8.nextSibling);
_Ey.innerHTML = "" + "" + "";
_Gy();
_Hy = true;
var _Xy = document.getElementById("gm4html5_input_message_id");
var _Yy = document.getElementById("gm4html5_input_text_id");
_Xy.innerHTML = _By._Ky[0];
_Yy.value = _By._Ky[1];
var _Zy = document.getElementById("gm4html5_input_ok_button_id");
_Zy.onmouseup = function () {
var text = _Yy.value;
var _Ny = _Oy(_Fy);
if (!_Ny) return;
_Ny._Ly = "";
_Ny._My = "";
_Ny.value = parseFloat(text);
_Ny.result = text;
_Ny.__j = true;
_Ny._Zj = _Py;
_Dy.removeChild(_Ey);
_Hy = false;
_Qy();
_Ry(_By.id)
};
var _Sy = document.getElementById("gm4html5_input_cancel_button_id");
_Sy.onmouseup = function () {
_Dy.removeChild(_Ey);
_Hy = false;
var _Ny = _Oy(_Fy);
if (!_Ny) return;
_Ny._Ly = "";
_Ny._My = "";
_Ny.value = 0;
_Ny.result = "";
_Ny.__j = true;
_Ny._Zj = _Ty;
_Qy();
_Ry(_By.id)
};
_Uy();
_Uj._Vj(_By.id, null, _Vy, _Fy)
}
function __y(_By) {
var _j8 = document.getElementById(_Cy);
var _Dy = _j8.parentNode;
var _Ey = document.createElement("div");
_Fy = "gm4html5_question_ID";
_Ey.setAttribute("class", "gm4html5_login");
_Ey.setAttribute("id", _Fy);
_Dy.insertBefore(_Ey, _j8.nextSibling);
_Ey.innerHTML = "" + "" + " | " + "
" + "
" + "" + "";
_Gy();
_Hy = true;
var _0z = document.getElementById("gm4html5_question_message_id");
_0z.innerHTML = _By._Ky[0];
var _Zy = document.getElementById("gm4html5_question_yes_button_id");
_Zy.onmouseup = function () {
var _Ny = _Oy(_Fy);
if (!_Ny) return;
_Ny._Ly = "";
_Ny._My = "";
_Ny.value = 1;
_Ny.result = "1";
_Ny.__j = true;
_Ny._Zj = _Py;
_Dy.removeChild(_Ey);
_Hy = false;
_Qy();
_Ry(_By.id)
};
var _Sy = document.getElementById("gm4html5_question_no_button_id");
_Sy.onmouseup = function () {
_Dy.removeChild(_Ey);
_Hy = false;
var _Ny = _Oy(_Fy);
if (!_Ny) return;
_Ny._Ly = "";
_Ny._My = "";
_Ny.value = 0;
_Ny.result = "0";
_Ny.__j = true;
_Ny._Zj = _Ty;
_Qy();
_Ry(_By.id)
};
_Uy();
_Uj._Vj(_By.id, null, _Vy, _Fy)
}
function _1z(_By) {
var _j8 = document.getElementById(_Cy);
var _Dy = _j8.parentNode;
var _Ey = document.createElement("div");
_Fy = "gm4html5_message_ID";
_Ey.setAttribute("class", "gm4html5_login");
_Ey.setAttribute("id", _Fy);
_Dy.insertBefore(_Ey, _j8.nextSibling);
_Ey.innerHTML = "" + "" + " | " + "
" + "
" + "";
_Gy();
_Hy = true;
var _0z = document.getElementById("gm4html5_message_message_id");
_0z.innerHTML = _By._Ky[0];
var _Zy = document.getElementById("gm4html5_message_ok_button_id");
_Zy.onmouseup = function () {
var _Ny = _Oy(_Fy);
if (!_Ny) return;
_Ny._Ly = "";
_Ny._My = "";
_Ny.value = 1;
_Ny.result = "1";
_Ny.__j = true;
_Ny._Zj = 1;
_Dy.removeChild(_Ey);
_Hy = false;
_Qy();
_Ry(_By.id)
};
_Uy();
_Uj._Vj(_By.id, null, _Vy, _Fy)
} /*@constructor */
function _2z() {
if (_3z.length > 0) {
switch (_3z[0].type) {
case _Sx:
_Ay(_3z[0]);
break;
case _Tx:
_Wy(_3z[0]);
break;
case _Ux:
__y(_3z[0]);
break;
case _Vx:
_1z(_3z[0]);
break
}
}
}
function _Ry(_el) {
var index = -1;
for (var _i2 = 0; _i2 < _3z.length; ++_i2) {
if (_3z[_i2].id == _el) {
index = _i2;
break
}
}
if (index >= 0) {
_3z.splice(index, 1)
}
_2z()
}
function _Uy() {
if (_Hy) {
var login = document.getElementById(_Fy);
var _k2 = login.offsetWidth;
var _l2 = login.offsetHeight;
var _ob = (canvas.width - _k2) / 2;
var _qb = (canvas.height - _l2) / 2;
_rk = new _4z();
_qk(canvas, _rk);
login.style.left = ~~(_ob + _rk.left) + "px";
login.style.top = ~~(_qb + _rk.top) + "px"
}
}
function _ky(_5z) {
return _5z.substr(0, _5z.indexOf("("))
}
function _ny(_6z) {
var _7z = arguments.callee.caller;
var _8z = "Error: " + _6z + "\n" + "--------------------------------------------------------------------\n";
while (_7z) {
var name = "\t" + _ky(_7z.toString());
_8z += name + '(';
for (var _i2 = 0; _i2 < _7z.arguments.length; _i2++) {
if (_i2 != 0) {
_8z += ', '
}
if (typeof _7z.arguments[_i2] == "string") {
_8z += '"' + _7z.arguments[_i2].toString() + '"'
} else if ((typeof _7z.arguments[_i2] == "number") || (_7z.arguments[_i2] instanceof Long)) {
_8z += _7z.arguments[_i2].toString()
} else {
if (_7z.arguments[_i2] == undefined) {
_8z += "[undefined]"
} else if (_7z.arguments[_i2] == null) {
_8z += "[null]"
} else if (_7z.arguments[_i2].__type) {
_8z += _7z.arguments[_i2].__type
} else {
_8z += "[unknown]"
}
}
}
_8z += ")\n";
_7z = _7z.caller
}
debug(_8z)
}
function _iy(_6z) {
var _7z = arguments.callee.caller;
var _i9 = [];
while (_7z && (_i9.length < 100)) {
var name = _ky(_7z.toString());
_8z = name + '(';
for (var _i2 = 0; _i2 < _7z.arguments.length; _i2++) {
if (_i2 != 0) {
_8z += ', '
}
if (typeof _7z.arguments[_i2] == "string") {
_8z += '"' + _7z.arguments[_i2].toString() + '"'
} else if ((typeof _7z.arguments[_i2] == "number") || (_7z.arguments[_i2] instanceof Long)) {
_8z += _7z.arguments[_i2].toString()
} else {
if (_7z.arguments[_i2] == undefined) {
_8z += "[undefined]"
} else if (_7z.arguments[_i2] == null) {
_8z += "[null]"
} else if (_7z.arguments[_i2].__type) {
_8z += _7z.arguments[_i2].__type
} else {
_8z += "[unknown]";
}
}
}
_8z += ")\n";
_i9.push(_8z);
_7z = _7z.caller
}
return _i9
}
function _9z() {
if (!_Yx) return;
var _az = _Yx.document.getElementById('debug_instances');
if (!_az) return;
var _bz = [];
var options = _az.options;
for (var index in options) {
if (!options.hasOwnProperty(index)) continue;
if (index != "selectedIndex" && index != "length") {
var _cz = options[index];
if (_cz && _cz.text) {
_bz[_bz.length] = _cz.text
}
}
}
var _dz = [];
for (var index in _ez._fz) {
if (!_ez._fz.hasOwnProperty(index)) continue;
var _gz = _ez._fz[index];
if (_gz !== undefined && _gz !== null) {
var _wy = _gz.id.toString();
var _i2;
for (_i2 = 0; _i2 < _bz.length; _i2++) {
if (_bz[_i2] == _wy) break
}
if (_i2 >= _bz.length) {
_dz[_dz.length] = _wy
} else {
_bz.splice(_i2, 1)
}
}
}
for (var index in _bz) {
if (!_bz.hasOwnProperty(index)) continue;
for (var _cz in options) {
if (!options.hasOwnProperty(_cz)) continue;
if (options[_cz].text = index) {
_az.removeChild(options[_cz]);
break
}
}
}
for (var index = 0; index < _dz.length; index++) {
var _gz = _dz[index];
var option = _Yx.document.createElement("option");
option.text = "" + _gz;
_az.add(option, null)
}
}
var _hz = 3;
var _iz = -1;
function _jz() {
if (!_Yx) return;
var _az = _Yx.document.getElementById('debug_instances');
var _kz = _Yx.document.getElementById('debug_Instance_Data');
if (!_az || !_kz) return;
var _lz = _az.selectedIndex;
if (_lz < 0) {
return
}
if (_lz == undefined) return;
_lz = parseInt(_az.options[_lz].text);
var _vn = _ez._fz[_lz];
if (!_vn) return;
var _wy = [];
_wy[_wy.length] = '';
_wy[_wy.length] = 'Object | ' + _vn._mz._nz + ' |
';
_wy[_wy.length] = 'x | ' + _vn.x.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'y | ' + _vn.y.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'depth | ' + _vn._r3.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'visible | ' + _vn._r2 + ' |
';
_wy[_wy.length] = 'persistent | ' + _vn._L2 + ' |
';
_wy[_wy.length] = 'vspeed | ' + _vn._t3.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'direction | ' + _vn._35.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'speed | ' + _vn._d3.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'friction | ' + _vn._oz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'gravity | ' + _vn._pz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'gravity_direction | ' + _vn._qz.toFixed(_hz) + ' |
';
var _rz = _sa._ta(_vn._15);
if (!_rz) {
_wy[_wy.length] = 'sprite_index | |
'
} else {
var _sz = _vn._tz;
if (_sz < 0 || _sz > _rz._t9.length) _sz = 0;
var _s9 = _rz._t9[~~_sz];
_wy[_wy.length] = 'sprite_index | ' + _rz._v1 + ' ' + '' + ' |
'
}
_wy[_wy.length] = 'image_index | ' + _vn._tz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'image_speed | ' + _vn._uz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'image_blend | ' + ~~_vn._rm + ' |
';
_wy[_wy.length] = 'image_alpha | ' + _vn._u5.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'image_xscale | ' + _vn._vz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'image_yscale | ' + _vn._wz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'mask_index | ' + _vn._xz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_index | ' + _vn._yz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_position | ' + _vn._zz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_speed | ' + _vn._Az.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_scale | ' + _vn._Bz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_orientation | ' + _vn._Cz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_endaction | ' + _vn._Dz.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_xstart | ' + _vn._Ez.toFixed(_hz) + ' |
';
_wy[_wy.length] = 'path_ystart | ' + _vn._Fz.toFixed(_hz) + ' |
';
for (var _Gz = 0; _Gz < 12; _Gz++) {
_wy[_wy.length] = 'alarm[' + _Gz + '] | ' + ~~_vn._W4[_Gz] + ' |
'
}
_wy[_wy.length] = '
';
_kz.innerHTML = _wy.join("")
}
function _Hz() {
_9z();
_jz()
} /*@constructor */
function _Iz() {
this._Jz = "";
this._Kz = 0;
this._Lz = false;
this._Mz = false;
this._Nz = ""
};
_Iz.prototype._Oz = function () {
var _8z;
var _i2 = this._Kz;
var _wy = this._Jz;
while (_i2 < _wy.length) {
var _j2 = _wy.charCodeAt(_i2);
if (_j2 == 0x0d || _j2 == 0x0a) {
_i2++;
_j2 = _wy.charCodeAt(_i2);
if (_j2 == 0x0d || _j2 == 0x0a) {
_i2++
}
break
} else {
_i2++
}
}
this._Kz = _i2
};;
_Iz.prototype._Pz = function () {
var _8z;
var _i2 = this._Kz;
var _wy = this._Jz;
while (_i2 < _wy.length) {
var _j2 = _wy.charCodeAt(_i2);
if (_j2 == 0x0d || _j2 == 0x0a || _j2 == 0x09 || _j2 == 0x20) {
_i2++
} else {
break
}
}
this._Kz = _i2
};;
function _Qz(_Rz) {
_Rz = yyGetInt32(_Rz);
var _Tj = _Sz._ta(_Rz);
if (!_Tj) {
_hl("Error: Illegal file handle");
return
}
if (_Tj._Nz != null) {
if (_Tj._Mz) {
_Tz(_Tj._Nz, _Tj._Jz)
}
}
_Sz._ul(_Rz)
}
function _Uz(_Vz) {
var _Tj = new _Iz();
_Tj._Nz = yyGetString(_Vz);
_Tj._Jz = "";
_Tj._Kz = 0;
_Tj._Wz = true;
return _Sz._Vj(_Tj)
}
function _Xz(_Rz, _Yz) {
var _Tj = _Sz._ta(yyGetInt32(_Rz));
if (!_Tj) {
_hl("Error: Illegal file handle");
return
}
if (!_Tj._Wz) {
_hl("Error: File " + _Tj._Nz + " has not been opened with WRITE permisions");
return
}
_Tj._Jz += yyGetString(_Yz);
_Tj._Mz = true;
_Tj._Kz = _Tj._Jz.length
}
function _Zz(_Vz) {
_Vz = yyGetString(_Vz);
var __z = _0A(_Vz, true);
if (__z == true) return true;
return _0A(_Vz, false)
}
function _1A(_2A) {
var _i9;
switch (typeof (_2A)) {
case "object":
if (_2A == null) _i9 = null;
else if (_2A instanceof Array) {
_i9 = new _Sl(_Fl, _3A(_2A))
} else {
_i9 = new _Sl(_El, _4A(_2A))
}
break;
case "boolean":
_i9 = _2A ? 1 : 0;
break;
case "number":
case "string":
_i9 = _2A;
break;
default:
_i9 = _2A.toString();
break
}
return _i9
}
function _3A(_Tl) {
var _i9 = _ol();
for (var _i2 = 0; _i2 < _Tl.length; ++_i2) {
var _O9 = _1A(_Tl[_i2]);
_jc(_i9, _O9)
}
return _i9
}
function _4A(_Tl) {
var _i9 = _58();
for (var _cz in _Tl) {
var _a9 = _Tl[_cz];
var _O9 = _1A(_a9);
_78(_i9, _cz, _O9)
}
return _i9
}
function _5A(_6A) {
var _8z = yyGetString(_6A);
var _7A = false;
try {
for (var _8A = 0; _8A < _8z.length; _8A++) {
if (_8z.charAt(_8A) == "\"") {
if (!_7A) {
_7A = true
} else if (_8A == 0 || _8z.charAt(_8A - 1) != "\\") {
_7A = false
}
}
if (!_7A && _8z.charAt(_8A) == "#") {
_8z = _8z.substring(0, _8A) + _8z.substring(_8A + 1, _8z.length);
_8A--
}
}
} catch (Error) {}
var _9A = {};
try {
_9A = JSON.parse(_8z);
if (_9A instanceof Array) {
_8z = "{ \"default\" : " + _8z + "}";
_9A = JSON.parse(_8z)
}
} catch (err) {
_8z = "{ \"default\" : \"" + _8z.toString() + "\"}";
try {
_9A = JSON.parse(_8z)
} catch (err) {}
}
return _4A(_9A);
}
function _aA(_2A) {
var _i9 = "[";
for (var _i2 = 0; _i2 < _2A.length; ++_i2) {
if (_i2 > 0) _i9 += ", ";
_i9 += _bA(_2A[_i2])
}
_i9 += "]";
return _i9
}
function _bA(_2A) {
var _i9;
switch (typeof (_2A)) {
case "object":
switch (_2A._Ul) {
case _Fl:
if (!(_2A._cA) || (_2A._cA < _dA)) {
_dA = ++_eA;
_2A._cA = _eA;
_i9 = _fA(_2A.Object);
_dA = ++_eA
}
break;
case _El:
if (!(_2A._cA) || (_2A._cA < _gA)) {
_gA = ++_eA;
_2A._cA = _eA;
_i9 = _hA(_2A.Object);
_gA = ++_eA
}
break;
default:
if (_2A.constructor === Array) {
if (!(_2A._cA) || (_2A._cA < _dA)) {
_dA = ++_eA;
_2A._cA = _eA;
_i9 = _aA(_2A);
_dA = ++_eA
}
} else {
_i9 = _2A.toString();
}
break
}
break;
case "number":
case "string":
_i9 = _2A;
break;
default:
_i9 = _2A.toString();
break
}
return _i9
}
function _fA(_gc) {
var _i9 = [];
var _tl = _rl._ta(_gc);
if (_tl) {
for (var _i2 = 0; _i2 < _tl._Dl.length; ++_i2) {
if (_tl._Dl[_i2] != undefined) _i9.push(_bA(_tl._Dl[_i2]))
}
}
return _i9
}
function _hA(_Mb) {
var _i9 = {};
var _Ob = _Pb._ta(_Mb);
if (_Ob) {
for (var _i2 in _Ob) {
if (!_Ob.hasOwnProperty(_i2)) continue;
if (_Ob[_i2] != undefined) _i9[_i2] = _bA(_Ob[_i2])
}
}
return _i9
}
function _iA(_Mb) {
var _xn = _hA(yyGetInt32(_Mb));
return JSON.stringify(_xn)
}
function _jA(_6h) {
if (typeof _6h === "string") {
return _6h
} else if (_6h === null) {
return null
} else if (_6h === undefined) {
return null
} else if (typeof _6h === "number") {
return _6h
} else if (typeof _6h === "boolean") {
return _6h
} else if (typeof _6h === "object") {
if (_6h instanceof Long) {
return _6h._kA()
} else if (_6h instanceof Array) {
return _6h
} else if (_6h._gy) {
var _lA = null;
if (typeof _mA !== "undefined") {
_lA = Object.getOwnPropertyNames(_mA)
}
var _i9 = {};
for (var _3b in _6h) {
if (_6h.hasOwnProperty(_3b)) {
var _nA = _3b;
if (_lA != null) {
for (var _nb = 0; _nb < _lA.length; _nb++) {
if (_mA[_lA[_nb]] == _3b) {
_nA = "gml" + _lA[_nb];
break
}
}
}
if (_nA.startsWith("gml") || _oA[_nA] != undefined) {
var name = _nA.startsWith("gml") ? _nA.substring(3) : _nA;
var _1m = _oA[_nA];
if ((_1m == undefined) || (_1m[0] | _1m[1])) {
Object.defineProperty(_i9, name, {
value: _jA(_6h[_3b]),
_pA: true,
_qA: true,
enumerable: true
})
}
}
}
}
return _i9
}
}
return undefined
}
function _rA(_Tl) {
var _i9 = [];
for (var _i2 = 0; _i2 < _Tl.length; ++_i2) {
var _O9 = _sA(_Tl[_i2]);
_i9.push(_O9);
}
return _i9
}
function _sA(_6h) {
if (typeof _6h === "string") {
return _6h
} else if (_6h === null) {
return null
} else if (_6h === undefined) {
return undefined
} else if (typeof _6h === "number") {
return _6h
} else if (typeof _6h === "boolean") {
return _6h
} else if (typeof _6h === "object") {
if (_6h instanceof Array) {
return _rA(_6h)
} else {
var _i9 = {};
_i9.__type = "Object";
_i9._gy = true;
for (var _3b in _6h) {
if (_6h.hasOwnProperty(_3b)) {
var name;
if (_oA[_3b] != undefined) {
name = _3b
} else if (typeof _mA !== "undefined" && _mA[_3b] != undefined) {
name = _mA[_3b];
} else {
name = "gml" + _3b
}
var _Ji = _sA(_6h[_3b]);
Object.defineProperty(_i9, name, {
value: _Ji,
configurable: true,
writable: true,
enumerable: true
})
}
}
return _i9
}
}
}
function _s5(_tA) {
_uy._uA = yyGetInt32(_tA)
}
function _k5(_vA) {
_uy._wA = yyGetInt32(_vA)
}
function _q5(_ba, _ca, _my) {
var _j2 = (_2h & 0xffffff) | (((_1h * 255.0) << 24) & 0xff000000);
_uy._xA(yyGetString(_my), yyGetReal(_ba), yyGetReal(_ca), -1, -1, 0, 1, 1, _j2, _j2, _j2, _j2)
}
var _yA = _zA;
function _zA(_ba, _ca, _my, _AA, _BA, _CA, _DA, _Bd) {
if (!_xc) _qy("draw_text_color() only uses the 1st colour");
var _EA = _1h;
var _FA = _GA;
var _a9 = ((yyGetReal(_Bd) * 255) << 24) & 0xff000000;
_AA = (yyGetInt32(_AA) & 0xffffff) | _a9;
_BA = (yyGetInt32(_BA) & 0xffffff) | _a9;
_CA = (yyGetInt32(_CA) & 0xffffff) | _a9;
_DA = (yyGetInt32(_DA) & 0xffffff) | _a9;
_uy._xA(yyGetString(_my), yyGetReal(_ba), yyGetReal(_ca), -1, -1, 0, 1, 1, _AA, _BA, _CA, _DA);
_1h = _EA;
_um(_FA)
}
var _HA = _IA;
function _IA(_ba, _ca, _my, _JA, _7l, _AA, _BA, _CA, _DA, _Bd) {
if (!_xc) _qy("draw_text_ext_color() only uses the 1st colour");
var _EA = _1h;
var _FA = _GA;
var _a9 = (yyGetReal(_Bd) * 255) << 24;
_AA = (yyGetInt32(_AA) & 0xffffff) | _a9;
_BA = (yyGetInt32(_BA) & 0xffffff) | _a9;
_CA = (yyGetInt32(_CA) & 0xffffff) | _a9;
_DA = (yyGetInt32(_DA) & 0xffffff) | _a9;
_uy._xA(yyGetString(_my), yyGetReal(_ba), yyGetReal(_ca), yyGetInt32(_JA), yyGetInt32(_7l), 0, 1, 1, _AA, _BA, _CA, _DA);
_1h = _EA;
_um(_FA)
}
function _KA(_ba, _ca, _my, _Yv, _Zv, _fa) {
var _j2 = (_2h & 0xffffff) | (((_1h * 255.0) << 24) & 0xff000000);
_uy._xA(yyGetString(_my), yyGetReal(_ba), yyGetReal(_ca), -1, -1, yyGetReal(_fa), yyGetReal(_Yv), yyGetReal(_Zv), _j2, _j2, _j2, _j2)
}
var _LA = _MA;
function _MA(_ba, _ca, _my, _JA, _7l, _Yv, _Zv, _fa, _AA, _BA, _CA, _DA, _Bd) {
if (!_xc) _qy("draw_text_ext_transformed_color() only uses the 1st colour");
var _EA = _1h;
var _FA = _GA;
var _a9 = ((yyGetReal(_Bd) * 255) << 24) & 0xff000000;
_AA = _4h(yyGetInt32(_AA)) | _a9;
_BA = _4h(yyGetInt32(_BA)) | _a9;
_CA = _4h(yyGetInt32(_CA)) | _a9;
_DA = _4h(yyGetInt32(_DA)) | _a9;
_uy._xA(yyGetString(_my), yyGetReal(_ba), yyGetReal(_ca),
yyGetInt32(_JA), yyGetInt32(_7l), yyGetReal(_fa), yyGetReal(_Yv), yyGetReal(_Zv), _AA, _BA, _CA, _DA);
_1h = _EA;
_um(_FA)
}
var _NA = _t5;
function _t5(_ba, _ca, _my, _Yv, _Zv, _fa, _AA, _BA, _CA, _DA, _Bd) {
if (!_xc) _qy("draw_text_transformed_color() only uses the 1st colour");
var _EA = _1h;
var _FA = _GA;
var _a9 = ((yyGetReal(_Bd) * 255) << 24) & 0xff000000;
_AA = _4h(yyGetInt32(_AA)) | _a9;
_BA = _4h(yyGetInt32(_BA)) | _a9;
_CA = _4h(yyGetInt32(_CA)) | _a9;
_DA = _4h(yyGetInt32(_DA)) | _a9;
_uy._xA(yyGetString(_my), yyGetReal(_ba), yyGetReal(_ca), -1, -1, yyGetReal(_fa),
yyGetReal(_Yv), yyGetReal(_Zv), _AA, _BA, _CA, _DA);
_1h = _EA;
_um(_FA)
}
function _OA(_el) {
if (_uy._ta(yyGetInt32(_el))) return true;
else return false
}
function _PA(_el) {
var _QA = _uy._ta(yyGetInt32(_el));
if (!_QA) return "";
return _QA._v1
}
var _RA = _PA;;;
var _SA = 0,
_TA = 1,
_UA = 2,
_VA = 3,
_WA = 4,
_XA = 5,
_YA = 6,
_ZA = 7,
__A = 8,
_0B = 9,
_1B = 10,
_2B = 11;
var _3B = 1; /*@constructor */
function _4B() {
var _5B = _6B("hiscores_data_", true);
if (_5B != null) {
try {
var _7B = JSON.parse(_5B);
var _i2;
for (_i2 = 0; _i2 < _8B; _i2++) {
_9B[_i2] = _7B[_i2].name;
_aB[_i2] = _7B[_i2].value
}
} catch (_bB) {
_hl("Error: reading hiscore JSON")
}
}
}
function _cB() {
_aB[0] = _aB[1] = _aB[2] = _aB[3] = _aB[4] = _aB[5] = _aB[6] = _aB[7] = _aB[8] = _aB[9] = 0;
_9B[0] = _9B[1] = _9B[2] = _9B[3] = _9B[4] = _9B[5] = _9B[6] = _9B[7] = _9B[8] = _9B[9] = _dB
}
function _eB(_fB, _gB, _Gw) {
var _hB, _iB, _jB, _kB, _lB, _mB;
_hB = (_fB >> 16) & 0xff;
_jB = (_fB >> 8) & 0xff;
_lB = (_fB & 0xff);
_iB = (_gB >> 16) & 0xff;
_kB = (_gB >> 8) & 0xff;
_mB = (_gB & 0xff);
var _nB = 1.0 - _Gw;
var _79 = _Cl(_hB * _nB + _iB * _Gw);
var _89 = _Cl(_jB * _nB + _kB * _Gw);
var _99 = _Cl(_lB * _nB + _mB * _Gw);
var _f9 = ((_79 & 0xff) << 16) | ((_89 & 0xff) << 8) | (_99 & 0xff);
return _f9
}
function _oB(_fB, _gB, _Gw) {
return _eB(_fB, _gB, _Gw)
}
function _M6(_hn, _pB, _48, _qB) {
_48 = yyGetInt32(_48);
_qB = yyGetInt32(_qB);
var _rB = _sB;
_sB = true;
var event = _tB(_48, _qB);
var index = _uB(_48, _qB);
_hn._Ca(event, index, _hn, _pB);
_sB = _rB
}
function _vB(_hn, _wB, _xB, _yB) {
var _zB = _AB._ta(_xB);
if ((_zB != null) && (_zB != undefined)) {
var _BB = _zB._CB[_yB];
if ((_BB != null) && (_BB != undefined)) {
_BB._DB(_hn, _hn)
}
}
}
function _O6(_hn, _pB, _Tl, _48, _qB) {
_Tl = yyGetInt32(_Tl);
_48 = yyGetInt32(_48);
_qB = yyGetInt32(_qB);
var event = _tB(_48, _qB);
var index = _uB(_48,
_qB);
var _mz = _b8._ta(_Tl);
if (!_mz) {
_hl("Error: undefined object id passed to event_perform_object: " + _Tl)
} else {
var _EB = _FB;
var _GB = _HB;
var _IB = _JB;
_FB = _mz;
_HB = event;
_JB = index;
_mz._Ca(event, index, _hn, _pB);
_FB = _EB;
_HB = _GB;
_JB = _IB
}
}
var _KB = !0;
function _N6(_hn, _pB, _qB) {
_qB = yyGetInt32(_qB);
if (_qB < 0 || _qB > 15) {
_hl("Error: illegal user event ID: " + _qB);
}
_qB += _LB;
_M6(_hn, _pB, _MB, _qB)
}
function _M4(_hn, _pB) {
_hn._NB(_OB, _PB, _pB)
}
function _QB(_sy) {
var _Cf = "";
var index = 0;
while (index < _sy.length) {
var _O9 = 0;
var _RB = _sy.charCodeAt(index++);
if ((_RB & 0x80) == 0) {
_O9 = _RB
} else if ((_RB & 0xe0) == 0xc0) {
_O9 = (_RB & 0x1f) << 6;
_RB = _sy.charCodeAt(index++);
_O9 |= (_RB & 0x3f)
} else if ((_RB & 0xf0) == 0xe0) {
_O9 = (_RB & 0x0f) << 12;
_RB = _sy.charCodeAt(index++);
_O9 |= (_RB & 0x3f) << 6;
_RB = _sy.charCodeAt(index++);
_O9 |= (_RB & 0x3f)
} else {
_O9 = (_RB & 0x07) << 18;
_RB = _sy.charCodeAt(index++);
_O9 |= (_RB & 0x3f) << 12;
_RB = _sy.charCodeAt(index++);
_O9 |= (_RB & 0x3f) << 6;
_RB = _sy.charCodeAt(index++);
_O9 |= (_RB & 0x3f)
}
if (_O9 == 0x00) break;
var _SB = String.fromCharCode(_O9);
_Cf += _SB
}
return _Cf
}
function _TB(data) {
var _UB = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var _VB, _WB, _XB, _YB, _ZB, __B, _0C, _1C;
var _i2 = 0;
var _2C = 0;
var _3C = "";
var _4C = [];
if (!data) {
return data
}
data = yyGetString(data);
data += '';
do {
_YB = _UB.indexOf(data.charAt(_i2++));
_ZB = _UB.indexOf(data.charAt(_i2++));
__B = _UB.indexOf(data.charAt(_i2++));
_0C = _UB.indexOf(data.charAt(_i2++));
_1C = _YB << 18 | _ZB << 12 | __B << 6 | _0C;
_VB = _1C >> 16 & 0xff;
_WB = _1C >> 8 & 0xff;
_XB = _1C & 0xff;
if (__B == 64) {
_4C[_2C++] = String.fromCharCode(_VB);
} else if (_0C == 64) {
_4C[_2C++] = String.fromCharCode(_VB, _WB)
} else {
_4C[_2C++] = String.fromCharCode(_VB, _WB, _XB)
}
} while (_i2 < data.length);
_3C = _4C.join('');
return _3C
}
function _5C(_6A) {
return _6C(yyGetString(_6A))
}
var _7C = 0;
var _8C = "";
function _9C(_aC) {
var _bC = _7C ? "0123456789ABCDEF" : "0123456789abcdef";
var _cC = "";
var x;
for (var _i2 = 0; _i2 < _aC.length; _i2++) {
x = _aC.charCodeAt(_i2);
_cC += _bC.charAt((x >>> 4) & 0x0F) + _bC.charAt(x & 0x0F)
}
return _cC
}
function _dC(_aC) {
var _cC = "";
var _i2 = -1;
var x, y;
while (++_i2 < _aC.length) {
x = _aC.charCodeAt(_i2);
y = _i2 + 1 < _aC.length ? _aC.charCodeAt(_i2 + 1) : 0;
if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) {
x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF);
_i2++
}
if (x <= 0x7F) _cC += String.fromCharCode(x);
else if (x <= 0x7FF) _cC += String.fromCharCode(0xC0 | ((x >>> 6) & 0x1F), 0x80 | (x & 0x3F));
else if (x <= 0xFFFF) _cC += String.fromCharCode(0xE0 | ((x >>> 12) & 0x0F), 0x80 | ((x >>> 6) & 0x3F), 0x80 | (x & 0x3F));
else if (x <= 0x1FFFFF) _cC += String.fromCharCode(0xF0 | ((x >>> 18) & 0x07), 0x80 | ((x >>> 12) & 0x3F), 0x80 | ((x >>> 6) & 0x3F), 0x80 | (x & 0x3F))
}
return _cC
}
function _eC(_aC) {
var _cC = Array(_aC.length >> 2);
for (var _i2 = 0; _i2 < _cC.length; _i2++) _cC[_i2] = 0;
for (var _i2 = 0; _i2 < _aC.length * 8; _i2 += 8) _cC[_i2 >> 5] |= (_aC.charCodeAt(_i2 / 8) & 0xFF) << (_i2 % 32);
return _cC
}
function _fC(x, _0y) {
x[_0y >> 5] |= 0x80 << ((_0y) % 32);
x[(((_0y + 64) >>> 9) << 4) + 14] = _0y;
var _a9 = 1732584193;
var _99 = -271733879;
var _j2 = -1732584194;
var _Xn = 271733878;
for (var _i2 = 0; _i2 < x.length; _i2 += 16) {
var _gC = _a9;
var _hC = _99;
var _iC = _j2;
var _jC = _Xn;
_a9 = _kC(_a9, _99, _j2, _Xn, x[_i2 + 0], 7, -680876936);
_Xn = _kC(_Xn, _a9, _99, _j2, x[_i2 + 1], 12, -389564586);
_j2 = _kC(_j2, _Xn, _a9, _99, x[_i2 + 2], 17, 606105819);
_99 = _kC(_99, _j2, _Xn, _a9, x[_i2 + 3], 22, -1044525330);
_a9 = _kC(_a9, _99, _j2, _Xn, x[_i2 + 4], 7, -176418897);
_Xn = _kC(_Xn, _a9, _99, _j2,
x[_i2 + 5], 12, 1200080426);
_j2 = _kC(_j2, _Xn, _a9, _99, x[_i2 + 6], 17, -1473231341);
_99 = _kC(_99, _j2, _Xn, _a9, x[_i2 + 7], 22, -45705983);
_a9 = _kC(_a9, _99, _j2, _Xn, x[_i2 + 8], 7, 1770035416);
_Xn = _kC(_Xn, _a9, _99, _j2, x[_i2 + 9], 12, -1958414417);
_j2 = _kC(_j2, _Xn, _a9, _99, x[_i2 + 10], 17, -42063);
_99 = _kC(_99, _j2, _Xn, _a9, x[_i2 + 11], 22, -1990404162);
_a9 = _kC(_a9, _99, _j2, _Xn, x[_i2 + 12], 7, 1804603682);
_Xn = _kC(_Xn, _a9, _99, _j2, x[_i2 + 13], 12, -40341101);
_j2 = _kC(_j2, _Xn, _a9, _99, x[_i2 + 14], 17, -1502002290);
_99 = _kC(_99, _j2, _Xn, _a9, x[_i2 + 15], 22, 1236535329);
_a9 = _lC(_a9, _99, _j2, _Xn, x[_i2 + 1], 5, -165796510);
_Xn = _lC(_Xn, _a9, _99, _j2, x[_i2 + 6], 9, -1069501632);
_j2 = _lC(_j2, _Xn, _a9, _99, x[_i2 + 11], 14, 643717713);
_99 = _lC(_99, _j2, _Xn, _a9, x[_i2 + 0], 20, -373897302);
_a9 = _lC(_a9, _99, _j2, _Xn, x[_i2 + 5], 5, -701558691);
_Xn = _lC(_Xn, _a9, _99, _j2, x[_i2 + 10], 9, 38016083);
_j2 = _lC(_j2, _Xn, _a9, _99, x[_i2 + 15], 14, -660478335);
_99 = _lC(_99, _j2, _Xn, _a9, x[_i2 + 4], 20, -405537848);
_a9 = _lC(_a9, _99, _j2, _Xn, x[_i2 + 9], 5, 568446438);
_Xn = _lC(_Xn, _a9, _99, _j2, x[_i2 + 14], 9, -1019803690);
_j2 = _lC(_j2, _Xn, _a9, _99,
x[_i2 + 3], 14, -187363961);
_99 = _lC(_99, _j2, _Xn, _a9, x[_i2 + 8], 20, 1163531501);
_a9 = _lC(_a9, _99, _j2, _Xn, x[_i2 + 13], 5, -1444681467);
_Xn = _lC(_Xn, _a9, _99, _j2, x[_i2 + 2], 9, -51403784);
_j2 = _lC(_j2, _Xn, _a9, _99, x[_i2 + 7], 14, 1735328473);
_99 = _lC(_99, _j2, _Xn, _a9, x[_i2 + 12], 20, -1926607734);
_a9 = _mC(_a9, _99, _j2, _Xn, x[_i2 + 5], 4, -378558);
_Xn = _mC(_Xn, _a9, _99, _j2, x[_i2 + 8], 11, -2022574463);
_j2 = _mC(_j2, _Xn, _a9, _99, x[_i2 + 11], 16, 1839030562);
_99 = _mC(_99, _j2, _Xn, _a9, x[_i2 + 14], 23, -35309556);
_a9 = _mC(_a9, _99, _j2, _Xn, x[_i2 + 1], 4, -1530992060);
_Xn = _mC(_Xn, _a9, _99, _j2, x[_i2 + 4], 11, 1272893353);
_j2 = _mC(_j2, _Xn, _a9, _99, x[_i2 + 7], 16, -155497632);
_99 = _mC(_99, _j2, _Xn, _a9, x[_i2 + 10], 23, -1094730640);
_a9 = _mC(_a9, _99, _j2, _Xn, x[_i2 + 13], 4, 681279174);
_Xn = _mC(_Xn, _a9, _99, _j2, x[_i2 + 0], 11, -358537222);
_j2 = _mC(_j2, _Xn, _a9, _99, x[_i2 + 3], 16, -722521979);
_99 = _mC(_99, _j2, _Xn, _a9, x[_i2 + 6], 23, 76029189);
_a9 = _mC(_a9, _99, _j2, _Xn, x[_i2 + 9], 4, -640364487);
_Xn = _mC(_Xn, _a9, _99, _j2, x[_i2 + 12], 11, -421815835);
_j2 = _mC(_j2, _Xn, _a9, _99, x[_i2 + 15], 16, 530742520);
_99 = _mC(_99, _j2, _Xn, _a9,
x[_i2 + 2], 23, -995338651);
_a9 = _nC(_a9, _99, _j2, _Xn, x[_i2 + 0], 6, -198630844);
_Xn = _nC(_Xn, _a9, _99, _j2, x[_i2 + 7], 10, 1126891415);
_j2 = _nC(_j2, _Xn, _a9, _99, x[_i2 + 14], 15, -1416354905);
_99 = _nC(_99, _j2, _Xn, _a9, x[_i2 + 5], 21, -57434055);
_a9 = _nC(_a9, _99, _j2, _Xn, x[_i2 + 12], 6, 1700485571);
_Xn = _nC(_Xn, _a9, _99, _j2, x[_i2 + 3], 10, -1894986606);
_j2 = _nC(_j2, _Xn, _a9, _99, x[_i2 + 10], 15, -1051523);
_99 = _nC(_99, _j2, _Xn, _a9, x[_i2 + 1], 21, -2054922799);
_a9 = _nC(_a9, _99, _j2, _Xn, x[_i2 + 8], 6, 1873313359);
_Xn = _nC(_Xn, _a9, _99, _j2, x[_i2 + 15], 10, -30611744);
_j2 = _nC(_j2, _Xn, _a9, _99, x[_i2 + 6], 15, -1560198380);
_99 = _nC(_99, _j2, _Xn, _a9, x[_i2 + 13], 21, 1309151649);
_a9 = _nC(_a9, _99, _j2, _Xn, x[_i2 + 4], 6, -145523070);
_Xn = _nC(_Xn, _a9, _99, _j2, x[_i2 + 11], 10, -1120210379);
_j2 = _nC(_j2, _Xn, _a9, _99, x[_i2 + 2], 15, 718787259);
_99 = _nC(_99, _j2, _Xn, _a9, x[_i2 + 9], 21, -343485551);
_a9 = _oC(_a9, _gC);
_99 = _oC(_99, _hC);
_j2 = _oC(_j2, _iC);
_Xn = _oC(_Xn, _jC)
}
return Array(_a9, _99, _j2, _Xn)
}
function _pC(_qC, _a9, _99, x, _wy, _jb) {
return _oC(_rC(_oC(_oC(_a9, _qC), _oC(x, _jb)), _wy), _99)
}
function _kC(_a9, _99, _j2, _Xn,
x, _wy, _jb) {
return _pC((_99 & _j2) | ((~_99) & _Xn), _a9, _99, x, _wy, _jb)
}
function _lC(_a9, _99, _j2, _Xn, x, _wy, _jb) {
return _pC((_99 & _Xn) | (_j2 & (~_Xn)), _a9, _99, x, _wy, _jb)
}
function _mC(_a9, _99, _j2, _Xn, x, _wy, _jb) {
return _pC(_99 ^ _j2 ^ _Xn, _a9, _99, x, _wy, _jb)
}
function _nC(_a9, _99, _j2, _Xn, x, _wy, _jb) {
return _pC(_j2 ^ (_99 | (~_Xn)), _a9, _99, x, _wy, _jb)
}
function _oC(x, y) {
var _sC = (x & 0xFFFF) + (y & 0xFFFF);
var _tC = (x >> 16) + (y >> 16) + (_sC >> 16);
return (_tC << 16) | (_sC & 0xFFFF)
}
function _rC(_2o, _uC) {
return (_2o << _uC) | (_2o >>> (32 - _uC));
}
function _6C(_wy) {
return _9C(_vC(_dC(_wy)))
}
function _vC(_wy) {
return _wC(_xC(_yC(_wy), _wy.length * 8))
}
function _yC(_aC) {
var _cC = Array(_aC.length >> 2);
for (var _i2 = 0; _i2 < _cC.length; _i2++) _cC[_i2] = 0;
for (var _i2 = 0; _i2 < _aC.length * 8; _i2 += 8) _cC[_i2 >> 5] |= (_aC.charCodeAt(_i2 / 8) & 0xFF) << (24 - _i2 % 32);
return _cC
}
function _wC(_aC) {
var _cC = "";
for (var _i2 = 0; _i2 < _aC.length * 32; _i2 += 8) _cC += String.fromCharCode((_aC[_i2 >> 5] >>> (24 - _i2 % 32)) & 0xFF);
return _cC;
}
function _xC(x, _0y) {
x[_0y >> 5] |= 0x80 << (24 - _0y % 32);
x[((_0y + 64 >> 9) << 4) + 15] = _0y;
var _k2 = Array(80);
var _a9 = 1732584193;
var _99 = -271733879;
var _j2 = -1732584194;
var _Xn = 271733878;
var e = -1009589776;
for (var _i2 = 0; _i2 < x.length; _i2 += 16) {
var _gC = _a9;
var _hC = _99;
var _iC = _j2;
var _jC = _Xn;
var _zC = e;
for (var _nb = 0; _nb < 80; _nb++) {
if (_nb < 16) _k2[_nb] = x[_i2 + _nb];
else _k2[_nb] = _rC(_k2[_nb - 3] ^ _k2[_nb - 8] ^ _k2[_nb - 14] ^ _k2[_nb - 16], 1);
var _jb = _oC(_oC(_rC(_a9, 5), _AC(_nb, _99, _j2, _Xn)), _oC(_oC(e, _k2[_nb]), _BC(_nb)));
e = _Xn;
_Xn = _j2;
_j2 = _rC(_99, 30);
_99 = _a9;
_a9 = _jb
}
_a9 = _oC(_a9, _gC);
_99 = _oC(_99, _hC);
_j2 = _oC(_j2, _iC);
_Xn = _oC(_Xn, _jC);
e = _oC(e, _zC)
}
return Array(_a9,
_99, _j2, _Xn, e)
}
function _AC(_jb, _99, _j2, _Xn) {
if (_jb < 20) return (_99 & _j2) | ((~_99) & _Xn);
if (_jb < 40) return _99 ^ _j2 ^ _Xn;
if (_jb < 60) return (_99 & _j2) | (_99 & _Xn) | (_j2 & _Xn);
return _99 ^ _j2 ^ _Xn
}
function _BC(_jb) {
return (_jb < 20) ? 1518500249 : (_jb < 40) ? 1859775393 : (_jb < 60) ? -1894007588 : -899497514
}
function _CC(_J8, _DC) {
for (var index = 0; index < _DC.length; index++) {
var _EC = _DC[index];
if (_EC._v1 == _J8) {
return index
}
}
return -1
}
function _FC(_I8, _GC) {
switch (_GC) {
case _SA:
return (_HC(_I8)) ? _IC(_I8) : "";
case _TA:
return (_JC(_I8)) ? _KC(_I8) : "";
case _UA:
return (_LC(_I8)) ? _MC(_I8) : "";
case _VA:
return (_NC(_I8)) ? _OC(_I8) : "";
case _XA:
return (_PC(_I8)) ? _QC(_I8) : "";
case _YA:
return (_RC(_I8)) ? _SC(_I8) : "";
case _ZA:
return (_OA(_I8)) ? _PA(_I8) : "";
case __A:
return (_TC(_I8)) ? _UC(_I8) : "";
case _0B:
return (_VC(_I8)) ? _WC(_I8) : "";
case _1B:
return (_XC(_I8)) ? _YC(_I8) : "";
case _2B:
return (_ZC(_I8)) ? __C(_I8) : ""
}
return ""
}
function _P6(_gz, index) {
return _gz._W4[yyGetInt32(index)]
}
function _Q6(_gz, index, _Jc) {
_gz._W4[yyGetInt32(index)] = yyGetInt32(_Jc);
}; /*@constructor */
function _0D() {
this._1D = 0;
this._2D = 0;
this._3D = false;
this._4D = 0;
this._5D = 0
};
_0D.prototype._6D = function (_7D) {
this._4D = _7D;
this._8D()
};;;;;;;
_0D.prototype._8D = function () {
this._1D = 0;
if (this._4D > 0.0) {
this._2D = _9D()
} else {
this._2D = 0
}
this._5D = 0;
this._3D = false
};;
_0D.prototype._ck = function () {
var current;
if (this._4D > 0.0) {
current = this._2D + 1000000.0 / this._4D
} else current = _9D();
this._5D = current - this._2D;
if (!this._3D) this._1D += this._5D;
this._2D = current
};
_0D.prototype._w8 = function () {
if (this._4D > 0) return this._4D;
if (this._5D > 0) {
return 1000000.0 / this._5D
}
return 30.0
};;
var _v8 = new _0D();
var _cx = 1,
_ax = 2,
_aD = 3,
_bx = 4,
_8x = 5,
_9x = 6,
_bD = 7,
_cD = 8,
_dD = 9,
_eD = 10,
_fD = 11;
var _gD = 0.0;
function _hD(_Yv, _Zv, _iD, _jD) {
_kD = true;
_lD = 0;
_mD = 0;
_nD = 1;
_oD = 1;
_pD = -1;
_qD = -1;
if (_Yv != undefined) _nD = yyGetReal(_Yv);
if (_Zv != undefined) _oD = yyGetReal(_Zv);
if (_iD != undefined) _lD = yyGetReal(_iD);
if (_jD != undefined) _mD = yyGetReal(_jD);
if (_rD) {
_sD()
}
}
var _tD = _hD;
var _uD = 96;
var _vD = 96;
function _wD() {
return _xD()
}
function _yD() {
return _zD()
}
var _AD = _BD;
function _BD(_ih, _Bd) {
_ih = yyGetInt32(_ih);
_Bd = yyGetReal(_Bd);
_CD();
var _DD = [];
_DD[0] = 1;
_DD[1] = 0;
_DD[2] = 0;
_DD[3] = 1;
_DD[4] = 0;
_DD[5] = 0;
_5e._ED(_DD[0], _DD[1], _DD[2], _DD[3], _DD[4], _DD[5]);
if (!_5e.clearRect || _ih != 0 || _Bd != 0) {
_5e.globalAlpha = _Bd;
_5e.fillStyle = _cn(_4h(_ih), _Bd);
_5e.globalCompositeOperation = 'copy';
_5e.fillRect(_FD, _GD, _HD, _ID)
} else {
_5e.clearRect(_FD, _GD, _HD, _ID)
}
_JD()
}
function _KD(_ww, _xw, _yw) {
return (yyGetInt32(_ww)) | (yyGetInt32(_xw) << 8) | (yyGetInt32(_yw) << 16)
}
function _LD(_MD, _ND, _OD) {
return _KD(_MD, _ND, _OD)
}
var _PD = _KD;
var _QD = _LD;
function _RD(_ih) {
return (yyGetInt32(_ih) >> 16) & 0xff
}
var _SD = _RD;
function _TD(_ih) {
return (yyGetInt32(_ih) >> 8) & 0xff;
}
var _UD = _TD;
function _VD(_ih) {
return (yyGetInt32(_ih) & 0xff)
}
var _WD = _VD;
function _XD(_ih) {
_ih = yyGetInt32(_ih);
var _YD = 0.0;
var _ZD = 0.0;
var __D = 0.0;
var _Gb = 0.0;
var _Ib = 0.0;
var _0E = 0.0;
var _Xn = 0.0;
var _5b = 0.0;
_YD = (_ih & 0xff) / 255.0;
_ZD = ((_ih >> 8) & 0xff) / 255.0;
__D = ((_ih >> 16) & 0xff) / 255.0;
_5b = _ib(_ib(_YD, _ZD), __D);
_0E = _hb(_hb(_YD, _ZD), __D);
_Xn = _0E - _5b;
if (_0E == 0) _Ib = 0.0;
else _Ib = 1.0 * _Xn / _0E;
if (_Ib == 0) _Gb = 0.0;
else if (_YD == _0E) _Gb = 60.0 * (_ZD - __D) / _Xn;
else if (_ZD == _0E) _Gb = 120.0 + 60.0 * (__D - _YD) / _Xn;
else _Gb = 240.0 + 60.0 * (_YD - _ZD) / _Xn;
if (_Gb < 0) _Gb = _Gb + 360.0;
var _O9 = Math.min(255, Math.max(0, _0E * 255.0));
var _wy = Math.min(255, Math.max(0, _Ib * 255.0));
var _l2 = Math.min(255, Math.max(0, (_Gb * 255.0) / 360.0));
var _1E = {
_l2: _l2,
_wy: _wy,
_O9: _O9
};
return _1E
}
function _2E(_ih) {
var _3E = _XD(_ih);
return _3E._l2
}
var _4E = _2E;
function _5E(_ih) {
var _3E = _XD(_ih);
return _3E._wy
}
var _6E = _5E;
function _7E(_ih) {
var _3E = _XD(_ih);
return _3E._O9
}
var _8E = _7E;
function _9E(_fB, _gB, _aE) {
_fB = yyGetInt32(_fB);
_gB = yyGetInt32(_gB);
_aE = yyGetReal(_aE);
var _hB = (_fB >> 16) & 0xff;
var _jB = (_fB >> 8) & 0xff;
var _lB = _fB & 0xff;
var _iB = (_gB >> 16) & 0xff;
var _kB = (_gB >> 8) & 0xff;
var _mB = _gB & 0xff;
var _bE = 1.0 - _aE;
var _79 = ~~(_hB * _bE + _iB * _aE);
var _89 = ~~(_jB * _bE + _kB * _aE);
var _99 = ~~(_lB * _bE + _mB * _aE);
return ((_79 << 16) & 0xff0000) | ((_89 << 8) & 0xff00) | (_99 & 0xff)
}
var _cE = _9E;
function _dE(_eE, _fE, _Gw) {
var _YD = 0.0;
var _ZD = 0.0;
var __D = 0.0;
var _Gb = 0.0;
var _Ib = 0.0;
var _0E = 0.0;
var _7z = 0.0;
var _gE = 0.0;
var _qC = 0.0;
var _jb = 0.0;
var _i2 = 0;
var _1E;
_Gb = yyGetReal(_eE) * 360.0 / 255.0;
if (_Gb == 360.0) _Gb = 0.0;
_Ib = yyGetReal(_fE) / 255.0;
_0E = yyGetReal(_Gw) / 255.0;
if (_Ib == 0) {
_YD = _0E;
_ZD = _0E;
__D = _0E
} else {
_Gb = _Gb / 60.0;
_i2 = Math.floor(_Gb);
_7z = _Gb - _i2;
_gE = _0E * (1.0 - _Ib);
_qC = _0E * (1.0 - (_Ib * _7z));
_jb = _0E * (1.0 - (_Ib * (1.0 - _7z)));
switch (_i2) {
case 0: {
_YD = _0E;
_ZD = _jb;
__D = _gE
}
break;
case 1: {
_YD = _qC;
_ZD = _0E;
__D = _gE
}
break;
case 2: {
_YD = _gE;
_ZD = _0E;
__D = _jb
}
break;
case 3: {
_YD = _gE;
_ZD = _qC;
__D = _0E
}
break;
case 4: {
_YD = _jb;
_ZD = _gE;
__D = _0E
}
break;
default: {
_YD = _0E;
_ZD = _gE;
__D = _qC
}
}
}
_YD = Math.max(0, Math.min(255, Math.floor((_YD * 255.0) + 0.5)));
_ZD = Math.max(0, Math.min(255, Math.floor((_ZD * 255.0) + 0.5)));
__D = Math.max(0, Math.min(255, Math.floor((__D * 255.0) + 0.5)));
_1E = _YD | (_ZD << 8) | (__D << 16);
return _1E
}
var _hE = _dE;
function _iE(_Bd) {
_Bd = yyGetReal(_Bd);
if (_Bd < 0) {
_Bd = 0
}
if (_Bd > 1) {
_Bd = 1
}
_1h = _Bd;
_jE = _cn(_2h, _1h)
}
function _kE() {
return _1h
}
function _lE() {
return _GA
}
var _mE = _lE;
function _um(_3h) {
_3h = yyGetInt32(_3h);
_GA = _3h;
_2h = _4h(_3h);
_nE = _oE(_2h);
_jE = _cn(_2h, _1h)
}
var _pE = _um;;;;;;;
function _qE(_xb, _yb, _Za, __a, _fB, _gB, _rE) {
_sE(_xb, _yb, _Za, __a, 10, 10, _fB, _gB, _rE)
}
var _tE = _qE;
var _sE = _uE;
var _vE = _uE;
function _uE(_xb, _yb, _Za,
__a, _wE, _xE, _fB, _gB, _rE) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_wE = yyGetReal(_wE);
_xE = yyGetReal(_xE);
_fB = yyGetReal(_fB);
_gB = yyGetReal(_gB);
_rE = yyGetBool(_rE);
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD
}
if (__a < _yb) {
var _yE = _yb;
_yb = __a;
__a = _yE
}
if (_Za < _xb) {
var _yE = _xb;
_xb = _Za;
_Za = _yE
}
var width = _Za - _xb;
var height = __a - _yb;
var _zE = _wE;
var _AE = _xE;
var _f9 = _5e.globalAlpha = _1h;
_5e.beginPath();
_5e.moveTo(_xb + _zE, _yb);
_5e.lineTo(_xb + width - _zE, _yb);
_5e.quadraticCurveTo(_xb + width,
_yb, _xb + width, _yb + _AE);
_5e.lineTo(_xb + width, _yb + height - _AE);
_5e.quadraticCurveTo(_xb + width, _yb + height, _xb + width - _zE, _yb + height);
_5e.lineTo(_xb + _zE, _yb + height);
_5e.quadraticCurveTo(_xb, _yb + height, _xb, _yb + height - _AE);
_5e.lineTo(_xb, _yb + _AE);
_5e.quadraticCurveTo(_xb, _yb, _xb + _zE, _yb);
_5e.closePath();
if (_rE) {
_5e.strokeStyle = _cn(_4h(_fB), 1.0);
_5e.stroke()
} else {
_5e.fillStyle = _cn(_4h(_fB), 1.0);
_5e.fill()
}
}
var _BE = _CE;
function _CE(_xb, _yb, _Za, __a, _rE) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_rE = yyGetBool(_rE);
_5e.globalAlpha = _1h;
if (_rE) {
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD
}
_5e.lineWidth = 1;
_5e.strokeStyle = _jE;
_5e._DE(_xb + 0.5, _yb + 0.5, (_Za - _xb), (__a - _yb))
} else {
if (_gD != 0.0) {
_Za += _gD;
__a += _gD
}
_5e.fillStyle = _jE;
_5e._EE(_xb, _yb, _Za - _xb + 1, __a - _yb + 1)
}
}
var _FE = _GE;
var _HE = _GE;
function _GE(_xb, _yb, _Za, __a, _fB, _gB, _IE, _JE, _rE) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_fB = yyGetInt32(_fB);
_gB = yyGetInt32(_gB);
_IE = yyGetInt32(_IE);
_JE = yyGetInt32(_JE);
_rE = yyGetBool(_rE);
var _f9 = _cn(_4h(_fB), 1.0);
_5e.globalAlpha = _1h;
if (_rE) {
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD
}
_5e.lineWidth = 1;
_5e.strokeStyle = _f9;
_5e._DE(_xb + 0.5, _yb + 0.5, (_Za - _xb), (__a - _yb))
} else {
if (_gD != 0.0) {
_Za += _gD;
__a += _gD
}
_5e.fillStyle = _f9;
_5e._EE(_xb + 0.5, _yb + 0.5, (_Za - _xb), (__a - _yb))
}
}
var _KE = _LE;
function _LE(_xb, _yb, _Za, __a, _fB, _gB, _ME, _rE) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_fB = yyGetInt32(_fB);
_gB = yyGetInt32(_gB);
_ME = yyGetBool(_ME);
_rE = yyGetBool(_rE);
_5e.globalAlpha = _1h;
_5e.lineWidth = 1;
var _NE = _cn(_4h(_fB), 1.0);
var _OE = _cn(_4h(_gB), 1.0);
var _PE;
if (_ME) {
_PE = _5e.createLinearGradient(_xb, _yb, _xb, __a)
} else {
_PE = _5e.createLinearGradient(_xb, _yb, _Za, _yb)
}
_PE.addColorStop(0, _NE);
_PE.addColorStop(1, _OE);
if (_rE) {
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD
}
_5e.strokeStyle = _PE;
_5e._DE(_xb + 0.5, _yb + 0.5, _Za - _xb, __a - _yb)
} else {
if (_gD != 0.0) {
_Za += _gD;
__a += _gD
}
_5e.fillStyle = _PE;
_5e._EE(_xb + 0.5, _yb + 0.5, _Za - _xb, __a - _yb);
}
}
var _QE = _RE;
function _RE(_ba, _ca) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
if (_gD != 0.0) {
_ba += _gD;
_ca += _gD
}
_5e.globalAlpha = _1h;
_5e.fillStyle = _jE;
_5e._EE(_ba, _ca, 1, 1)
}
function _SE(_xb, _yb, _Za, __a, _7l) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD
}
_5e.globalAlpha = _1h;
_5e.strokeStyle = _nE;
_5e.lineWidth = yyGetReal(_7l);
_5e._TE();
_5e._UE(_xb + 0.5, _yb + 0.5);
_5e._VE(_Za + 0.5, __a + 0.5);
_5e._WE();
_5e._XE();
_5e._EE(_Za, __a, 1, 1)
}
function __e(_xb, _yb, _Za, __a) {
_SE(_xb, _yb, _Za, __a, 1)
}
var _YE = _ZE;
var __E = _0F;
function _ZE(_ba, _ca) {
return _0F(yyGetReal(_ba), yyGetReal(_ca)) & 0x00ffffff
}
function _0F(_ba, _ca) {
var _1F = canvas.width / _2F;
var _3F = canvas.height / _4F;
var _f9 = _5F(canvas, yyGetReal(_ba) * _1F, yyGetReal(_ca) * _3F);
return _f9
}
var _6F = _7F;
function _7F(_xb, _yb, _Za, __a, _8F, _9F, _rE) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_8F = yyGetReal(_8F);
_9F = yyGetReal(_9F);
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD;
_8F += _gD;
_9F += _gD
}
_5e.globalAlpha = _1h;
_5e.lineWidth = 1;
if (yyGetBool(_rE)) {
_5e.strokeStyle = _jE;
_5e._TE();
_5e._UE(_xb, _yb);
_5e._VE(_Za, __a);
_5e._VE(_8F, _9F);
_5e._VE(_xb, _yb);
_5e._XE();
_5e._WE()
} else {
_5e.strokeStyle = _jE;
_5e.lineJoin = "bevel";
_5e.fillStyle = _jE;
_5e._TE();
_5e._UE(_xb, _yb);
_5e._VE(_Za, __a);
_5e._VE(_8F, _9F);
_5e._VE(_xb, _yb);
_5e._aF();
_5e._XE();
_5e._WE();
_5e.lineJoin = "miter"
}
}
var _bF = _cF;
var _dF = _cF;
function _cF(_xb, _yb, _Za, __a, _8F, _9F, _fB, _gB, _IE, _rE) {
var _NE = _oE(_4h(_fB) | 0xff000000);
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_fB = yyGetInt32(_fB);
_gB = yyGetInt32(_gB);
_IE = yyGetInt32(_IE);
_JE = yyGetInt32(_JE);
_rE = yyGetBool(_rE);
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD;
_8F += _gD;
_9F += _gD
}
_5e.globalAlpha = _1h;
_5e.lineWidth = 1;
if (_rE) {
_5e.strokeStyle = _NE;
_5e._TE();
_5e._UE(_xb, _yb);
_5e._VE(_Za, __a);
_5e._VE(_8F, _9F);
_5e._VE(_xb, _yb);
_5e._XE();
_5e._WE()
} else {
_5e.strokeStyle = _NE;
_5e.lineJoin = "bevel";
_5e.fillStyle = _NE;
_5e._TE();
_5e._UE(_xb, _yb);
_5e._VE(_Za, __a);
_5e._VE(_8F, _9F);
_5e._VE(_xb, _yb);
_5e._aF();
_5e._XE();
_5e._WE();
_5e.lineJoin = "miter"
}
}
var _eF = _fF;
function _fF(_xb, _yb, _Za, __a, _aE, _gF, _hF, _iF, _jF, _kF, _lF, _mF) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_aE = yyGetReal(_aE);
_gF = yyGetInt32(_gF);
_hF = yyGetInt32(_hF);
_iF = yyGetInt32(_iF);
_jF = yyGetInt32(_jF);
_kF = yyGetInt32(_kF);
_lF = yyGetBool(_lF);
_mF = yyGetBool(_mF);
var _nF;
var _oF;
var _pF;
var _qF;
var _f9;
if (_lF) {
_FE(_xb, _yb, _Za, __a, _gF, _gF, _gF, _gF, false);
if (_mF) {
_FE(_xb, _yb, _Za, __a, _rF, _rF, _rF, _rF, true)
}
}
if (_aE < 0) {
_aE = 0
}
if (_aE > 100) {
_aE = 100
}
var _sF = _aE / 100;
switch (_kF) {
case 0:
_nF = _xb;
_pF = _yb;
_oF = _xb + _sF * (_Za - _xb);
_qF = __a;
break;
case 1:
_nF = _Za - _sF * (_Za - _xb);
_pF = _yb;
_oF = _Za;
_qF = __a;
break;
case 2:
_nF = _xb;
_pF = _yb;
_oF = _Za;
_qF = _yb + _sF * (__a - _yb);
break;
case 3:
_nF = _xb;
_pF = __a - _sF * (__a - _yb);
_oF = _Za;
_qF = __a;
break;
default:
_nF = _xb;
_pF = _yb;
_oF = _xb + _sF * (_Za - _xb);
_qF = __a;
break;
}
if (_aE > 50) {
_f9 = _eB(_iF, _jF, (_aE - 50.0) / 50.0)
} else {
_f9 = _eB(_hF, _iF, _aE / 50.0)
}
_FE(_nF, _pF, _oF, _qF, _f9, _f9, _f9, _f9, false);
if (_mF) {
_FE(_nF, _pF, _oF, _qF, _rF, _rF, _rF, _rF, true)
}
}
var _tF = _uF;
function _uF(_6b, _7b, _8b, _9b,
size) {
_6b = yyGetReal(_6b);
_7b = yyGetReal(_7b);
_8b = yyGetReal(_8b);
_9b = yyGetReal(_9b);
size = yyGetReal(size);
var _vF = Math.sqrt(((_8b - _6b) * (_8b - _6b)) + ((_9b - _7b) * (_9b - _7b)));
if (_vF != 0) {
if (size > _vF) {
size = _vF
}
var _ob = size * (_8b - _6b) / _vF;
var _qb = size * (_9b - _7b) / _vF;
__e(_6b, _7b, _8b, _9b);
_6F(_8b - _ob - _qb / 3.0, _9b - _qb + _ob / 3.0, _8b, _9b, _8b - _ob + _qb / 3.0, _9b - _qb - _ob / 3.0, false)
}
}
function _wF(_xb, _yb, _Za, __a, _rE) {
_xF(_xb, _yb, _Za, __a, _GA, _GA, _rE)
}
var _xF = _yF;
var _zF = _yF;
function _yF(x, y, _6b, _7b, _fB, _gB, _AF) {
x = yyGetReal(x);
y = yyGetReal(y);
_6b = yyGetReal(_6b);
_7b = yyGetReal(_7b);
_fB = yyGetInt32(_fB);
_gB = yyGetInt32(_gB);
_AF = yyGetBool(_AF);
if (_gD != 0.0) {
x += _gD;
y += _gD;
_6b += _gD;
_7b += _gD
}
var _k2 = _6b - x;
var _l2 = _7b - y;
var _BF = 0.5522848;
var _CF = (_k2 / 2) * _BF;
var _DF = (_l2 / 2) * _BF;
var _EF = x + _k2;
var _FF = y + _l2;
var _GF = x + _k2 / 2;
var _HF = y + _l2 / 2;
_5e.beginPath();
_5e.moveTo(x, _HF);
_5e.bezierCurveTo(x, _HF - _DF, _GF - _CF, y, _GF, y);
_5e.bezierCurveTo(_GF + _CF, y, _EF, _HF - _DF, _EF, _HF);
_5e.bezierCurveTo(_EF, _HF + _DF, _GF + _CF, _FF, _GF, _FF);
_5e.bezierCurveTo(_GF - _CF, _FF, x, _HF + _DF, x,
_HF);
_5e.closePath();
var _NE = _cn(_4h(_fB), 1.0);
var _OE = _cn(_4h(_gB), 1.0);
if (_k2 <= 0) _k2 *= -1;
if (_l2 <= 0) _l2 *= -1;
var _PE = _5e.createRadialGradient(_GF, _HF, 0, _GF, _HF, min(_k2 / 2, _l2 / 2));
_PE.addColorStop(0, _NE);
_PE.addColorStop(1, _OE);
_5e.globalAlpha = _1h;
if (_AF) {
_5e.lineWidth = 1;
_5e.strokeStyle = _PE;
_5e.stroke()
} else {
_5e.fillStyle = _PE;
_5e.fill()
}
}
var _IF = _JF;
var _KF = _JF;
function _JF(_ba, _ca, _MD, _fB, _gB, _rE) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
_MD = yyGetReal(_MD);
_fB = yyGetInt32(_fB);
_gB = yyGetInt32(_gB);
_rE = yyGetBool(_rE);
if (_gD != 0.0) {
_ba += _gD;
_ca += _gD
}
_5e.globalAlpha = _1h;
var _NE = _cn(_4h(_fB), 1.0);
var _OE = _cn(_4h(_gB), 1.0);
var _PE = _5e.createRadialGradient(_ba, _ca, 0, _ba, _ca, _MD);
_PE.addColorStop(0, _NE);
_PE.addColorStop(1, _OE);
_5e._TE();
if (_rE) {
_5e.lineWidth = 1;
_5e.strokeStyle = _PE;
_5e._LF(_ba, _ca, _MD, 0, Math.PI * 2, true);
_5e._XE()
} else {
_5e.fillStyle = _PE;
_5e._LF(_ba, _ca, _MD, 0, Math.PI * 2, false);
_5e._aF()
}
_5e._WE()
}
var _MF = _NF;
var _OF = _NF;
function _NF(_ba, _ca, _ih) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
if (_gD != 0.0) {
_ba += _gD;
_ca += _gD
}
var _NE = _cn(_4h(yyGetInt32(_ih)), 1.0);
_5e.globalAlpha = _1h;
_5e.fillStyle = _NE;
_5e._EE(_ba, _ca, 1, 1)
}
var _PF = _QF;
var _RF = _QF;
function _QF(_xb, _yb, _Za, __a, _7l, _fB, _gB) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_7l = yyGetReal(_7l);
_fB = yyGetInt32(_fB);
_gB = yyGetInt32(_gB);
if (_gD != 0.0) {
_xb += _gD;
_yb += _gD;
_Za += _gD;
__a += _gD
}
_5e.globalAlpha = _1h;
var _NE = _cn(_4h(_fB), 1.0);
var _OE = _cn(_4h(_gB), 1.0);
var _PE = _5e.createLinearGradient(_xb, _yb, _Za, __a);
_PE.addColorStop(0, _NE);
_PE.addColorStop(1,
_OE);
_5e.strokeStyle = _PE;
_5e._TE();
_5e._UE(_xb + 0.5, _yb + 0.5);
_5e._VE(_Za + 0.5, __a + 0.5);
_5e.lineWidth = _7l;
_5e._XE();
_5e._WE()
}
function _SF(_xb, _yb, _Za, __a, _fB, _gB) {
_PF(_xb, _yb, _Za, __a, 1, _fB, _gB)
}
var _TF = _SF;
function _UF(x, y, _6b, _7b, _NE, _OE, _AF) {
_xF(x, y, _6b, _7b, _NE, _OE, _AF)
}
function _VF(_WF) {
switch (_WF) {
case 1:
_XF(_8x, _ax);
break;
case 2:
_XF(_8x, _bx);
break;
case 3:
_XF(_cx, _bx);
break;
default:
_XF(_8x, _9x);
break
}
}
var _XF = _YF;
function _YF(src, _fe) {
_Of("Blend modes only available in WebGL mode.")
}
function _77(_qm, _J8) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._g8(yyGetString(_J8));
_qm._tz = 0;
_ZF._H8(0, 0)
}
}
function _97(_qm, __F, _0G, _U8) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._R8(yyGetString(__F), yyGetString(_0G), yyGetReal(_U8))
}
}
function _a7(_qm, _4c, _o8) {
var _ZF = _qm._dd();
if (_ZF) {
_o8 = yyGetInt32(_o8);
_ZF._K8(yyGetString(_4c), _o8);
if (_o8 == 0) {
_qm._tz = 0;
_ZF._H8(0, 0)
}
}
}
function _b7(_qm, _o8) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._0c(yyGetInt32(_o8));
}
return ""
}
function _h7(_qm, _1G, _2G) {
_1G = yyGetString(_1G);
var _ZF = _qm._dd();
if (_ZF) {
if (typeof (_2G) == "string") {
_ZF._W8(_1G, _2G)
} else {
_2G = yyGetInt32(_2G);
if (_JC(_2G)) {
var _rz = _sa._ta(_2G);
if (_ZF._h9(_1G, _rz._v1) === undefined) {
_ZF._j9(_rz._v1, _rz, 0, _rz._z1, _rz._A1, 1, 1, 0, undefined, 0xffffffff, 1.0)
}
_ZF._W8(_1G, _rz._v1)
} else {
_ZF._W8(_1G, -1)
}
}
}
}
function _i7(_qm, _1G) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._ec(yyGetString(_1G))
}
return ""
}
function _j7(_qm, _J8, _n8, _l9, _m9, _n9, _o9, _p9, _q9) {
var _ZF = _qm._dd();
if (_ZF) {
_l9 = yyGetInt32(_l9);
if (_JC(_n8) && (_l9 >= 0)) {
var _rz = _sa._ta(_n8);
if ((_rz._3G != undefined) || (_rz._4G != undefined)) {
console.log("ERROR: Sprite '" + _rz._v1 + "' is not valid for use as an attachment (must be a bitmap)\n");
return -1.0
}
_ZF._j9(yyGetString(_J8), _rz, _l9, yyGetReal(_m9), yyGetReal(_n9), yyGetReal(_o9), yyGetReal(_p9), yyGetReal(_q9));
return 1.0
}
}
return -1.0
}
function _k7(_qm, _J8, _n8, _l9, _m9, _n9, _o9, _p9, _q9, _ih, _Bd) {
var _ZF = _qm._dd();
if (_ZF) {
_l9 = yyGetInt32(_l9);
if (_JC(_n8) && (_l9 >= 0)) {
var _rz = _sa._ta(_n8);
if ((_rz._3G != undefined) || (_rz._4G != undefined)) {
console.log("ERROR: Sprite '" + _rz._v1 + "' is not valid for use as an attachment (must be a bitmap)\n");
return -1.0
}
_ZF._j9(yyGetString(_J8), _rz, _l9, yyGetReal(_m9), yyGetReal(_n9),
yyGetReal(_o9), yyGetReal(_p9), yyGetReal(_q9), undefined, yyGetInt32(_ih), yyGetReal(_Bd));
return 1.0
}
}
return -1.0
}
function _l7(_qm, _J8, _n8, _l9, _m9, _n9, _o9, _p9, _q9, _ih, _Bd) {
_k7(_qm, _J8, _n8, _l9, _m9, _n9, _o9, _p9, _q9, _ih, _Bd)
}
function _s7(_qm, _1G, _ih, _Bd) {
var _ZF = _qm._dd();
if (_ZF) {
_1G = yyGetString(_1G);
_ZF._59(_1G, yyGetInt32(_ih));
_ZF._c9(_1G, yyGetReal(_Bd))
}
}
function _t7(_qm, _1G, _ih, _Bd) {
_s7(_qm, _1G, _ih, _Bd)
}
function _u7(_qm, _1G) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._e9(yyGetString(_1G))
}
return 0xffffffff
}
function _v7(_qm,
_1G) {
return _u7(_qm, _1G)
}
function _w7(_qm, _1G) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._g9(yyGetString(_1G))
}
return 1.0
}
function _f7(_qm, _J8) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._h8(yyGetString(_J8))
}
}
function _g7(_qm) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF.__b()
}
return ""
}
function _87(_qm) {
return _b7(_qm, 0)
}
function _c7(_qm, _7d) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._3c(yyGetString(_7d));
}
return 0.0
}
function _d7(_qm, _7d) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._5c(yyGetString(_7d))
}
return 0.0
}
function _x7(_qm, _o8) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._E8(yyGetInt32(_o8))
}
return 0
}
function _y7(_qm, _o8, _I8) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._H8(yyGetInt32(_o8), yyGetInt32(_I8))
}
}
function _z7(_qm, _4c, _48) {
var frames = [];
var _ZF = _qm._dd();
if (_ZF) {
var _5G = _ZF._6c(_4c, _48);
if (_5G == null) {
frames.push(-1);
} else {
frames = _5G
}
} else {
frames.push(-1)
}
return frames
}
function _e7(_qm, _o8) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._1c(yyGetInt32(_o8))
}
}
function _m7(_qm, _z8) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._9a(yyGetReal(_z8) > 0.5 ? true : false)
}
}
function _n7(_qm, _Lb, _Mb) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._Kb(yyGetString(_Lb), yyGetInt32(_Mb))
}
}
function _o7(_qm, _Lb, _Mb) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._Qb(yyGetString(_Lb), yyGetInt32(_Mb))
}
}
function _p7(_qm, _Lb, _Mb) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._Rb(yyGetString(_Lb), yyGetInt32(_Mb))
}
}
function _q7(_qm, _Lb, _Mb) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._Zb(yyGetString(_Lb), yyGetInt32(_Mb))
}
};;;;;;
function _r7(_qm, _gc) {
var _ZF = _qm._dd();
if (_ZF) {
_ZF._fc(yyGetInt32(_gc));
return 1
}
return -1
};;
function _A7(_qm) {
var _ZF = _qm._dd();
if (_ZF) {
var rect = new _4z(0, 0, 0, 0);
if (_ZF._Pa(rect)) {
var _Va = [];
_Va.push(rect.left, rect.top, rect.right, rect.bottom);
return _Va
}
}
var _Va = [];
_Va.push(0.0, 0.0, 0.0, 0.0);
return _Va
};
function _B7(_qm) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._Qa()
}
return 0.0
};
function _C7(_qm, _I8) {
var _ZF = _qm._dd();
if (_ZF) {
return _ZF._Ra(yyGetInt32(_I8))
}
var _Va = [];
_Va.push(0, "");
return _Va
};
function _D7(_qm, _ba, _ca, _gc) {
var _ZF = _qm._dd();
if (_ZF) {
var _rz = _sa._ta(_qm._15);
if (_rz != null && _rz != undefined) {
if (_rz._4G) {
_rz._6G(_qm, yyGetReal(_ba), yyGetReal(_ca), yyGetInt32(_gc))
}
}
}
};;;
function _7G(_8G,
_9G, _k3, _l3, angle) {
if (Math.abs(angle) < 0.001) {
_aG.left = _8G;
_aG.top = _9G;
_aG.right = _8G + _k3;
_aG.bottom = _9G + _l3
} else {
var _bG = angle * (Math.PI / 180.0);
var _wy = Math.abs(sin(_bG));
var _j2 = Math.abs(cos(_bG));
var _bB = (_j2 * _k3) + (_wy * _l3);
var _cG = (_wy * _k3) + (_j2 * _l3);
_aG.left = (_8G + (_k3 - _bB) / 2);
_aG.right = (_8G + (_k3 + _bB) / 2);
_aG.top = (_9G + (_l3 - _cG) / 2);
_aG.bottom = (_9G + (_l3 + _cG) / 2)
}
};
function _dG() {
_eG = true
};
function _fG() {
if (_eG) {
var _gG = new _Zt();
_gG._hG(_Qv[_lv]);
var _0f = [];
var _1f = [];
_0f[0] = _aG.left;
_0f[1] = _aG.right;
_0f[2] = _aG.right;
_0f[3] = _aG.left;
_1f[0] = _aG.top;
_1f[1] = _aG.top;
_1f[2] = _aG.bottom;
_1f[3] = _aG.bottom;
_iG.left = Number._jG;
_iG.top = Number._jG;
_iG.right = Number._kG;
_iG.bottom = Number._kG;
for (var _i2 = 0; _i2 < 4; _i2++) {
var _lG = ((_0f[_i2] * _gG._5b[0]) + (_1f[_i2] * _gG._5b[4]) + _gG._5b[12]);
var _mG = ((_0f[_i2] * _gG._5b[1]) + (_1f[_i2] * _gG._5b[5]) + _gG._5b[13]);
_iG.left = _ib(_iG.left, _lG);
_iG.top = _ib(_iG.top, _mG);
_iG.right = _hb(_iG.right, _lG);
_iG.bottom = _hb(_iG.bottom, _mG)
}
_eG = false
}
};;;;;;;;;;;;;;;;;;;;
function _nG(_oG, _pG) {
if (_oG.readyState != 4) return;
var _Tj = _Oy(_oG);
if (_Tj) {
_Tj._qG = _oG.status;
_Tj.__j = true;
_Tj._rG = _58();
var _sG = _oG.getAllResponseHeaders().split("\r\n");
for (var _3b in _sG) {
if (!_sG.hasOwnProperty(_3b)) continue;
var _tG = _sG[_3b].split(": ");
if (_tG.length == 2) {
_78(_Tj._rG, _tG[0], _tG[1])
}
}
if (_pG) {
_pG(_oG, _Tj)
}
}
}
function _uG(_vG) {
var _wG = {};
_Uj._Vj(_xG, _vG, _yG, _wG);
setTimeout(function () {
var _Tj = _Oy(_wG);
if (_Tj) {
_Tj._qG = 404;
_Tj.__j = true;
_Tj._Zj = _zG;
_Tj._AG = ""
}
}, 500);
return _xG++
}
function _BG(_Dh, _vG, _CG, _DG, _pG, _EG) {
try {
var _FG = _GG(_vG, _CG);
_Uj._Vj(_xG,
_vG, _yG, _FG._HG);
if (_EG !== undefined) {
_FG._HG.responseType = _EG
}
if (_FG._IG) {
_JG(_Dh, _vG, _CG, _DG, _FG._HG, _FG._KG, _pG)
} else {
_LG(_Dh, _vG, _CG, _DG, _FG._HG, _pG)
}
} catch (e) {
return _uG(_vG)
}
return _xG++
}
function _GG(_vG, _CG) {
var _FG = {
_HG: null,
_KG: true,
_IG: false
};
if ((_vG.substring(0, 7) != "http://") && (_vG.substring(0, 8) != "https://")) {
_FG._KG = false
} else {
var _MG = "";
if (_vG.substring(0, 7) == "http://") {
_MG = _vG.substring(7)
}
if (_vG.substring(0, 8) == "https://") {
_MG = _vG.substring(8)
}
if (_MG.substring(0, document.domain.length) == document.domain) {
_FG._KG = false
}
}
if ((_FG._KG) && (window.XDomainRequest)) {
_FG._HG = new XDomainRequest();
_FG._KG = true;
_FG._IG = true
} else {
if (window.XMLHttpRequest) {
_FG._HG = new XMLHttpRequest();
_FG._KG = false;
_FG._IG = (_NG == _OG) && (_PG._QG <= 9.0)
} else if (window.ActiveXObject) {
if (new ActiveXObject("Microsoft.XMLHTTP")) {
_FG._HG = new ActiveXObject("Microsoft.XMLHTTP")
} else {
_FG._HG = new ActiveXObject("Msxml2.XMLHTTP")
}
}
}
return _FG
}
function _LG(_Dh, _vG, _CG, _DG, _oG, _pG) {
try {
_oG.open(_Dh, _vG, true);
if (_CG !== null) {
for (var _tG in _CG) {
if (!_CG.hasOwnProperty(_tG)) continue;
try {
_oG.setRequestHeader(_CG[_tG].key, _CG[_tG].value)
} catch (e) {
debug("Unable to set request header " + _CG[_tG].key + ":" + _CG[_tG].value + " " + e.message)
}
}
} else if (_Dh == "POST") {
_oG.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
_oG.onreadystatechange = function () {
_nG(_oG, _pG)
};
_oG.send(_DG)
} catch (e) {
debug(e.message)
}
}
function _JG(_Dh, _vG, _CG, _DG, _oG, _RG, _pG) {
_oG.open(_Dh, _vG);
_oG.ontimeout = function (_48) {
_SG(_48, _oG)
};
_oG.onerror = function (_48) {
_SG(_48, _oG)
};
if (_RG) {
_oG.onload = function (_48) {
_TG(_48, _oG, 200)
}
} else {
_oG.onload = function (_48) {};
_oG.onreadystatechange = function () {
if (_oG.readyState == 4) {
_TG(null, _oG, _oG.status)
}
}
}
if (_CG !== null) {
for (var _tG in _CG) {
if (!_CG.hasOwnProperty(_tG)) continue;
try {
_oG.setRequestHeader(_CG[_tG].key, _CG[_tG].value)
} catch (e) {
debug("Unable to set request header " + _CG[_tG].key + ":" + _CG[_tG].value + " " + e.message)
}
}
}
_oG._UG = function () {};
_oG.send(_DG)
}
function _TG(_48, _oG, _VG) {
var _Tj = _Oy(_oG);
if (_Tj) {
_Tj.__j = true;
if ((_VG >= 200) && (_VG < 300)) {
_Tj._Zj = _WG;
_Tj._qG = _VG
} else {
_Tj._Zj = _zG;
_Tj._qG = 404
}
_Tj._AG = _oG.responseText;
_Tj._rG = -1
}
}
function _SG(_48, _oG) {
var _Tj = _Oy(_oG);
if (_Tj) {
_Tj.__j = true;
_Tj._Zj = _zG;
_Tj._AG = "";
_Tj._qG = 404;
_Tj._rG = -1
}
};
var _XG = null;
function _r6(_qm, _I8) {
return _q8._YG._ta(yyGetInt32(_I8)).id
}
function _h6(_qm, _ba, _ca, _Tl) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
var _zn = 10000000000;
var _i2 = _ln;
var _ZG = __G(null, yyGetInt32(_Tl), false, _ln, _ba, _ca, function (_mn) {
var _ob = _ba - _mn.x;
var _qb = _ca - _mn.y;
var _Xn = Math.sqrt(_ob * _ob + _qb * _qb);
if (_Xn < _zn) {
_i2 = _mn.id;
_zn = _Xn
}
});
return _i2
}
function _i6(_qm, _ba, _ca, _Tl) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
var _zn = -10000000000;
var _i2 = _ln;
var _ZG = __G(null, yyGetInt32(_Tl), false, _ln, _ba, _ca, function (_mn) {
var _ob = _ba - _mn.x;
var _qb = _ca - _mn.y;
var _Xn = Math.sqrt(_ob * _ob + _qb * _qb);
if (_Xn > _zn) {
_i2 = _mn.id;
_zn = _Xn
}
});
return _i2
}
function _j6(_hn, _ba, _ca, _Tl) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
var _ob = _hn.x;
var _qb = _hn.y;
_hn._Wh(_ba, _ca);
var id = _kn(null, yyGetInt32(_Tl), false, _ln, _ba, _ca, function (_mn) {
if (_mn._0H(_hn, true)) {
return _mn.id
} else {
return _ln
}
});
_hn._Wh(_ob, _qb);
return id
}
function _k6(_hn, _ba, _ca, _Tl, _gc, _An) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
var _vl = _rl._ta(yyGetInt32(_gc));
if (!_vl) {
_hl("Error: invalid ds_list ID (instance_place_list)");
return 0
}
var _ob = _hn.x;
var _qb = _hn.y;
_hn._Wh(_ba, _ca);
var _Bn = 0;
var sort = yyGetBool(_An);
var _Va = [];
_kn(null, yyGetInt32(_Tl), false, _ln, _ba, _ca, function (_mn) {
if (_mn._0H(_hn, true)) {
if (sort) _Va[_Bn] = _mn;
else _vl._Vj(_mn.id);
_Bn += 1
}
return _ln
});
_hn._Wh(_ob, _qb);
if (sort) _pn(_Va, _vl, _ba, _ca);
return _Bn
}
function _E4(_hn,
_el, _1H) {
_1H = _1H !== undefined ? yyGetBool(_1H) : true;
if (_el === undefined) {
_hn._Ca(_2H, 0, _hn, _hn);
_hn._Ca(_3H, 0, _hn, _hn);
_hn._4H = true
} else {
var _9A = _S4(yyGetInt32(_el));
if (_9A != null && _9A.length > 0) {
for (var _gz = 0; _gz < _9A.length; _gz++) {
var _vn = _9A[_gz];
if (!_vn._4H && _vn._5H) {
if ((_1H === undefined) || (_1H)) {
_vn._Ca(_2H, 0, _vn, _vn)
}
_vn._Ca(_3H, 0, _vn, _vn);
_vn._4H = true
}
}
}
}
}
function _p6(_qm, _ba, _ca) {
var _Dl = _q8._YG._Dl;
var _Bn = [];
for (var _i2 = 0; _i2 < _Dl.length; _i2++) {
var _vn = _Dl[_i2];
if (_vn._on(yyGetReal(_ba), yyGetReal(_ca),
true)) {
_Bn.push(_vn)
}
}
for (var _i2 = 0; _i2 < _Bn.length; _i2++) {
_E4(_Bn[_i2])
}
}
function _q6(_qm, _ba, _ca, _6H, _7H) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
var bottom, top;
var _8H = [];
var _9H = _q8._YG;
for (var _i2 = 0; _i2 < _9H._Dl.length; _i2++) {
var _vn = _9H._Dl[_i2];
if (_vn._aH) _vn._bH();
var _cH = _vn._cH;
if (!((_ba > _cH.right) || (_ba < _cH.left) || (_ca > _cH.bottom) || (_ca < _cH.top))) {
_8H[_8H.length] = _vn
}
}
var _9H = _q8._YG;
for (var _i2 = 0; _i2 < _8H.length; _i2++) {
_m6(_8H[_i2], yyGetInt32(_6H), _7H)
}
}
function _R5(_qm, _dH, _eH) {
_qm._35 = yyGetReal(_dH);
_qm._d3 = yyGetReal(_eH)
}
function _S5(_qm, _dH, _eH) {
_qm._fH(yyGetReal(_dH), yyGetReal(_eH))
}
function _l6(_qm, _gH) {
var _hH = new _iH(0, 0, _jH++, _qm._kH, true);
var _lH = _hH.id;
_hH._mH(_qm, true);
_hH.id = _lH;
_hH._nH = false;
var _vn = _q8._oH(_hH);
if (yyGetBool(_gH)) {
_hH._Ca(_pH, 0, _hH, _hH);
_hH._Ca(_qH, 0, _hH, _hH)
}
return _hH.id
}
function _rH(_qm, _6H, _7H) {
_7H = yyGetBool(_7H);
if (_7H) {
_qm._Ca(_2H, 0, _qm, _qm);
_qm._Ca(_3H, 0, _qm, _qm)
}
_qm._sH(yyGetInt32(_6H), true, false);
_qm._tH(_qm._mz._uH);
_qm._vH(_q8);
if (_7H) {
_qm._Ca(_pH, 0, _qm, _qm);
_qm._Ca(_qH, 0, _qm, _qm)
}
}
function _wH(_qm, _6H, _7H) {
_6H = yyGetInt32(_6H);
if (!_b8._xH(_6H)) {
debug("Error: Trying to change an instance to an nonexistent object type.");
return
}
_rH(_qm, _6H, yyGetBool(_7H))
}
var _m6 = _wH;
function _s6(_qm, _jn) {
var _vl = [];
_vl = _q8._YG._Dl;
_q8._YG._bk();
var _yH = _q8._zH;
for (var _i2 = 0; _i2 < _vl.length; _i2++) {
if (_vl[_i2] == _qm) {
if (yyGetBool(_jn) == false) {
_q8._AH(_vl[_i2])
} else {
_q8._YG._BH(_vl[_i2])
}
} else {
_q8._AH(_vl[_i2])
}
}
}
function _w6(_qm) {
var _vl = [];
_vl = _q8._zH._Dl;
_q8._zH._bk();
var _9H = _q8._YG;
for (var _i2 = 0; _i2 < _vl.length; _i2++) {
_q8._CH(_vl[_i2])
}
}
function _DH(_Tl, _EH) {
if (_Tl._FH >= 0) {
_EH = yyGetInt32(_EH);
var _GH = _b8._ta(_Tl._FH);
if (_GH) {
if (_GH._HH == _EH) {
return true
} else {
return _DH(_GH, _EH)
}
}
}
return false
};
function _x6(_qm, _6H) {
_6H = yyGetInt32(_6H);
var _i2;
var _8H = [];
var _yH = _q8._zH;
if (_6H == _IH) {
for (var _i2 = 0; _i2 < _yH._Dl; _i2++) {
var _vn = _yH._Dl[_i2];
_8H[_8H.length] = _vn
}
} else {
for (var _i2 = 0; _i2 < _yH._Dl.length; _i2++) {
var _vn = _yH._Dl[_i2];
if (_vn._kH == _6H || _vn.id == _6H) {
_8H[_8H.length] = _vn
} else if (_DH(_b8._ta(_vn._kH),
_6H)) {
_8H[_8H.length] = _vn
}
}
}
var _9H = _q8._YG;
for (_i2 = 0; _i2 < _8H.length; _i2++) {
_q8._CH(_8H[_i2])
}
}
function _t6(_qm, _6H) {
_6H = yyGetInt32(_6H);
var _i2;
var _8H = [];
var _9H = _q8._YG;
if (_6H == _IH) {
for (var _i2 = 0; _i2 < _9H._Dl.length; _i2++) {
var _vn = _9H._Dl[_i2];
_8H[_8H.length] = _vn
}
} else {
for (var _i2 = 0; _i2 < _9H._Dl.length; _i2++) {
var _vn = _9H._Dl[_i2];
if (_vn._kH == _6H || _vn.id == _6H) {
_8H[_8H.length] = _vn
} else if (_DH(_b8._ta(_vn._kH), _6H)) {
_8H[_8H.length] = _vn
}
}
}
var _yH = _q8._zH;
for (_i2 = 0; _i2 < _8H.length; _i2++) {
_q8._AH(_8H[_i2])
}
}
function _u6(_qm,
_JH, _KH, _Fc, _Gc, _LH, _jn) {
_JH = yyGetReal(_JH);
_KH = yyGetReal(_KH);
_Fc = yyGetReal(_Fc);
_Gc = yyGetReal(_Gc);
var bottom, top, right;
var _8H = [];
var _9H = _q8._YG;
right = _JH + _Fc - 1;
bottom = _KH + _Gc - 1;
for (var _i2 = 0; _i2 < _9H._Dl.length; _i2++) {
var _MH = false;
var _vn = _9H._Dl[_i2];
if (_vn._aH) _vn._bH();
var _cH = _vn._cH;
if ((_cH) && ((_vn._15 >= 0) || (_vn._xz >= 0))) {
if ((_JH > _cH.right) || (right < _cH.left) || (_KH > _cH.bottom) || (bottom < _cH.top)) {
_MH = true
}
} else {
if ((_vn.x > right) || (_vn.x < _JH) || (_vn.y > bottom) || (_vn.y < _KH)) {
_MH = true
}
}
if (_MH != yyGetBool(_LH)) _8H[_8H.length] = _vn
}
var _yH = _q8._zH;
for (_i2 = 0; _i2 < _8H.length; _i2++) {
if (_qm == _8H[_i2]) {
if (!yyGetBool(_jn)) {
_q8._AH(_8H[_i2])
}
} else {
_q8._AH(_8H[_i2])
}
}
}
function _v6(_qm, _NH) {
var _OH = _q8;
if (_OH == null) {
return -1
}
var _PH = null;
if ((typeof (_NH) === "string")) _PH = _QH._RH(_OH, yyGetString(_NH).toLowerCase());
else _PH = _QH._SH(_OH, yyGetInt32(_NH));
if (_PH === null) return;
for (var _nb = 0; _nb < _PH._TH.length; _nb++) {
var _UH = _PH._TH._ta(_nb);
if (_UH == null) continue;
if (_UH._VH == _WH) {
_OH._AH(_UH._XH)
}
}
}
function _z6(_gz, _NH) {
var _OH = _q8;
if (_OH == null) {
return -1
}
var _PH = null;
if ((typeof (_NH) === "string")) _PH = _QH._RH(_OH, yyGetString(_NH).toLowerCase());
else _PH = _QH._SH(_OH, yyGetInt32(_NH));
if (_PH === null) return;
for (var _nb = 0; _nb < _PH._TH.length; _nb++) {
var _UH = _PH._TH._ta(_nb);
if (_UH == null) continue;
if (_UH._VH == _WH) {
_OH._CH(_UH._XH)
}
}
}
function _y6(_qm, _JH, _KH, _Fc, _Gc, _LH) {
_JH = yyGetReal(_JH);
_KH = yyGetReal(_KH);
_Fc = yyGetReal(_Fc);
_Gc = yyGetReal(_Gc);
var _i2;
var bottom, top, right;
var _8H = [];
var _yH = _q8._zH;
right = _JH + _Fc - 1;
bottom = _KH + _Gc - 1;
for (var _i2 = 0; _i2 < _yH._Dl.length; _i2++) {
var _MH = false;
var _vn = _yH._Dl[_i2];
if (_vn._aH) _vn._bH();
var _cH = _vn._cH;
if ((_vn._15 >= 0) || (_vn._xz >= 0)) {
if (_cH.right < _JH || _cH.left > right || _cH.bottom < _KH || _cH.top > bottom) {
_MH = true
}
} else {
if ((_vn.x > right) || (_vn.x < _JH) || (_vn.y > bottom) || (_vn.y < _KH)) {
_MH = true
}
}
if (_MH != yyGetBool(_LH)) _8H[_8H.length] = _vn
}
var _9H = _q8._YG;
for (_i2 = 0; _i2 < _8H.length; _i2++) {
_q8._CH(_8H[_i2])
}
}
function _YH(_ZH) {
{
switch (yyGetInt32(_ZH)) {
case 0:
if (_Mk._Vi[0] || _Mk._Vi[1] || _Mk._Vi[2] || _Mk._Vi[3] || _Mk._Vi[4]) return 0;
else return 1;
case 1:
if (_Mk._Vi[0]) return 1;
else return 0;
case 2:
if (_Mk._Vi[1]) return 1;
else return 0;
case 3:
if (_Mk._Vi[2]) return 1;
else return 0;
case 4:
if (_Mk._Vi[3]) return 1;
else return 0;
case 5:
if (_Mk._Vi[4]) return 1;
else return 0;
case -1:
if (_Mk._Vi[0] || _Mk._Vi[1] || _Mk._Vi[2] || _Mk._Vi[3] || _Mk._Vi[4]) return 1;
else return 0
}
}
return 0
}
function __H(_ZH) {
{
switch (yyGetInt32(_ZH)) {
case 0:
if (_Mk._Qi[0] || _Mk._Qi[1] || _Mk._Qi[2] || _Mk._Qi[3] || _Mk._Qi[4]) return 0;
else return 1;
case 1:
if (_Mk._Qi[0]) return 1;
else return 0;
case 2:
if (_Mk._Qi[1]) return 1;
else return 0;
case 3:
if (_Mk._Qi[2]) return 1;
else return 0;
case 4:
if (_Mk._Qi[3]) return 1;
else return 0;
case 5:
if (_Mk._Qi[4]) return 1;
else return 0;
case -1:
if (_Mk._Qi[0] || _Mk._Qi[1] || _Mk._Qi[2] || _Mk._Qi[3] || _Mk._Qi[4]) return 1;
else return 0
}
}
return 0
}
function _0I(_ZH) {
{
switch (yyGetInt32(_ZH)) {
case 0:
if (_Mk._Ui[0] || _Mk._Ui[1] || _Mk._Ui[2] || _Mk._Ui[3] || _Mk._Ui[4]) return 0;
else return 1;
case 1:
if (_Mk._Ui[0]) return 1;
else return 0;
case 2:
if (_Mk._Ui[1]) return 1;
else return 0;
case 3:
if (_Mk._Ui[2]) return 1;
else return 0;
case 4:
if (_Mk._Ui[3]) return 1;
else return 0;
case 5:
if (_Mk._Ui[4]) return 1;
else return 0;
case -1:
if (_Mk._Ui[0] || _Mk._Ui[1] || _Mk._Ui[2] || _Mk._Ui[3] || _Mk._Ui[4]) return 1;
else return 0
}
return 0
}
}
function _1I(_2I) {
_2I = yyGetInt32(_2I);
if (_2I == -1) {
_1I(1);
_1I(2);
_1I(3)
} else if (_2I >= 1 && _2I <= 3) {
var _i2 = _2I - 1;
_Mk._Vi[_i2] = 0;
_Mk._Qi[_i2] = 0;
_Mk._Ui[_i2] = 0;
_Pk &= ~(1 << _i2)
}
}
function _I4(_Il) {
return _Mk._3I[yyGetInt32(_Il)]
}
function _G4(_Il) {
return _Mk._4I[yyGetInt32(_Il)]
}
var _5I = 0,
_6I = 1,
_7I = 2,
_8I = 3,
_9I = 4,
_aI = 5;
var _bI = 0,
_cI = 1,
_WH = 2,
_dI = 3,
_eI = 4,
_fI = 5,
_gI = 6,
_hI = 7,
_iI = 8;
var _jI = 31;
var _kI = 29;
var _lI = 28;
var _mI = 30;
var _nI = (1 << _jI);
var _oI = (1 << _kI);
var _pI = (1 << _lI);
var _qI = (1 << _mI);
var _rI = _lI;
var _sI = (0x7 << _rI);
var _tI = 0x7;
var _uI = 0;
var _vI = (0x7ffff << _uI);
var _wI = (0x7ffff); /*@constructor */
function _xI() {
this._r2 = true;
this._yI = false;
this.index = 0;
this._zI = false;
this._AI = false;
this._BI = 1.0;
this._CI = 1.0;
this._V1 = false;
this._DI = 0;
this.alpha = 1.0;
this._t8 = _EI;
this._E1 = 0;
this._uz = 0;
this._tz = 0
}; /*@constructor */
function _FI() {
this._Ci = 0;
this._r3 = 0;
this._GI = 0;
this._HI = 0;
this._II = 0;
this._JI = 0;
this._KI = true;
this._LI = 0;
this._MI = "";
this._NI = null;
this._OI = null;
this._PI = -1;
this._QI = null;
this._TH = new _pl()
}; /*@constructor */ ; /*@constructor */ ; /*@constructor */
function _RI() {
this._SI = -1;
this._XH = null;
this._VH = _WH;
this._TI = false;
this._UI = ""
}; /*@constructor */
function _VI() {
this._WI = null;
this._VH = _cI;
this._TI = false;
this._UI = "";
this._Ci = 0
}; /*@constructor */
function _XI() {
this._VH = _fI;
this._YI = -1;
this._ZI = 0;
this.__I = 0;
this._0J = 0;
this._1J = 0;
this._2J = 0;
this._3J = [];
this._TI = false;
this._UI = "";
this._Ci = 0;
this._4J = ~_nI
}; /*@constructor */ ; /*@constructor */
function _5J() {
this._6J = -1;
this._7J = 1;
this._8J = _EI;
this._9J = 0;
this._aJ = 1;
this._bJ = 0;
this._cJ = 1;
this._dJ = 1;
this._eJ = 0;
this._fJ = 0xffffffff;
this._gJ = 1;
this._ZI = 0;
this.__I = 0;
this._VH = _eI;
this._UI = "";
this._Ci = 0;
this._TI = false
}; /*@constructor */
function _hJ() {
this._iJ = -1;
this._jJ = -1;
this._7J = 1;
this._kJ = 0;
this._fJ = 0xffffffff;
this._gJ = 1;
this._lJ = 1;
this._mJ = 1;
this._ZI = 0;
this.__I = 0;
this._nJ = 0;
this._VH = _iI;
this._UI = "";
this._Ci = 0;
this._TI = false;
this._oJ = null;
this._pJ = 0
}; /*@constructor */
function _qJ() {
this._VH = _gI;
this._rJ = -1;
this._UI = "";
this._Ci = 0;
this._TI = false
}; /*@constructor */
function _sJ() {
this._KI = true;
this._Kz = -1;
this._ZI = 0;
this.__I = 0;
this._tJ = 0;
this._uJ = 0;
this._cJ = 1.0;
this._dJ = 1.0;
this._eJ = 0.0;
this._fJ = 0xffffffff;
this._gJ = 1.0;
this._vJ = 0;
this._wJ = 0;
this._VH = _hI;
this._UI = "";
this._Ci = 0;
this._TI = false
};
var _xJ = 32; /*@constructor */
function _yJ() {
this._zJ = 0;
this._AJ = 0;
this._BJ = 0;
this._CJ = false;
this._DJ = 0xffffffff;
this._EJ = -1;
this._FJ = false;
this._GJ = 0;
this._HJ = null
};
_yJ.prototype._IJ = function () {
return this._zJ
};;
_yJ.prototype._JJ = function (_el) {
this._KJ = _el
};;;;
_yJ.prototype._LJ = function () {
return this._FJ
};;
_yJ.prototype._MJ = function () {
return this._GJ
};;
_yJ.prototype._NJ = function () {
return this._DJ
};;;
_yJ.prototype._OJ = function () {
if (!this._CJ) {
this._CJ = true
}
};;
_yJ.prototype._PJ = function (_QJ, _RJ) {
if (_RJ._WI != null) {
delete(_RJ._WI);
_RJ._WI = null
}
_QJ._TH._SJ(_RJ)
};;
_yJ.prototype._TJ = function (_QJ, _RJ, _UJ) {
if (_RJ._XH) {
_RJ._XH._VJ(false)
}
if (_UJ) {
if (_RJ._SI >= 0) {
var _gz = _ez._ta(_RJ._SI);
if (_gz != null) {
_E4(_gz)
}
}
}
_QJ._TH._SJ(_RJ)
};;
_yJ.prototype._WJ = function (_QJ,
_RJ) {
_QJ._TH._SJ(_RJ)
};;
_yJ.prototype._XJ = function (_QJ, _RJ) {
_QJ._TH._SJ(_RJ)
};;
_yJ.prototype._YJ = function (_QJ, _RJ) {
_QJ._TH._SJ(_RJ)
};;
_yJ.prototype._ZJ = function (_QJ, _RJ) {
_QJ._TH._SJ(_RJ)
};;
_yJ.prototype.__J = function (_QJ, _RJ) {
_QJ._TH._SJ(_RJ)
};
_yJ.prototype._0K = function (_QJ, _RJ) {
_QJ._TH._SJ(_RJ)
};;
_yJ.prototype._1K = function (_2K, _3K, _QJ, _4K, _5K) {
if (_2K == null) return;
var _Hh = _3K;
var _6K = _QJ;
if (_Hh === null) return;
this._7K(_Hh);
switch (_Hh._VH) {
case _cI:
this._PJ(_6K, _Hh);
break;
case _WH:
this._TJ(_6K, _Hh, _5K);
break;
case _dI:
this._WJ(_6K, _Hh);
break;
case _eI:
this._XJ(_6K, _Hh);
break;
case _fI:
this._YJ(_6K, _Hh);
break;
case _gI:
this._ZJ(_6K, _Hh);
break;
case _hI:
this.__J(_6K, _Hh);
break;
case _iI:
this._0K(_6K, _Hh);
break
};
return
};;
_yJ.prototype._8K = function (_2K, _9K, _4K, _5K) {
if (_2K == null) return;
var _Hh = null;
var _6K = null;
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
_6K = _2K._aK._ta(_i2);
_Hh = this._bK(_6K, _9K);
if (_Hh != null) break
}
if (_Hh === null) return;
this._7K(_Hh);
switch (_Hh._VH) {
case _cI:
this._PJ(_6K, _Hh);
break;
case _WH:
this._TJ(_6K,
_Hh, _5K);
break;
case _dI:
this._WJ(_6K, _Hh);
break;
case _eI:
this._XJ(_6K, _Hh);
break;
case _fI:
this._YJ(_6K, _Hh);
break;
case _gI:
this._ZJ(_6K, _Hh);
break;
case _hI:
this.__J(_6K, _Hh);
break;
case _iI:
this._0K(_6K, _Hh);
break
};
return
};;;
_yJ.prototype._cK = function () {
if (this._EJ == -1) return _q8;
var _OH = _dK._ta(this._EJ);
if (_OH == null) return _q8;
return _OH
};;;
_yJ.prototype._eK = function (_2K, _QJ, _RJ) {
_RJ._TI = true
};;
_yJ.prototype._fK = function (_2K, _QJ, _RJ) {
var _gz = _ez._ta(_RJ._SI);
if (_gz === null) return;
_RJ._XH = _gz;
_gz._gK = _QJ._Ci;
_gz._nH = true;
_gz._r3 = _QJ._r3;
_RJ._TI = true
};;
_yJ.prototype._hK = function (_2K, _QJ, _RJ) {
_RJ._TI = true
};;
_yJ.prototype._iK = function (_2K, _QJ, _RJ) {
_RJ._TI = true
};;
_yJ.prototype._jK = function (_2K, _QJ, _RJ) {
_RJ._TI = true
};;
_yJ.prototype._kK = function (_2K, _QJ, _RJ) {
_RJ._TI = true
};;
_yJ.prototype._lK = function (_2K, _QJ, _RJ) {
_RJ._TI = true
};;
_yJ.prototype._mK = function (_2K, _QJ, _RJ) {
var _nK = _oK._pK();
_nK._iJ = _RJ._iJ;
_nK._kJ = _RJ._kJ;
_nK._qK = _RJ._7J;
_2K._rK(_RJ._Ci);
_RJ._jJ = _nK.id;
_oK._sK(_nK, _qH);
_RJ._TI = true
};;
_yJ.prototype._tK = function (_2K,
_QJ, _RJ) {
if (_2K === null) return;
if (_QJ === null) return;
if (_RJ === null) return;
if (_RJ._TI) return;
switch (_RJ._VH) {
case _cI:
this._eK(_2K, _QJ, _RJ);
break;
case _WH:
this._fK(_2K, _QJ, _RJ);
break;
case _dI:
this._hK(_2K, _QJ, _RJ);
break;
case _eI:
this._iK(_2K, _QJ, _RJ);
break;
case _fI:
this._jK(_2K, _QJ, _RJ);
break;
case _gI:
this._kK(_2K, _QJ, _RJ);
break;
case _hI:
this._lK(_2K, _QJ, _RJ);
break;
case _iI:
this._mK(_2K, _QJ, _RJ);
break
}
};;
_yJ.prototype._JJ = function (_el) {
this._zJ = _el
};;
_yJ.prototype._uK = function (_2K) {
if ((_2K._aK === null) || (_2K._aK.length === 0)) return;
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
var _vK = _2K._aK._ta(_i2);
_vK._QI = _9D();
for (var _nb = 0; _nb < _vK._TH.length; _nb++) {
var _UH = _vK._TH._ta(_nb);
if (_UH == null) continue;
this._tK(_2K, _vK, _UH)
}
}
};;
_yJ.prototype._wK = function (_2K, _QJ, _RJ, _xK) {
if (_2K == null || _QJ == null || _RJ === null) return -1;
_RJ._Ci = this._yK();
_RJ._oJ = _QJ;
_QJ._TH._Vj(_RJ);
if (_xK) {
this._tK(_2K, _QJ, _RJ)
}
return _RJ._Ci
};;
_yJ.prototype._zK = function (_2K, _7m, _RJ, _xK, _AK) {
if (_2K == null || _RJ === null) return -1;
var _6K = this._BK(_2K, _7m, _AK);
if ((_6K == null) && (_AK)) {
_6K = this._CK(_2K, _7m)
}
if (_6K == null) {
return -1
}
return this._wK(_2K, _6K, _RJ, _xK)
};;
_yJ.prototype._RH = function (_2K, _J8) {
if (!_J8) return null;
_J8 = _J8.toLowerCase();
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
var _6K = _2K._aK._ta(_i2);
if (_6K === undefined || _6K === null) continue;
if (!_6K._MI) continue;
if (_6K._MI.toLowerCase() === _J8) {
return _6K
}
}
return null
};;;
_yJ.prototype._7K = function (_RJ) {
if (_RJ == null) return;
switch (_RJ._VH) {
case _cI: {
this._DK(_RJ)
}
break;
case _WH: {
this._EK(_RJ)
}
break;
case _dI: {
this._FK(_RJ)
}
break;
case _eI: {
this._GK(_RJ)
}
break;
case _fI: {
this._HK(_RJ)
}
break;
case _gI: {
this._IK(_RJ)
}
break;
case _hI: {
this._JK(_RJ)
}
break;
case _iI: {
this._KK(_RJ)
}
break
}
_RJ._TI = false
};;
_yJ.prototype._DK = function (_LK) {};;
_yJ.prototype._EK = function (_MK) {
var _gz = _ez._ta(_MK._SI);
if (_gz != null) {
_gz._VJ(false)
}
_MK._XH = null
};;
_yJ.prototype._FK = function (_NK) {};;
_yJ.prototype._GK = function (_OK) {};;
_yJ.prototype._HK = function (_NK) {};;
_yJ.prototype._IK = function (_PK) {};;
_yJ.prototype._JK = function (_QK) {};;
_yJ.prototype._KK = function (_RK) {
if (_q8 != null) {
_q8._SK(_RK._Ci)
}
var _nK = _oK._TK(_RK._jJ);
_oK._sK(_nK, _3H);
_nK._UK();
_nK._VK();
_oK._WK(_RK._jJ)
};;
_yJ.prototype._CK = function (_2K, _7m) {
var _XK = new _FI();
_XK._Ci = _QH._YK();
_XK._r3 = _7m;
_XK._LI = true;
_q8._aK._Vj(_XK);
return _XK
};;
_yJ.prototype._ZK = function (_2K, _qm) {
if (_2K == null || _qm === null) return;
if (_qm.__K() === false) {
if (_qm._gK == -1) {
var _QJ = this._BK(_2K, _qm._r3, true);
if (_QJ === null) {
_QJ = this._CK(_2K, _qm._r3)
}
this._0L(_2K, _QJ, _qm)
} else {
var _6K = this._SH(_2K, _qm._gK);
if (_6K === null) return;
this._0L(_2K, _6K, _qm)
}
}
};;
_yJ.prototype._0L = function (_2K, _QJ, _qm) {
if (_2K == null || _QJ == null || _qm === null) return;
if (_qm.__K() === false) {
var _1L = new _RI();
_1L._SI = _qm.id;
_1L._XH = _qm;
_qm._gK = _QJ._Ci;
_qm._VJ(true);
_1L._TI = true;
_QH._wK(_2K, _QJ, _1L, false)
}
};;
_yJ.prototype._2L = function (_2K, _qm) {
if (_qm.__K() === false) return;
var _6K = this._SH(_2K, _qm._gK);
if (_6K === null) {
_qm._VJ(false);
return
}
this._3L(_2K, _6K, _qm)
};;
_yJ.prototype._4L = function (_2K, _qm) {
if (_2K == null || _qm === null) return;
if (_qm.__K() === true) {
for (var _nb = 0; _nb < _2K._aK.length; _nb++) {
var _6K = _2K._aK._ta(_nb);
for (var _i2 = 0; _i2 < _6K._TH.length; _i2++) {
var _UH = _6K._TH._ta(_i2);
if (_UH != null) {
if (_UH._VH == _WH) {
if (_UH._XH == _qm) {
this._1K(_2K, _UH, _6K, true, false);
_qm._VJ(false);
_qm._gK = -1;
return
}
}
}
}
}
}
};;
_yJ.prototype._3L = function (_2K, _QJ, _qm) {
if (_2K == null || _QJ == null || _qm === null) return;
if (_qm.__K() === true) {
for (var _i2 = 0; _i2 < _QJ._TH.length; _i2++) {
var _UH = _QJ._TH._ta(_i2);
if (_UH != null) {
if (_UH._VH == _WH) {
if (_UH._XH == _qm) {
this._1K(_2K, _UH, _QJ, true, false);
_qm._VJ(false);
_qm._gK = -1
}
}
}
}
}
};;
_yJ.prototype._5L = function (_2K,
_6L) {
if (_2K == null) return;
for (var _nb = 0; _nb < _2K._aK.length; _nb++) {
var _6K = _2K._aK._ta(_nb);
for (var _i2 = 0; _i2 < _6K._TH.length; _i2++) {
var _UH = _6K._TH._ta(_i2);
if (_UH != null) {
if (_UH._VH == _WH) {
if (_UH._SI == _6L) {
this._1K(_2K, _UH, _6K, true, false);
return
}
}
}
}
}
};;;
_yJ.prototype._7L = function (_2K, _7m, _J8) {
if (_2K == null) return null;
var _XK = new _FI();
_XK._Ci = this._YK();
_XK._r3 = _7m;
_XK._MI = _J8;
_XK._LI = false;
_2K._aK._Vj(_XK);
return _XK
};;
_yJ.prototype._8L = function (_2K, _9L, _5K) {
if (_5K == undefined) {
_5K = true
}
var _6K = this._SH(_2K,
_9L);
if (_6K != null) {
for (var _i2 = 0; _i2 < _6K._TH.length; _i2++) {
var _UH = _6K._TH._ta(_i2);
if (_UH != null) {
this._1K(_2K, _UH, _6K, false, _5K)
}
}
_2K._aK._aL(_6K)
}
};;
_yJ.prototype._bL = function (_2K, _QJ, _cL, _dL) {
if (_2K == null) return;
if (_QJ == null) return;
if (_cL == _QJ._r3) return;
var _eL = _QJ._r3;
_QJ._r3 = _cL;
_2K._aK._aL(_QJ);
_2K._aK._Vj(_QJ);
if (_QJ._LI && _dL) {
var _fL = [];
var _gL = 0;
var _hL = _2K._aK._iL(_QJ);
if (_hL != -1) {
var _jL = _hL - 1;
while (_jL >= 0) {
var _kL = _2K._aK._ta(_jL);
if ((_kL == null) || (_kL._r3 == _QJ._r3)) {
if (_kL != null) {
if (_kL._LI) {
_fL[_gL++] = _kL
}
}
_jL--
} else {
break
}
};
_jL = _hL + 1;
while (_jL < _2K._aK.length) {
var _kL = _2K._aK._ta(_jL);
if ((_kL == null) || (_kL._r3 == _QJ._r3)) {
if (_kL != null) {
if (_kL._LI) {
_fL[_gL++] = _kL
}
}
_jL++
} else {
break
}
};
for (var _i2 = 0; _i2 < _gL; _i2++) {
var _lL = _fL[_i2];
for (var _nb = 0; _nb < _lL._TH.length; _nb++) {
var _UH = _lL._TH._ta(_nb);
if (_UH == null) continue;
if (_UH._VH == _WH) {
if (_UH._XH != null) {
_UH._XH._gK = _QJ._Ci
}
}
_QJ._TH._Vj(_UH)
}
_lL._TH._bk();
_QH._8L(_2K, _lL._Ci, false);
}
}
}
};;
_yJ.prototype._BK = function (_2K, _7m, _mL) {
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
var _6K = _2K._aK._ta(_i2);
if ((_6K._r3 === _7m) && (!_mL || (_6K._LI))) return _6K
}
return null
};;
_yJ.prototype._SH = function (_2K, _el) {
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
var _6K = _2K._aK._ta(_i2);
if (_6K._Ci === _el) return _6K
}
return null
};;
_yJ.prototype._YK = function () {
if (this._AJ < this._zJ) this._AJ = this._zJ;
this._AJ++;
return this._AJ
};;
_yJ.prototype._yK = function () {
return this._BJ++
};;
_yJ.prototype._nL = function (_2K, _oL) {
if (_2K == null) return null;
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
var _6K = _2K._aK._ta(_i2);
var _Hh = _QH._bK(_6K,
_oL);
if (_Hh != null) return _Hh
}
return null
};;
_yJ.prototype._pL = function (_2K, _oL) {
if (_2K == null) return null;
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
var _6K = _2K._aK._ta(_i2);
var _Hh = _QH._bK(_6K, _oL);
if (_Hh != null) {
var _qL = new _rL();
_qL._Hh = _Hh;
_qL._6K = _6K;
return _qL
}
}
return null
};;
_yJ.prototype._bK = function (_QJ, _sL) {
if (_QJ == null) return null;
for (var _i2 = 0; _i2 < _QJ._TH.length; _i2++) {
var _UH = _QJ._TH._ta(_i2);
if (_UH == null) continue;
if (_UH._Ci === _sL) {
return _UH
}
}
return null
};;;
_yJ.prototype._tL = function (_2K, _6L) {
if (_2K == null) return null;
for (var _i2 = 0; _i2 < _2K._aK.length; _i2++) {
var _6K = _2K._aK._ta(_i2);
if (_6K != null) {
for (var _nb = 0; _nb < _6K._TH.length; _nb++) {
var _UH = _6K._TH._ta(_nb);
if (_UH != null) {
if (_UH._VH == _WH) {
if (_UH._SI == _6L) {
var _qL = new _rL();
_qL._Hh = _UH;
_qL._6K = _6K;
return _qL
}
}
}
}
}
}
return null
};;;
_yJ.prototype._uL = function () {
if (_q8._aK === null || _q8._aK.length === 0) return;
var _vL = _q8._aK.length;
var time = _9D();
for (var _i2 = 0; _i2 < _vL; _i2++) {
var _6K = _q8._aK._ta(_i2);
var _wL = time - _6K._QI;
if (_wL > 2000000) _wL = 0;
_6K._GI += _6K._II;
_6K._HI += _6K._JI;
for (var _nb = 0; _nb < _6K._TH.length; _nb++) {
var _UH = _6K._TH._ta(_nb);
if (_UH == null) continue;
var type = _UH._VH;
if (type == _cI) {
var _Sm = _UH._WI;
if (_Sm != null) {
if (_Sm._t8 == _u8) {
_Sm._tz += _Sm._uz * _Sm._E1
} else {
var _xL = _v8._w8();
_Sm._tz += (_Sm._uz * _Sm._E1) / _xL
}
}
} else if (type == _eI) {
var _yL = _sa._ta(_UH._6J);
if (_yL._H1 != null) {
var _zL = _UH._9J;
var _xL = (_yL._t8 == _EI) ? _v8._w8() : 1.0;
_UH._9J += _UH._aJ * (_yL._E1 / _xL) * _UH._7J;
var _AL = {
_BL: _UH._9J,
_CL: _UH._aJ,
_DL: false
};
_EL(_yL._H1, _AL);
_UH._9J = _AL._BL;
_UH._aJ = _AL._CL;
if ((_yL._H1._FL != null) && (_yL._H1._FL[0]._VH == _GL)) {
var _HL = _yL._H1._FL[0];
var _IL = _HL._JL._KL(_UH._9J, _yL._H1._LL);
if (_IL == null) {
_UH._bJ = -1
} else {
_UH._bJ = _IL._ML[0]._bJ
}
_NL(_yL._H1, _UH._Ci, _xL, _yL._E1, _UH._aJ, _zL, _UH._9J)
}
} else if (_yL._4G !== undefined) {
_UH._bJ += _UH._7J
} else {
if (_UH._8J == _u8) {
_UH._bJ += _UH._7J
} else {
var _xL = _v8._w8();
_UH._bJ += _UH._7J / _xL
}
}
} else if (type == _fI) {
var _OL = _Pm._Qm(_UH._YI);
if (_OL != null) {
if (_OL._PL > 0) _UH._2J = Math.floor((time / _OL._PL) % _OL.frames);
else _UH._2J = (_UH._2J + 1) % _OL.frames
}
}
}
_6K._QI = _9D()
}
};;
_yJ.prototype._QL = function (_2K) {
if (_2K == null) return;
if (_2K._aK == null) return;
var _PH, _Dl;
_Dl = _2K._aK._Dl;
while (_Dl.length > 0) {
_PH = _Dl[0];
if (_PH == null) {
continue
}
this._8L(_2K, _PH._Ci, false)
}
};;
_yJ.prototype._RL = function (_2K, _SL) {
if (_2K === null) return;
if (_SL === null) return;
if (!this._CJ) this._OJ();
var _TL = _2K._UL;
var _VL = _2K._WL;
var _vL = _SL.length; {
var _PH;
for (var _nb = _vL - 1; _nb >= 0; _nb--) {
_PH = _SL[_nb];
var _XK = new _FI();
if (_PH._v1 != undefined) _XK._MI = _PH._v1;
if (_PH.id != undefined) _XK._Ci = _PH.id;
if (_PH._r3 != undefined) _XK._r3 = _PH._r3;
if (_PH.x != undefined) _XK._GI = _PH.x;
if (_PH.y != undefined) _XK._HI = _PH.y;
if (_PH._s3 != undefined) _XK._II = _PH._s3;
if (_PH._t3 != undefined) _XK._JI = _PH._t3;
if (_PH._r2 != undefined) _XK._KI = _PH._r2;
if (_PH.type === _6I) {
var _XL = new _VI();
_XL._WI = new _xI();
var _YL;
_XL._WI._uz = 1.0;
if (_PH._w3 != undefined) _XL._WI._r2 = _PH._w3;
if (_PH._x3 != undefined) _XL._WI._yI = _PH._x3;
if (_PH._y3 != undefined) _XL._WI.index = _PH._y3;
if (_PH._z3 != undefined) _XL._WI._zI = _PH._z3;
if (_PH._A3 != undefined) _XL._WI._AI = _PH._A3;
if (_PH._C3 != undefined) {
_XL._WI._DI = _4h(_PH._C3);
_XL._WI.alpha = ((_PH._C3 >> 24) & 0xff) / 255.0
}
if (_PH._t8 != undefined) _XL._WI._t8 = _PH._t8;
if (_PH._E3 != undefined) _XL._WI._E1 = _PH._E3;
if (_PH._v1 != undefined) _XL._UI = _PH._v1;
if ((_PH._B3 != undefined)) {
_XL._WI._V1 = _PH._B3
}
if ((_PH._B3 != undefined) && (_PH._B3 == true) && (_JC(_XL._WI.index))) {
var value = _ZL(_XL._WI.index);
if (value > 0) _XL._WI._BI = _TL / value;
value = __L(_XL._WI.index);
if (value > 0) _XL._WI._CI = _VL / value
}
this._wK(_2K, _XK, _XL)
} else if (_PH.type === _7I) {
var _0M = 0;
if (_PH._u3 != undefined) _0M = _PH._u3;
for (var _i2 = 0; _i2 < _0M; _i2++) {
var _1L = new _RI();
_1L._SI = _PH._v3[_i2];
this._wK(_2K, _XK, _1L, false)
}
} else if (_PH.type === _8I) {
var _1M = 0;
if (_PH._2M != undefined) _1M = _PH._2M;
if (_1M > 0) {
var _i2;
for (_i2 = 0; _i2 < _1M; _i2++) {
var _3M = new _sJ();
if (_PH._4M[_i2]._5M != undefined) _3M._ZI = _PH._4M[_i2]._5M;
if (_PH._4M[_i2]._6M != undefined) _3M.__I = _PH._4M[_i2]._6M;
if (_PH._4M[_i2]._7M != undefined) _3M._Kz = _PH._4M[_i2]._7M;
if (_PH._4M[_i2]._8M != undefined) _3M._vJ = _PH._4M[_i2]._8M;
if (_PH._4M[_i2]._9M != undefined) _3M._wJ = _PH._4M[_i2]._9M;
if (_PH._4M[_i2]._aM != undefined) _3M._tJ = _PH._4M[_i2]._aM;
if (_PH._4M[_i2]._bM != undefined) _3M._uJ = _PH._4M[_i2]._bM;
if (_PH._4M[_i2]._cM != undefined) _3M._dM = _PH._4M[_i2]._cM;
if (_PH._4M[_i2]._eM != undefined) _3M._fM = _PH._4M[_i2]._eM;
if (_PH._4M[_i2]._gM != undefined) {
_3M._hM = _PH._4M[_i2]._gM & 0xffffff;
_3M._iM = ((_PH._4M[_i2]._gM >> 24) & 0xff) / 255.0
}
this._wK(_2K, _XK, _3M, false)
}
}
var _jM = 0;
if (_PH._kM != undefined) _jM = _PH._kM;
if (_jM > 0) {
for (var _i2 = 0; _i2 < _jM; _i2++) {
var _lM = new _5J();
_lM._8J = _EI;
_lM._6J = _PH._mM[_i2]._nM;
_lM._9J = _PH._mM[_i2]._oM;
_lM._aJ = 1.0;
if (_PH._mM[_i2]._pM != undefined) _lM._8J = _PH._mM[_i2]._pM;
_lM._7J = _PH._mM[_i2]._qM;
_lM._bJ = _PH._mM[_i2]._oM;
_lM._cJ = _PH._mM[_i2]._rM;
_lM._dJ = _PH._mM[_i2]._sM;
_lM._eJ = _PH._mM[_i2]._tM;
_lM._fJ = _4h(_PH._mM[_i2]._uM & 0xffffff);
_lM._gJ = ((_PH._mM[_i2]._uM >> 24) & 0xff) / 255.0;
_lM._ZI = _PH._mM[_i2]._vM;
_lM.__I = _PH._mM[_i2]._wM;
_lM._UI = _PH._mM[_i2]._xM;
this._wK(_2K, _XK, _lM, false)
}
}
var _yM = 0;
if (_PH._zM != undefined) _yM = _PH._zM;
if (_yM > 0) {
for (var _i2 = 0; _i2 < _yM; _i2++) {
var _AM = new _hJ();
_AM._iJ = _PH._BM[_i2]._nM;
_AM._kJ = _PH._BM[_i2]._CM;
_AM._DM = _PH._BM[_i2]._uM;
_AM._lJ = _PH._BM[_i2]._rM;
_AM._mJ = _PH._BM[_i2]._sM;
_AM._ZI = _PH._BM[_i2]._vM;
_AM.__I = _PH._BM[_i2]._wM;
_AM._nJ = _PH._BM[_i2]._tM;
_AM._UI = _PH._BM[_i2]._xM;
_AM._oJ = _XK;
_AM._7J = _PH._BM[_i2]._qM;
this._wK(_2K, _XK, _AM, false)
}
}
} else if (_PH.type === _9I) {
var _EM = new _XI();
_EM._YI = _PH._FM;
_EM._0J = _PH._GM;
_EM._1J = _PH._HM;
_EM._3J = [];
var _1M = 0;
if (_PH._IM != undefined) _1M = _PH._IM;
for (var _i2 = 0; _i2 < _1M; _i2++) {
_EM._3J[_i2] = _PH._JM[_i2]
}
if (_PH._v1 != undefined) _EM._UI = _PH._v1;
this._wK(_2K, _XK, _EM, false)
}
_2K._aK._Vj(_XK);
this._JJ(_hb(this._IJ(), _XK._Ci))
}
}
};;
_yJ.prototype._KM = function (_qm) {
this._HJ = _qm
};;
_yJ.prototype._LM = function () {
return this._HJ
};;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; /*@constructor */
function _rL() {
this._Hh = -1;
this._6K = -1
};;;;;;;;;;;;;;;;;;;
function _E7(_gz, _NH, _MM, _NM) {
var _OH = _QH._cK();
if (_OH == null) {
return 0
}
var _UH = _QH._nL(_OH, yyGetInt32(_NH));
if ((_UH != null) && (_UH._VH === _fI)) {
var x = yyGetReal(_MM);
var y = yyGetReal(_NM);
var _r3 = _gz._r3;
_OH._OM(_aG, null, _UH, x, y, _r3)
}
};;;;;;;;;;;;
function _H4(_ba, _ca, _PM, _Tl) {
_Tl = yyGetInt32(_Tl);
var _cz = _b8._ta(_Tl);
if (!_cz) {
_hl("Error: Trying to create an instance using non-existent object type (" + _Tl + ")");
return _ln
}
var _6K = -1;
if (typeof (_PM) == "string") _6K = _QH._RH(_q8, yyGetString(_PM));
else _6K = _QH._SH(_q8, yyGetInt32(_PM));
if (_6K != null && _6K != -1) {
var _vn = _q8._QM(yyGetReal(_ba), yyGetReal(_ca), _6K, _Tl);
_vn._Ca(_pH, 0, _vn, _vn);
_vn._Ca(_qH, 0, _vn, _vn);
return _vn.id
} else {
_hl("Error: Trying to create an instance on a non-existant layer")
}
return _ln
};;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
var _RM = 0x7fff;
var g_GMLMathEpsilon = 1e-5;
function floor(_z8) {
return Math.floor(yyGetReal(_z8))
}
function _SM(_TM) {
_TM = yyGetReal(_TM);
var _i2 = Math.sign(_TM) * Math.floor(Math.abs(_TM));
if (_TM < 0) {
var _7z = _TM - _i2;
if ((_i2 & 1) == 1) {
if (_7z <= -0.5) {
return _i2 - 1
} else {
return _i2
}
} else {
if (_7z >= -0.5) {
return _i2
} else {
return _i2 - 1
}
}
} else {
var _7z = _TM - _i2;
if ((_i2 & 1) == 1) {
if (_7z >= 0.5) {
return _i2 + 1
} else {
return _i2
}
} else {
if (_7z <= 0.5) {
return _i2
} else {
return _i2 + 1
}
}
}
}
var round = _SM;
var _Cl = _SM;
function abs(_TM) {
return Math.abs(yyGetReal(_TM))
}
function cos(_TM) {
var _ba = Math.cos(yyGetReal(_TM));
var _jb = ~~(_ba * 0x1000000);
_ba = _jb / 0x1000000;
return _ba
}
function sin(_TM) {
var _ba = Math.sin(yyGetReal(_TM));
var _jb = ~~(_ba * 0x1000000);
_ba = _jb / 0x1000000;
return _ba
}
function tan(_TM) {
var _ba = Math.tan(yyGetReal(_TM));
var _jb = ~~(_ba * 0x1000000);
_ba = _jb / 0x1000000;
return _ba
}
function _UM(_xb, _yb, _Za, __a) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
var x = _Za - _xb;
var y = __a - _yb;
if (x === 0) {
if (y > 0) return 270.0;
else if (y < 0) return 90.0;
else return 0.0
} else {
var _vF = 180.0 * Math.atan2(y, x) / _lb;
_vF = (~~round(_vF * 1000000)) / 1000000.0;
if (_vF <= 0.0) {
return -_vF
} else {
return (360.0 - _vF)
}
}
}
function _VM(_xb, _yb, _Za, __a) {
return _UM(_xb, _yb, _Za, __a)
}
function _ib(_TM, _OD) {
if (_TM < _OD) return _TM;
else return _OD
}
function _hb(_TM, _OD) {
if (_TM > _OD) return _TM;
else return _OD
}
function max() {
var _xl = arguments;
var _yl = arguments.length;
if (_yl == 0) return 0;
var _5b = yyGetReal(_xl[0]);
for (var _i2 = 1; _i2 < _yl; _i2++) {
var _WM = yyGetReal(_xl[_i2]);
if (_5b < _WM) _5b = _WM
}
return _5b
}
function min() {
var _xl = arguments;
var _yl = arguments.length;
if (_yl == 0) return 0;
var _5b = yyGetReal(_xl[0]);
for (var _i2 = 1; _i2 < _yl; _i2++) {
var _WM = yyGetReal(_xl[_i2]);
if (_5b > _WM) _5b = _WM
}
return _5b
}
var state = [];
var _XM = 0;
var _YM = _ZM(0);
var __M = 0xDA442D24;
function _ZM(_0N) {
var _wy = _0N;
for (var _i2 = 0; _i2 < 16; _i2++) {
_wy = (((_wy * 214013 + 2531011) >> 16) & 0x7fffffff) | 0;
state[_i2] = ~~_wy
}
_XM = 0;
_YM = _0N;
return _YM
}
function _1N() {
var _a9, _99, _j2, _Xn;
_a9 = state[_XM];
_j2 = state[(_XM + 13) & 15];
_99 = _a9 ^ _j2 ^ (_a9 << 16) ^ (_j2 << 15);
_j2 = state[(_XM + 9) & 15];
_j2 ^= (_j2 >> 11);
_a9 = state[_XM] = _99 ^ _j2;
_Xn = _a9 ^ ((_a9 << 5) & __M);
_XM = (_XM + 15) & 15;
_a9 = state[_XM];
state[_XM] = _a9 ^ _99 ^ _Xn ^ (_a9 << 2) ^ (_99 << 18) ^ (_j2 << 28);
return ((state[_XM] & 0x7fffffff) / 2147483647.0)
}
function random(_6h) {
var _79 = _1N();
return _79 * yyGetReal(_6h)
}
function _l5() {
var _Xn = new Date();
var _jb = _Xn.getMilliseconds();
_jb = (_jb & 0xffffffff) ^ ((_jb >> 16) & 0xffff) ^ ((_jb << 16) & 0xffff0000);
return _ZM(_jb)
}
var _2N = _l5;
function _45(_3N, _4N) {
_3N = yyGetInt32(_3N);
_4N = yyGetInt32(_4N);
var _5N, _6N;
if (_3N > _4N) {
_5N = _4N;
_6N = _3N
} else {
_5N = _3N;
_6N = _4N
}
var _6b = _5N | 0;
var _8b = _6N | 0;
var result = _6b + ~~random(_8b - _6b + 1);
return result
}
function _25() {
var _xl = arguments;
var _yl = arguments.length;
if (_yl == 0) return 0;
var index = Math.floor(random(_yl));
return _xl[index];
}
function sign(_ba) {
_ba = yyGetReal(_ba);
if (_ba == 0) return 0;
if (_ba < 0) return -1;
return 1
}
function ceil(_ba) {
return Math.ceil(yyGetReal(_ba))
}
function _C8(_ba) {
_ba = yyGetReal(_ba);
return _ba - ~~_ba
}
function sqrt(_ba) {
_ba = yyGetReal(_ba);
if (_ba >= 0) return Math.sqrt(_ba);
else _hl("Cannot apply sqrt to negative number.")
}
function _Hb(_ba) {
_ba = yyGetReal(_ba);
return _ba * _ba
}
function _7N(_ba, _8N) {
return Math.pow(yyGetReal(_ba), yyGetReal(_8N))
}
function exp(_ba) {
return Math.exp(yyGetReal(_ba))
}
function _9N(_ba) {
return Math.log(yyGetReal(_ba)) / Math.LN2
}
var _aN = Math.atan2;
function _bN() {
var _xl = _bN.arguments;
var _yl = _bN.arguments.length;
if (_yl == 0) return 0;
var _5b = yyGetReal(_xl[0]);
for (var _i2 = 1; _i2 < _yl; _i2++) {
_5b += yyGetReal(_xl[_i2])
}
return (_5b / _yl)
}
function _cN() {
var _xl = _cN.arguments;
var _yl = _cN.arguments.length;
if (_yl == 0) return 0;
var _Va = [];
for (var _i2 = 0; _i2 < _yl; _i2++) {
_Va[_i2] = yyGetReal(_xl[_i2])
}
_Va.sort(function (_a9, _99) {
return _a9 - _99
});
return _Va[~~(_yl / 2)]
}
function _dN(_xb, _yb, _Za, __a) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
var _eN = Math.sqrt(_xb * _xb + _yb * _yb);
var _fN = Math.sqrt(_Za * _Za + __a * __a);
return (_xb * _Za + _yb * __a) / (_eN * _fN)
}
var _gN = _dN;
function _hN(_xb, _yb, _iN, _Za, __a, _jN) {
_xb = yyGetReal(_xb);
_yb = yyGetReal(_yb);
_iN = yyGetReal(_iN);
_Za = yyGetReal(_Za);
__a = yyGetReal(__a);
_jN = yyGetReal(_jN);
var _eN = Math.sqrt(_xb * _xb + _yb * _yb + _iN * _iN);
var _fN = Math.sqrt(_Za * _Za + __a * __a + _jN * _jN);
return (_xb * _Za + _yb * __a + _iN * _jN) / (_eN * _fN)
}
var _kN = _hN;
function _lN(_ba) {
if (typeof (_ba) == "undefined") return 1;
else return 0
}
function _mN(_ba) {
var _i9 = undefined;
if (_ba instanceof Array) {
_i9 = _ba.length
}
return _i9
}
var _nN = _mN;
function _oN(_Gw, _pN, _qN) {
_Gw = yyGetReal(_Gw);
_pN = yyGetReal(_pN);
_qN = yyGetReal(_qN);
if (_Gw < _pN) _Gw = _pN;
if (_Gw > _qN) _Gw = _qN;
return _Gw
}
function _rN(_sN, _tN, _aE) {
_sN = yyGetReal(_sN);
_tN = yyGetReal(_tN);
return _sN + ((_tN - _sN) * _aE)
}
function _uN(_sN, _tN) {
var _7z = _sN - _tN;
return abs(_7z) <= g_GMLMathEpsilon
}
var _vN = new RegExp('^' + '[-+]?' + '(?:[0-9]{0,30}\\.)?' + '[0-9]{1,30}' + '(?:[Ee][-+]?[1-2]?[0-9])?');
function yyCompareVal(_sN, _tN, _in, _wN) {
var _i9 = undefined;
_wN = (_wN == undefined) ? true : _wN;
if ((typeof _sN == "number") && (typeof _tN == "number")) {
var _7z = _sN - _tN;
if (Number.isNaN(_7z)) {
_7z = (_sN == _tN) ? 0 : _7z
}
_i9 = abs(_7z) <= _in ? 0 : (_7z < 0.0) ? -1 : 1
} else if (typeof _sN == "string" && typeof _tN == "string") {
_i9 = (_sN === _tN) ? 0 : ((_sN > _tN) ? 1 : -1)
} else if (_sN === undefined && _tN === undefined) {
_i9 = 0
} else if (_sN instanceof ArrayBuffer && _tN instanceof ArrayBuffer) {
_i9 = _sN == _tN ? 0 : 1
} else if (_sN instanceof Array && _tN instanceof Array) {
_i9 = _sN.length - _tN.length;
if (_i9 == 0) {
_i9 = _sN === _tN ? 0 : 1
}
} else if (_sN instanceof Long && _tN instanceof Long) {
_i9 = (_sN.sub(_tN))._kA()
} else if ((_sN === undefined && _tN instanceof Array) || (_tN === undefined && _sN instanceof Array)) {
_i9 = 1
} else if (typeof _sN == "object" && typeof _tN == "object" && _sN._gy && _tN._gy) {
_i9 = _sN == _tN ? 0 : 1
} else if (typeof _sN == "function" && typeof _tN == "function") {
_i9 = _sN == _tN ? 0 : 1
}
if (_i9 === undefined) {
if (typeof _sN == "boolean") {
_sN = _sN ? 1 : 0
} else if (typeof _sN == "string") {
var match = _sN.match(_vN);
if (match != null) {
_sN = Number(match);
if (Number.isNaN(_sN)) _i9 = 1
} else _i9 = Number.NaN
} else if (_sN instanceof Long) {
_sN = _sN._kA()
} else if (_sN instanceof Array) {
_i9 = 1;
if (_wN) _hl("illegal array use")
} else if (_sN === undefined) {
_i9 = -2
}
if (typeof _tN == "boolean") {
_tN = _tN ? 1 : 0
} else if (typeof _tN == "string") {
var match = _tN.match(_vN);
if (match != null) {
_tN = Number(match);
if (Number.isNaN(_tN)) _i9 = 1
} else _i9 = Number.NaN
} else if (_tN instanceof Long) {
_tN = _tN._kA()
} else if (_tN instanceof Array) {
if (_wN) _hl("illegal array use")
} else if (_tN === undefined) {
_i9 = -2
}
if (_i9 === undefined) {
if ((typeof _sN == "number") && (typeof _tN == "number")) {
var _7z = _sN - _tN;
if (Number.isNaN(_7z)) {
_7z = (_sN == _tN) ? 0 : _7z
}
_i9 = abs(_7z) <= _in ? 0 : (_7z < 0.0) ? -1 : 1
} else {
_i9 = 1;
if (typeof _sN == "number") {
_i9 = -1
}
}
}
}
return _i9
}
function yyfplus(_sN, _tN) {
if (_sN instanceof Long && _tN instanceof Long) {
return _sN.add(_tN)
} else if (_sN instanceof Long) {
_sN = _sN._kA()
} else if (_tN instanceof Long) {
_tN = _tN._kA()
}
if ((typeof _sN === "string") && (typeof _tN === "string")) return _sN + _tN;
if ((typeof _sN === "string") && (typeof _tN !== "string")) _hl("unable to add string to " + typeof _tN);
return yyGetReal(_sN) + yyGetReal(_tN)
}
function yyfminus(_sN, _tN) {
if (_sN instanceof Long && _tN instanceof Long) {
return _sN.sub(_tN)
} else if (_sN instanceof Long) {
_sN = _sN._kA()
} else if (_tN instanceof Long) {
_tN = _tN._kA()
}
return yyGetReal(_sN) - yyGetReal(_tN)
}
function yyftime(_sN, _tN) {
if (_sN instanceof Long && _tN instanceof Long) {
return _sN._xN(_tN)
} else if (_sN instanceof Long) {
_sN = _sN._kA()
} else if (_tN instanceof Long) {
_tN = _tN._kA()
}
if ((typeof _sN === "number") && (typeof _tN === "string")) {
var _i9 = "";
for (var _3b = yyGetReal(_sN) - 1; _3b >= 0; --_3b) {
_i9 += _tN
}
return _i9
} else return yyGetReal(_sN) * yyGetReal(_tN)
}
function yyfdivide(_sN, _tN) {
if ((typeof _sN === "number") && (typeof _tN === "number")) {
return _sN / _tN
} else if (_sN instanceof Long && _tN instanceof Long) {
return _sN._Ey(_tN)
}
if (_sN instanceof Long) {
_sN = _sN._kA()
}
if (_tN instanceof Long) {
_tN = _tN._kA()
}
var _sf = yyGetReal(_sN);
var _Q9 = yyGetReal(_tN);
var _i9 = _sf / _Q9;
return _i9
}
function yyfmod(_sN, _tN) {
if ((_sN instanceof Long) && (_tN instanceof Long)) {
return _sN._yN(_tN)
}
if (_tN instanceof Long) {
_tN = _tN._kA();
}
if (_sN instanceof Long) {
_sN = _sN._kA()
}
var _Q9 = yyGetReal(_tN);
if (_Q9 == 0) {
_hl("unable to mod with zero")
}
return yyGetReal(_sN) % _Q9
}
function yyfdiv(_sN, _tN) {
if (_sN instanceof Long) {
return _sN._Ey(_tN)
} else if (_tN instanceof Long) {
_tN = _tN._kA()
}
if (_tN == 0) _hl("divide by zero");
var _sf = yyGetReal(_sN);
var _Q9 = yyGetReal(_tN);
var _zN = Number.isNaN(_sf);
var _AN = Number.isNaN(_Q9);
if (_zN || _AN) {
if (_zN && _AN) return 1;
if (_zN) {
if (Number.isFinite(_Q9)) return _sf;
else return 1
}
if (_AN) {
if (Number.isFinite(_sf)) return _Q9;
else return 1;
}
}
if (_sf === _Q9) return 1;
return ~~(~~_sf / ~~_Q9)
}
function yyfnotequal(_sN, _tN) {
var _i9 = yyCompareVal(_sN, _tN, g_GMLMathEpsilon,
false);
return _i9 != 0
}
function yyfequal(_sN, _tN) {
var _i9 = yyCompareVal(_sN, _tN, g_GMLMathEpsilon, false);
return _i9 == 0
}
function yyfless(_sN, _tN) {
var _i9 = yyCompareVal(_sN, _tN, g_GMLMathEpsilon);
if (Number.isNaN(_i9)) {
_hl("unable to compare " + _r5(_sN) + " to " + _r5(_tN))
}
return _i9 == -2 ? false : _i9 < 0
}
function yyflessequal(_sN, _tN) {
var _i9 = yyCompareVal(_sN, _tN, g_GMLMathEpsilon);
if (Number.isNaN(_i9)) {
_hl("unable to compare " + _r5(_sN) + " to " + _r5(_tN))
}
return _i9 == -2 ? false : _i9 <= 0
}
function yyfgreater(_sN, _tN) {
var _i9 = yyCompareVal(_sN,
_tN, g_GMLMathEpsilon);
if (Number.isNaN(_i9)) {
_hl("unable to compare " + _r5(_sN) + " to " + _r5(_tN))
}
return _i9 == -2 ? false : _i9 > 0
}
function yyfgreaterequal(_sN, _tN) {
var _i9 = yyCompareVal(_sN, _tN, g_GMLMathEpsilon);
if (Number.isNaN(_i9)) {
_hl("unable to compare " + _r5(_sN) + " to " + _r5(_tN))
}
return _i9 == -2 ? false : _i9 >= 0
}
function yyfand(_sN, _tN) {
return yyGetBool(_sN) && yyGetBool(_tN);
}
function yyfor(_sN, _tN) {
return yyGetBool(_sN) || yyGetBool(_tN)
}
function yyfxor(_sN, _tN) {
_tN = yyGetBool(_tN);
return yyGetBool(_sN) ? !_tN : _tN
}
function yyfbitand(_sN,
_tN) {
if ((typeof _sN === "number") && (typeof _tN === "number")) return _sN & _tN;
else if ((_sN instanceof Long) && (_tN instanceof Long)) {
return _sN._BN(_tN)
} else if (_sN instanceof Long) {
return _sN._BN(yyGetInt64(_tN))
} else if (_tN instanceof Long) {
return _tN._BN(yyGetInt64(_sN))
} else if (typeof _sN == "number") return _sN & yyGetInt32(_tN);
else if (typeof _tN == "number") return yyGetInt32(_sN) & _tN;
return yyGetInt32(_sN) & yyGetInt32(_tN)
}
function yyfbitor(_sN, _tN) {
if ((typeof _sN == "number") && (typeof _tN == "number")) return _sN | _tN;
else if ((_sN instanceof Long) && (_tN instanceof Long)) {
return _sN._CN(_tN)
} else if (_sN instanceof Long) {
return _sN._CN(yyGetInt64(_tN))
} else if (_tN instanceof Long) {
return _tN._CN(yyGetInt64(_sN))
} else if (typeof _sN == "number") return _sN | yyGetInt32(_tN);
else if (typeof _tN == "number") return yyGetInt32(_sN) | _tN;
return yyGetInt32(_sN) | yyGetInt32(_tN)
}
function yyfbitxor(_sN, _tN) {
if ((typeof _sN == "number") && (typeof _tN == "number")) return _sN ^ _tN;
else if ((_sN instanceof Long) && (_tN instanceof Long)) {
return _sN._DN(_tN)
} else if (_sN instanceof Long) {
return _sN._DN(yyGetInt64(_tN))
} else if (_tN instanceof Long) {
return _tN._DN(yyGetInt64(_sN))
} else if (typeof _sN == "number") return _sN ^ yyGetInt32(_tN);
else if (typeof _tN == "number") return yyGetInt32(_sN) ^ _tN;
return yyGetInt32(_sN) ^ yyGetInt32(_tN)
}
function yyfbitshiftleft(_sN, _ZH) {
var shift = yyGetInt32(_ZH);
if (typeof _sN == "number") {
_sN = new Long(_sN)
} else if (_sN instanceof Long) {} else {
_sN = yyGetInt64(_sN)
}
if (shift >= 64) return 0;
else return _sN._EN(shift)
}
function yyfbitshiftright(_sN, _ZH) {
var shift = yyGetInt32(_ZH);
if (typeof _sN == "number") {
_sN = new Long(_sN)
} else if (_sN instanceof Long) {} else {
_sN = yyGetInt64(_sN)
}
if (shift >= 64) return 0;
else return _sN._FN(shift)
}
var _GN = 30,
_HN = 10,
_IN = 3,
_JN = !0;
function _KN(_LN, _MN) {
var _1E = 0.0;
while (_LN <= 0.0) {
_LN = _LN + 360
}
while (_LN >= 360.0) {
_LN = _LN - 360
}
while (_MN < 0.0) {
_MN = _MN + 360
}
while (_MN >= 360.) {
_MN = _MN - 360
}
_1E = _MN - _LN;
if (_1E < 0) {
_1E = -_1E
}
if (_1E > 180) {
_1E = 360 - _1E
}
return _1E
}
function _NN(_hn, _ba, _ca, _ON, _PN) {
if (_ON == _IH) {
if (_PN) {
return _G5(_hn, _ba, _ca)
} else {
return _F5(_hn, _ba, _ca)
}
} else {
return (_j6(_hn, _ba, _ca, _ON) == _ln)
}
}
function _QN(_hn, _ba, _ca, _RN, _ON, _PN) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
_RN = yyGetReal(_RN);
_PN = yyGetBool(_PN);
var _1E = false;
var _zn = 0.0;
var _SN = 0.0;
var _TN = 0.0;
if ((_hn.x == _ba) && (_hn.y == _ca)) return true;
_zn = sqrt(_Ku(_hn.x - _ba) + _Ku(_hn.y - _ca));
if (_zn <= _RN) {
_SN = _ba;
_TN = _ca;
_1E = true
} else {
_SN = _hn.x + _RN * (_ba - _hn.x) / _zn;
_TN = _hn.y + _RN * (_ca - _hn.y) / _zn;
_1E = false
}
if (!_NN(_hn, _SN, _TN, _ON, _PN)) {
return _1E
}
_hn._35 = _UM(_hn.x, _hn.y, _SN, _TN);
_hn._Wh(_SN, _TN);
return _1E
}
function _X5(_hn, _ba, _ca, _RN, _PN) {
return _QN(_hn, _ba, _ca, _RN, _IH, _PN)
}
function _Z5(_hn, _ba, _ca, _RN, _Tl) {
return _QN(_hn,
_ba, _ca, _RN, _Tl, true)
}
function _UN(_dH, _hn, _eH, _ON, _PN) {
var _1E = false;
var _VN = 0.0;
var _WN = 0.0;
if (_KN(_dH, _hn._35) > _GN) {
return _1E
}
_VN = _hn.x + _eH * _IN * cos(_lb * _dH / 180);
_WN = _hn.y - _eH * _IN * sin(_lb * _dH / 180);
if (true != _NN(_hn, _VN, _WN, _ON, _PN)) {
return _1E
}
_VN = _hn.x + _eH * cos(_lb * _dH / 180);
_WN = _hn.y - _eH * sin(_lb * _dH / 180);
if (true != _NN(_hn, _VN, _WN, _ON, _PN)) {
return _1E
}
_hn._35 = _dH;
_hn._Wh(_VN, _WN);
_1E = true;
return _1E
}
function _XN(_hn, _ba, _ca, _RN, _6H, _PN) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
_RN = yyGetReal(_RN);
_6H = yyGetInt32(_6H);
_PN = yyGetBool(_PN);
var _1E = false;
var _zn = 0.0;
var _YN = 0.0;
var _ZN = 0.0;
if ((_hn.x == _ba) && (_hn.y == _ca)) {
_1E = true;
return _1E
}
_zn = sqrt(_Ku(_hn.x - _ba) + _Ku(_hn.y - _ca));
if (_zn <= _RN) {
if (_NN(_hn, _ba, _ca, _6H, _PN)) {
_hn._35 = _VM(_hn.x, _hn.y, _ba, _ca);
_hn._Wh(_ba, _ca)
}
_1E = true;
return _1E
}
_YN = _VM(_hn.x, _hn.y, _ba, _ca);
_ZN = 0;
_1E = false;
while (_ZN < 180) {
if (_UN(_YN - _ZN, _hn, _RN, _6H, _PN)) {
return _1E
}
if (_UN(_YN + _ZN, _hn, _RN, _6H, _PN)) {
return _1E
}
_ZN = _ZN + _HN
}
if (_JN) {
_hn._35 = _hn._35 + _GN
}
return _1E
}
function _16(_hn, _ba, _ca, _RN, _PN) {
return _XN(_hn,
_ba, _ca, _RN, _IH, _PN)
}
function _36(_hn, _ba, _ca, _RN, _Tl) {
return _XN(_hn, _ba, _ca, _RN, _Tl, true)
}
function _06(_hn, __N, _0O, _1O, _2O) {
_GN = _hb(1, yyGetReal(__N));
_HN = _hb(1, yyGetReal(_0O));
_IN = _hb(1, yyGetReal(_1O));
_JN = yyGetBool(_2O)
}
function _3O(_qm, _ba, _ca, _eH, _ON, _PN) {
var _1E = false;
var _zn = 0.0;
var _SN = 0.0;
var _TN = 0.0;
if ((_qm.x == _ba) && (_qm.y == _ca)) {
return true
}
_zn = Math.sqrt(_Ku(_qm.x - _ba) + _Ku(_qm.y - _ca));
if (_zn <= _eH) {
_SN = _ba;
_TN = _ca;
_1E = true
} else {
_SN = _qm.x + _eH * (_ba - _qm.x) / _zn;
_TN = _qm.y + _eH * (_ca - _qm.y) / _zn;
_1E = false
}
if (!_NN(_qm, _SN, _TN, _ON, _PN)) {
return _1E
}
_qm._35 = _VM(_qm.x, _qm.y, _SN, _TN);
_qm._Wh(_SN, _TN);
return _1E
}
function _4O(_hn, _5O, _6O, _7O, _RN, _ON, _PN) {
var _ob = 0.0;
var _qb = 0.0;
var _vF = 0.0;
var _8O = 0.0;
var _9O = 0.0;
var _1E = false;
var _aO = _bO._82[yyGetInt32(_5O)];
if (!_aO) return _1E;
if (_RN <= 0.0) return _1E;
_ob = _hn.x;
_qb = _hn.y;
_vF = _hn._35;
_aO._bk();
_aO._cO(_dO);
_aO._eO(false);
_aO._fO(_ob, _qb, 100);
_1E = true;
while (1) {
_8O = _hn.x;
_9O = _hn.y;
if (true == _3O(_hn, _6O, _7O, _RN, _ON, _PN)) {
break
}
if ((_hn.x == _8O) && (_hn.y == _9O)) {
_1E = false;
break
}
_aO._fO(_hn.x, _hn.y, 100)
}
if (true == _1E) {
_aO._fO(_6O, _7O, 100)
}
_hn._Wh(_ob, _qb);
_hn._35 = _vF;
return _1E
}
function _Y5(_hn, _5O, _6O, _7O, _RN, _PN) {
return _4O(_hn, yyGetInt32(_5O), yyGetReal(_6O), yyGetReal(_7O), yyGetReal(_RN), _IH, yyGetBool(_PN))
}
function __5(_hn, _5O, _6O, _7O, _RN, _Tl) {
return _4O(_hn, yyGetInt32(_5O), yyGetReal(_6O), yyGetReal(_7O), yyGetReal(_RN), yyGetInt32(_Tl), true)
}
function _KN(_LN, _MN) {
var _1E = 0.0;
while (_LN <= 0.0) {
_LN = _LN + 360.0
}
while (_LN >= 360.0) {
_LN = _LN - 360.0
}
while (_MN < 0.0) {
_MN = _MN + 360.0
}
while (_MN >= 360.0) {
_MN = _MN - 360.0
}
_1E = _MN - _LN;
if (_1E < 0.0) {
_1E = -_1E
}
if (_1E > 180.0) {
_1E = 360.0 - _1E
}
return _1E
}
function _UN(_dH, _qm, _eH, _ON, _PN) {
var _VN = 0.0;
var _WN = 0.0;
if (_KN(_dH, _qm._35) > _GN) {
return false;
}
_VN = _qm.x + _eH * _IN * Math.cos(Math.PI * _dH / 180.0);
_WN = _qm.y - _eH * _IN * Math.sin(Math.PI * _dH / 180.0);
if (!_NN(_qm, _VN, _WN, _ON, _PN)) {
return false
}
_VN = _qm.x + _eH * Math.cos(Math.PI * _dH / 180.0);
_WN = _qm.y - _eH * Math.sin(Math.PI * _dH / 180.0);
if (!_NN(_qm, _VN, _WN, _ON, _PN)) {
return false
}
_qm._35 = _dH;
_qm._Wh(_VN, _WN);
return true
}
function _gO(_qm, _ba, _ca,
_eH, _ON, _PN) {
var _1E = false;
var _zn = 0.0;
var _YN = 0.0;
var _ZN = 0.0;
if ((_qm.x == _ba) && (_qm.y == _ca)) {
return true
}
_zn = Math.sqrt(_Ku(_qm.x - _ba) + _Ku(_qm.y - _ca));
if (_zn <= _eH) {
if (true == _NN(_qm, _ba, _ca, _ON, _PN)) {
_qm._35 = _VM(_qm.x, _qm.y, _ba, _ca);
_qm._Wh(_ba, _ca)
}
return true
}
_YN = _VM(_qm.x, _qm.y, _ba, _ca);
_ZN = 0;
_1E = false;
while (_ZN < 180) {
if (_UN(_YN - _ZN, _qm, _eH, _ON, _PN)) {
return _1E
}
if (_UN(_YN + _ZN, _qm, _eH, _ON, _PN)) {
return _1E
}
_ZN = _ZN + _HN
}
if (_JN) {
_qm._35 = _qm._35 + _GN
}
return _1E
}
function _hO(_qm, _5O, _6O, _7O, _RN, _iO, _ON, _PN) {
var _1E = false;
var _jO = 0.0;
var _ob = 0.0;
var _qb = 0.0;
var _vF = 0.0;
var _aO = _bO._82[_5O];
if (!_aO) return _1E;
if (_iO < 1) {
return _1E
}
if (_RN <= 0) {
return _1E
}
_jO = Math.sqrt(_Ku(_6O - _qm.x) + _Ku(_7O - _qm.y)) * _iO;
_ob = _qm.x;
_qb = _qm.y;
_vF = _qm._35;
_aO._bk();
_aO._cO(_dO);
_aO._eO(false);
_aO._fO(_ob, _qb, 100);
_1E = true;
var _kO = 0;
var _lO = 0;
var _mO = 0;
while (1) {
if (true == _gO(_qm, _6O, _7O, _RN, _ON, _PN)) break;
_aO._fO(_qm.x, _qm.y, 100);
_kO = _lO;
_lO = _aO.length;
if (_lO > _jO) {
_1E = false;
break
}
if (_lO == _kO) {
++_mO;
if (_mO > 100) {
_1E = false;
break
}
} else {
_mO = 0
}
}
if (_1E) {
_aO._fO(_6O,
_7O, 100)
}
_qm._Wh(_ob, _qb);
_qm._35 = _vF;
return _1E
}
function _26(_hn, _5O, _6O, _7O, _RN, _nO, _PN) {
return _hO(_hn, yyGetInt32(_5O), yyGetReal(_6O), yyGetReal(_7O), yyGetReal(_RN), yyGetReal(_nO), _IH, yyGetBool(_PN))
}
function _46(_hn, _5O, _6O, _7O, _RN, _nO, _Tl) {
return _hO(_hn, yyGetInt32(_5O), yyGetReal(_6O), yyGetReal(_7O), yyGetReal(_RN), yyGetReal(_nO), yyGetInt32(_Tl), true)
} /*@constructor */
function _oO(_JH, _KH, _pO, _qO, _rO, _sO) {
this._tO = _JH;
this._uO = _KH;
this._vO = ~~_pO;
this._wO = ~~_qO;
this._xO = _rO;
this._yO = _sO;
this._zO = [];
this._bk()
};
_oO.prototype._bk = function () {
var _AO = this._vO * this._wO;
for (var _i2 = 0; _i2 < _AO; _i2++) {
this._zO[_i2] = 0
}
};;;;;
function _56(_qm, _el, _Tl, _in) {
var _BO = _CO._ta(yyGetInt32(_el));
if (_BO) {
var _DO = _S4(yyGetInt32(_Tl));
for (var _EO = 0; _EO < _DO.length; _EO++) {
var _vn = _DO[_EO];
if (_vn._4H || !_vn._5H) continue;
if (_vn._aH) _vn._bH();
var _nF = ~~((_vn._cH.left - _BO._tO) / _BO._xO);
if (_nF < 0) _nF = 0;
var _oF = ~~((_vn._cH.right - _BO._tO) / _BO._xO);
if (_oF >= _BO._vO) _oF = _BO._vO - 1;
var _pF = ~~((_vn._cH.top - _BO._uO) / _BO._yO);
if (_pF < 0) _pF = 0;
var _qF = ~~((_vn._cH.bottom - _BO._uO) / _BO._yO);
if (_qF >= _BO._wO) _qF = _BO._wO - 1;
for (var _i2 = _nF; _i2 <= _oF; _i2++) {
for (var _nb = _pF; _nb <= _qF; _nb++) {
if (!yyGetBool(_in)) {
_BO._zO[_i2 * _BO._wO + _nb] = -1;
continue
}
if (_BO._zO[_i2 * _BO._wO + _nb] < 0) continue;
if (_vn._Cn(_BO._tO + _i2 * _BO._xO, _BO._uO + _nb * _BO._yO, _BO._tO + (_i2 + 1) * _BO._xO - 1, _BO._uO + (_nb + 1) * _BO._yO - 1, true)) {
_BO._zO[_i2 * _BO._wO + _nb] = -1
}
}
}
}
return
}
_hl("Error: invalid mp_grid ID (mp_grid_add_instances)")
}
var _FO = _GO;
function _GO(_el) {
var _BO = _CO._ta(yyGetInt32(_el));
if (_BO) {
_5e.globalAlpha = _1h;
var _eo = _cn(0xff0000, 1.0);
var _fo = _cn(0x00ff00, 1.0);
for (var x = 0; x < _BO._vO; x++) {
for (var y = 0; y < _BO._wO; y++) {
var _f9 = _fo;
if (_BO._zO[x * _BO._wO + y] < 0) {
_f9 = _eo
}
_5e.fillStyle = _f9;
_5e._EE((_BO._tO + x * _BO._xO), (_BO._uO + y * _BO._yO), _BO._xO, _BO._yO)
}
}
return
}
_hl("Error: invalid mp_grid ID (mp_grid_draw)")
}
function _66(_hn, _el, _5O, _HO, _IO, _JO, _KO, _LO) {
_HO = yyGetInt32(_HO);
_IO = yyGetInt32(_IO);
_JO = yyGetInt32(_JO);
_KO = yyGetInt32(_KO);
_LO = yyGetBool(_LO);
var _MO, _NO, _OO, _PO, _i2, _nb, _Ji, _Xn, _ob, _qb, _QO, _RO,
_SO, _TO, _UO, _VO, _WO, _XO, _YO;
var _1E = false;
var _BO = _CO._ta(yyGetInt32(_el));
var _aO = _bO._82[yyGetInt32(_5O)];
if (!_aO || !_BO) {
return _1E
}
if ((_HO < _BO._tO) || (_HO >= (_BO._tO + _BO._vO * _BO._xO))) {
return _1E
}
if ((_IO < _BO._uO) || (_IO >= _BO._uO + _BO._wO * _BO._yO)) {
return _1E
}
_MO = ~~((_HO - _BO._tO) / _BO._xO);
_NO = ~~((_IO - _BO._uO) / _BO._yO);
if (_BO._zO[_MO * _BO._wO + _NO] < 0) {
return _1E
}
if ((_JO < _BO._tO) || (_JO >= _BO._tO + _BO._vO * _BO._xO)) {
return _1E
}
if ((_KO < _BO._uO) || (_KO >= _BO._uO + _BO._wO * _BO._yO)) {
return _1E
}
_OO = ~~((_JO - _BO._tO) / _BO._xO);
_PO = ~~((_KO - _BO._uO) / _BO._yO);
if (_BO._zO[_OO * _BO._wO + _PO] < 0) {
return _1E
}
_BO._zO[_MO * _BO._wO + _NO] = 1;
_YO = new _ZO();
_YO.__O((_MO * _BO._wO + _NO));
while (_YO._0P(1)) {
_Ji = _YO._1P();
_ob = ~~(_Ji / _BO._wO);
_qb = ~~(_Ji % _BO._wO);
if ((_ob == _OO) && (_qb == _PO)) {
_1E = true;
break
}
_Xn = _BO._zO[_Ji] + 1;
_QO = (_ob > 0) && (_qb < _BO._wO - 1) && (_BO._zO[(_ob - 1) * _BO._wO + (_qb + 1)] == 0);
_RO = (_qb < _BO._wO - 1) && (_BO._zO[(_ob) * _BO._wO + (_qb + 1)] == 0);
_SO = (_ob < _BO._vO - 1) && (_qb < _BO._wO - 1) && (_BO._zO[(_ob + 1) * _BO._wO + (_qb + 1)] == 0);
_TO = (_ob > 0) && (_BO._zO[(_ob - 1) * _BO._wO + (_qb)] == 0);
_UO = (_ob < _BO._vO - 1) && (_BO._zO[(_ob + 1) * _BO._wO + (_qb)] == 0);
_VO = (_ob > 0) && (_qb > 0) && (_BO._zO[(_ob - 1) * _BO._wO + (_qb - 1)] == 0);
_WO = (_qb > 0) && (_BO._zO[(_ob) * _BO._wO + (_qb - 1)] == 0);
_XO = (_ob < _BO._vO - 1) && (_qb > 0) && (_BO._zO[(_ob + 1) * _BO._wO + (_qb - 1)] == 0);
if (_TO) {
_BO._zO[(_ob - 1) * _BO._wO + _qb] = _Xn;
_YO.__O(~~((_ob - 1) * _BO._wO + _qb))
}
if (_UO) {
_BO._zO[(_ob + 1) * _BO._wO + _qb] = _Xn;
_YO.__O(~~((_ob + 1) * _BO._wO + _qb))
}
if (_WO) {
_BO._zO[_ob * _BO._wO + _qb - 1] = _Xn;
_YO.__O(~~(_ob * _BO._wO + _qb - 1))
}
if (_RO) {
_BO._zO[_ob * _BO._wO + _qb + 1] = _Xn;
_YO.__O(~~(_ob * _BO._wO + _qb + 1))
}
if (_LO && _QO && _RO && _TO) {
_BO._zO[(_ob - 1) * _BO._wO + _qb + 1] = _Xn;
_YO.__O(~~((_ob - 1) * _BO._wO + _qb + 1));
}
if (_LO && _VO && _WO && _TO) {
_BO._zO[(_ob - 1) * _BO._wO + _qb - 1] = _Xn;
_YO.__O(~~((_ob - 1) * _BO._wO + _qb - 1))
}
if (_LO && _SO && _RO && _UO) {
_BO._zO[(_ob + 1) * _BO._wO + _qb + 1] = _Xn;
_YO.__O(~~((_ob + 1) * _BO._wO + _qb + 1))
}
if (_LO && _XO && _WO && _UO) {
_BO._zO[(_ob + 1) * _BO._wO + _qb - 1] = _Xn;
_YO.__O(~~((_ob + 1) * _BO._wO + _qb - 1))
}
}
_YO = undefined;
if (_1E) {
_aO._bk();
_aO._2P = _dO;
_aO._Do = false;
_aO._fO(_JO, _KO, 100);
_ob = _OO;
_qb = _PO;
while ((_ob != _MO) || (_qb != _NO)) {
_Ji = _BO._zO[_ob * _BO._wO + _qb];
_QO = (_ob > 0) && (_qb < _BO._wO - 1) && (_BO._zO[(_ob - 1) * _BO._wO + (_qb + 1)] == _Ji - 1);
_RO = (_qb < _BO._wO - 1) && (_BO._zO[(_ob) * _BO._wO + (_qb + 1)] == _Ji - 1);
_SO = (_ob < _BO._vO - 1) && (_qb < _BO._wO - 1) && (_BO._zO[(_ob + 1) * _BO._wO + (_qb + 1)] == _Ji - 1);
_TO = (_ob > 0) && (_BO._zO[(_ob - 1) * _BO._wO + (_qb)] == _Ji - 1);
_UO = (_ob < _BO._vO - 1) && (_BO._zO[(_ob + 1) * _BO._wO + (_qb)] == _Ji - 1);
_VO = (_ob > 0) && (_qb > 0) && (_BO._zO[(_ob - 1) * _BO._wO + (_qb - 1)] == _Ji - 1);
_WO = (_qb > 0) && (_BO._zO[(_ob) * _BO._wO + (_qb - 1)] == _Ji - 1);
_XO = (_ob < _BO._vO - 1) && (_qb > 0) && (_BO._zO[(_ob + 1) * _BO._wO + (_qb - 1)] == _Ji - 1);
if (_TO) _ob = _ob - 1;
else if (_UO) _ob = _ob + 1;
else if (_WO) _qb = _qb - 1;
else if (_RO) _qb = _qb + 1;
else if (_LO && _QO) {
_ob = _ob - 1;
_qb = _qb + 1
} else if (_LO && _SO) {
_ob = _ob + 1;
_qb = _qb + 1
} else if (_LO && _VO) {
_ob = _ob - 1;
_qb = _qb - 1
} else if (_LO && _XO) {
_ob = _ob + 1;
_qb = _qb - 1
};
if ((_ob != _MO) || (_qb != _NO)) {
_aO._fO(~~(_BO._tO + _ob * _BO._xO + _BO._xO / 2), ~~(_BO._uO + _qb * _BO._yO + _BO._yO / 2), 100)
}
};
_aO._fO(_HO, _IO, 100);
_aO._3P()
};
for (_i2 = 0; _i2 < _BO._vO; _i2++) {
for (_nb = 0; _nb < _BO._wO; _nb++) {
if (_BO._zO[_i2 * _BO._wO + _nb] > 0) _BO._zO[_i2 * _BO._wO + _nb] = 0
}
}
return _1E
}
function _F5(_hn,
_ba, _ca) {
var _ob, _qb, _1E, _4P;
_1E = true;
_ob = _hn.x;
_qb = _hn.y;
_hn._Wh(yyGetReal(_ba), yyGetReal(_ca));
var _Dl = _q8._5P();
for (var _gz = 0; _gz < _Dl.length; _gz++) {
_4P = _Dl[_gz];
if (_4P._6P) {
if (_hn._0H(_4P, true)) {
_1E = false;
break
}
}
}
_hn._Wh(_ob, _qb);
return _1E
}
function _G5(_hn, _ba, _ca, _Tl) {
var _ob, _qb, _1E, _4P;
_1E = true;
_ob = _hn.x;
_qb = _hn.y;
_hn._Wh(yyGetReal(_ba), yyGetReal(_ca));
if (_lN(_Tl)) {
_Tl = _IH
} else {
_Tl = yyGetInt32(_Tl)
}
_1E = _kn(_hn, Math.floor(_Tl), true, false, function (_mn) {
var _nn = _hn._0H(_mn, true);
if (!_nn) {
return false
}
return true
});
_hn._Wh(_ob, _qb);
if (_1E) return false;
else return true
}
function _H5(_hn, _ba, _ca, _Tl) {
var _ob, _qb, _1E, _4P;
_1E = false;
_ob = _hn.x;
_qb = _hn.y;
_hn._Wh(yyGetReal(_ba), yyGetReal(_ca));
var _Dl = _S4(yyGetInt32(_Tl));
for (var _gz = 0; _gz < _Dl.length; _gz++) {
_4P = _Dl[_gz];
if ((_4P._5H) && (!_4P._7P)) {
if (_hn._0H(_4P, true)) {
_1E = true;
break
}
}
}
_hn._Wh(_ob, _qb);
return _1E
}
function _I5(_qm, _8P, _9P) {
_8P = yyGetReal(_8P);
_9P = yyGetReal(_9P);
if (_8P > 0) {
if (Math.abs(_qm.x - _8P * _Cl(_qm.x / _8P)) >= 0.001) {
return false
}
}
if (_9P > 0) {
if (Math.abs(_qm.y - _9P * _Cl(_qm.y / _9P)) >= 0.001) {
return false
}
}
return true
}
function _D5(_qm, _8P, _9P) {
var _i2 = 0;
var x = 0.0;
var y = 0.0;
var _aP;
var _bP;
var _cP;
var _dP;
var _eP = 0;
var _fP = 0;
_aP = 0;
_bP = _q8._gP();
_cP = 0;
_dP = _q8._hP();
if (true == _JC(_qm._15) || true == _JC(_qm._xz)) {
var _iP = _qm._jP();
_aP = _Cl(_qm.x - _iP.left);
_bP = _Cl(_bP + _qm.x - _iP.right);
_cP = _Cl(_qm.y - _iP.top);
_dP = _Cl(_dP + _qm.y - _iP.bottom)
}
_eP = _Cl(yyGetReal(_8P));
_fP = _Cl(yyGetReal(_9P));
for (_i2 = 1; _i2 < 100; _i2++) {
x = _aP + _kP(_bP - _aP);
if (_eP > 0) {
x = _eP * floor(x / _eP)
}
y = _cP + _kP(_dP - _cP);
if (_fP > 0) {
y = _fP * floor(y / _fP)
}
if (true == _F5(_qm,
x, y)) {
_qm._Wh(x, y);
return
}
}
}
function _J5(_hn, _8P, _9P) {
_8P = yyGetReal(_8P);
_9P = yyGetReal(_9P);
_hn.x = _Cl(_hn.x / _8P) * _8P;
_hn.y = _Cl(_hn.y / _9P) * _9P;
_hn._aH = true
}
function _J4(_qm, _lP, _ME, _mP) {
_mP = yyGetReal(_mP);
if (yyGetBool(_lP)) {
if (_qm.x < -_mP) {
_qm._Wh(_qm.x + _q8._gP() + 2 * _mP, _qm.y)
}
if (_qm.x > _q8._gP() + _mP) {
_qm._Wh(_qm.x - _q8._gP() - 2 * _mP, _qm.y)
}
}
if (yyGetBool(_ME)) {
if (_qm.y < -_mP) {
_qm._Wh(_qm.x, _qm.y + _q8._hP() + 2 * _mP)
}
if (_qm.y > _q8._hP() + _mP) {
_qm._Wh(_qm.x, _qm.y - _q8._hP() - 2 * _mP)
}
}
}
function _K5(_hn, _ba, _ca, _eH) {
_hn._s3 = yyGetReal(_ba) - _hn.x;
_hn._t3 = yyGetReal(_ca) - _hn.y;
_hn._d3 = yyGetReal(_eH)
}
function _nP(_hn, _ba, _ca, _oP) {
if (_oP) {
return _G5(_hn, _ba, _ca)
} else {
return _F5(_hn, _ba, _ca)
}
}
function _pP(_hn, _qP, _oP) {
var _i2, _3b;
var _ob, _qb, _rP, _sP, _tP, _uP, _vP;
var _wP, _xP, _yP, _zP;
_zP = false;
if (_nP(_hn, _hn.x, _hn.y, _oP) == false) {
_hn._Wh(_hn._AP, _hn._BP);
_zP = true
}
_ob = _hn.x;
_qb = _hn.y;
if (_qP) {
_3b = 18;
_vP = 10.0 * Math.round(_hn._35 / 10.0);
_tP = _vP;
_uP = _vP;
for (_i2 = 1; _i2 < 2 * _3b; _i2++) {
_tP = _tP - 180 / _3b;
_rP = _ob + _hn._d3 * Math.cos(_tP * _lb / 180);
_sP = _qb - _hn._d3 * Math.sin(_tP * _lb / 180);
if (_nP(_hn, _rP, _sP, _oP)) {
break
} else {
_zP = true
}
}
for (_i2 = 1; _i2 < 2 * _3b; _i2++) {
_uP = _uP + 180 / _3b;
_rP = _ob + _hn._d3 * Math.cos(_uP * _lb / 180);
_sP = _qb - _hn._d3 * Math.sin(_uP * _lb / 180);
if (_nP(_hn, _rP, _sP, _oP)) {
break
} else {
_zP = true
}
}
if (_zP == true) {
_hn._35 = 180 + (_tP + _uP) - _vP
}
} else {
_wP = _nP(_hn, _hn.x + _hn._s3, _hn.y, _oP);
_xP = _nP(_hn, _hn.x, _hn.y + _hn._t3, _oP);
_yP = _nP(_hn, _hn.x + _hn._s3, _hn.y + _hn._t3, _oP);
if ((_wP == false) && (_xP == false)) {
_hn._s3 = -_hn._s3;
_hn._t3 = -_hn._t3
} else if ((_wP == true) && (_xP == true) && (_yP == false)) {
_hn._s3 = -_hn._s3;
_hn._t3 = -_hn._t3
} else if (_wP == false) _hn._s3 = -_hn._s3;
else if (_xP == false) _hn._t3 = -_hn._t3
}
}
function _P5(_hn, _CP) {
_pP(_hn, yyGetBool(_CP), false)
}
function _Q5(_hn, _CP) {
_pP(_hn, yyGetBool(_CP), true)
}
var _DP = _P5;
function _EP(_qm, _ba, _ca, _oP) {
if (yyGetBool(_oP)) return _G5(_qm, _ba, _ca);
else return _F5(_qm, _ba, _ca)
}
function _FP(_qm, _dH, _GP, _oP) {
var _Ao;
if (_GP <= 0) _Ao = 1000;
else _Ao = _Cl(_GP);
var _of = Math.cos(_dH * Math.PI / 180);
var _pf = -Math.sin(_dH * Math.PI / 180);
if (_EP(_qm, _qm.x, _qm.y, _oP) == false) return;
for (var _i2 = 1; _i2 <= _Ao; _i2++) {
if (_EP(_qm, _qm.x + _of, _qm.y + _pf, _oP)) _qm._Wh(_qm.x + _of, _qm.y + _pf);
else return
}
}
function _L5(_hn, _dH, _GP) {
_FP(_hn, yyGetReal(_dH), yyGetReal(_GP), false)
}
function _M5(_qm, _dH, _GP) {
_FP(_qm, yyGetReal(_dH), yyGetReal(_GP), true)
}
function _HP(_qm, _dH, _GP, _oP) {
var _Ao;
if (_GP <= 0) _Ao = 1000;
else _Ao = _Cl(_GP);
var _of = Math.cos(_dH * Math.PI / 180);
var _pf = -sin(_dH * Math.PI / 180);
if (_EP(_qm, _qm.x, _qm.y, _oP)) return;
for (var _i2 = 1; _i2 <= _Ao; _i2++) {
_qm._Wh(_qm.x + _of, _qm.y + _pf);
if (_EP(_qm, _qm.x, _qm.y, _oP)) return
}
}
function _N5(_qm,
_dH, _GP) {
_HP(_qm, yyGetReal(_dH), yyGetReal(_GP), false)
}
function _O5(_qm, _dH, _GP) {
_HP(_qm, yyGetReal(_dH), yyGetReal(_GP), true)
}
function _T5(_qm, _ba, _ca) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
if (_qm._aH) _qm._bH();
var _79 = _qm._cH;
var _IP = 0.0;
var _JP = 0.0;
if (_ba > _79.right) {
_IP = _ba - _79.right
}
if (_ba < _79.left) {
_IP = _ba - _79.left
}
if (_ca > _79.bottom) {
_JP = _ca - _79.bottom
}
if (_ca < _79.top) {
_JP = _ca - _79.top
}
return Math.sqrt((_IP * _IP) + (_JP * _JP))
}
function _U5(_qm, _Tl) {
var _zn = 10000000000;
var _i2 = 0;
var _zn = __G(_qm, yyGetInt32(_Tl),
false, _zn,
function (_mn) {
if (_qm._aH) _qm._bH();
if (_mn._aH) _mn._bH();
var _79 = _mn._cH;
var _wy = _qm._cH;
var _IP = 0,
_JP = 0;
if (_79.left > _wy.right) _IP = _79.left - _wy.right;
if (_79.right < _wy.left) _IP = _79.right - _wy.left;
if (_79.top > _wy.bottom) _JP = _79.top - _wy.bottom;
if (_79.bottom < _wy.top) _JP = _79.bottom - _wy.top;
return Math.sqrt(_IP * _IP + _JP * _JP)
});
return _zn
}
function _n6(_qm, _ba, _ca) {
var _zn = 10000000000;
var _i2 = 0;
var _Bn = _kn(_qm, _IH, false, false, function (_mn) {
return _mn._on(yyGetReal(_ba), yyGetReal(_ca), true)
});
return !_Bn
}
function _o6(_hn,
_ba, _ca, _Tl) {
_Tl = yyGetInt32(_Tl);
var _1E, _4P;
_1E = false;
if (_Tl == _KP) _Tl = _hn.id;
var _Dl = _S4(_Tl);
for (var _gz = 0; _gz < _Dl.length; _gz++) {
_4P = _Dl[_gz];
if ((_4P._5H) && (!_4P._7P)) {
if (_4P._on(yyGetReal(_ba), yyGetReal(_ca), true)) {
_1E = true;
break
}
}
}
return _1E
}
var _LP = 1;
var _MP = 2;
var _NP = 3;
var _OP = 4;
var _PP = window.WebSocket;
var _QP = null;
try {
_QP = require("ws").Server
} catch (_RP) {}
function _SP(_TP, _UP) {
this.socket = _TP;
this._UP = _UP
}
_SP.prototype = {
socket: null,
_UP: !1,
_VP: !1,
index: -1
};
var _WP = "GM:Studio-Connect";
var _XP = 0xCAFEBABE;
var _YP = 0xDEADB00B;
var _ZP = 0xDEAFBEAD;
var __P = 0xF00DBEEB;
var _0Q = 0xDEADC0DE;
var _1Q = [];
var _2Q = [];
function _3Q(_4Q) {
var _i2 = _2Q.shift();
if (_i2 == null) _i2 = _1Q.length;
_1Q[_i2] = _4Q;
_4Q.index = _i2;
return _i2
}
function _5Q(e) {
var _5B = _Uj._Vj(e.id, null, _6Q, e);
_5B.__j = true
}
function _7Q(_hu, offset, length) {
var _8Q = new Uint8Array(_hu.buffer);
var _9Q = _hu.byteOffset + offset;
var index = _aQ(length, _bQ, 1);
var _cQ = new Uint8Array(_Kl._ta(index)._Ll);
for (var _i2 = 0; _i2 < length; _i2++) _cQ[_i2] = _8Q[_9Q + _i2];
return index
}
function _HC(_l9) {
if (!_b8._ta(yyGetInt32(_l9))) return false;
return true
}
function _IC(_l9) {
var _9A = _b8._ta(yyGetInt32(_l9));
if (!_9A) return "";
return _9A._nz
}
var _dQ = _IC;
var _eQ = _Fm;
var _fQ = _gQ;
var _hQ = _iQ;
var _jQ = _kQ;
var _lQ = _mQ;
var _nQ = _oQ;
var _pQ = _qQ;
var _rQ = _sQ;
var _tQ = _uQ;
var _vQ = _wQ;
var _xQ = _yQ;
var _zQ = _AQ;
var _BQ = _CQ;
var _DQ = _CQ;
var _EQ = _FQ;
var _GQ = _HQ;
var _IQ = _Gm;
var _JQ = _KQ;
var _LQ = _MQ;
var _NQ = _OQ;
var _PQ = _QQ;
var _RQ = _SQ;
var _TQ = _UQ;
var _VQ = _WQ;
var _XQ = _YQ;
var _ZQ = __Q;
var _0R = __Q;
var _1R = _Jm;
var _2R = _Jm;
var _3R = _4R;
var _5R = _4R;
var _6R = _4R;
var _7R = _4R;
var _8R = _Im;
var _9R = _Im;
var _aR = _bR;
var _cR = _bR;
var _dR = _eR;
var _fR = _eR;
var _gR = _hR;
var _iR = _Km;
var _jR = _kR;
var _lR = _mR;
var _nR = _oR;
var _pR = _qR;
var _rR = _sR;
var _tR = _uR;
var _vR = _wR;
var _xR = _yR;
var _zR = _AR;
var _BR = _CR;
var _DR = _ER;
var _FR = _GR;
var _HR = _IR;
var _JR = _KR;
var _LR = _MR;
var _NR = _OR;
function _PC(_l9) {
if (_bO._82[yyGetInt32(_l9)]) return true;
return false;
}
function _QC(_l9) {
_l9 = yyGetInt32(_l9);
if (!_bO._82[_l9]) return "";
return _bO._82[_l9].name
}
function _V5(_qm, _5O, _eH, _PR, _QR) {
_qm._RR(yyGetInt32(_5O), yyGetReal(_eH), 1, 0, yyGetBool(_QR), yyGetInt32(_PR))
}
function _W5(_qm) {
_qm._RR(-1, 0, 1, 0, false, 0)
}
var _SR = _TR;
function _TR(_el, _UR, _VR, _QR) {
_UR = yyGetReal(_UR);
_VR = yyGetReal(_VR);
var _aO = _bO._82[yyGetInt32(_el)];
if (!_aO) return;
_5e.globalAlpha = _1h;
_5e.strokeStyle = _jE;
var _ob, _qb, _WR;
var _XR = 0;
var _YR = _aO._ZR(0);
if (!yyGetBool(_QR)) {
_UR = _UR - _YR.x;
_VR = _VR - _YR.y
} else {
_UR = 0;
_VR = 0
}
_XR = _Cl(_aO.length / 4.0);
if (_XR == 0) return;
var first = true;
_5e._TE();
for (var _i2 = 0; _i2 <= _XR; _i2++) {
_YR = _aO._ZR(_i2 / _XR);
if (first) {
_5e._UE(_UR + _YR.x, _VR + _YR.y);
first = false
} else {
_5e._VE(_UR + _YR.x, _VR + _YR.y)
}
}
_5e._XE();
_5e._WE()
}
var __R = new _0S();
var _1S = new _0S();
var _2S = new _0S();
function _3S() {
var _4S = __R._Vj(new _5S());
return _4S
}
function _6S(_7S) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._9S()
}
function _aS(_7S, _bS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._cS(yyGetReal(_bS))
}
function _dS(_7S, _eS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._fS(yyGetReal(_eS))
}
function _gS(_7S, _hS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._iS(yyGetReal(_hS));
}
function _jS(_7S, _kS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._lS(yyGetInt32(_kS))
}
function _mS(_7S, _nS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._oS(yyGetBool(_nS))
}
function _pS(_7S, _qS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._rS(yyGetReal(_qS))
}
function _sS(_7S, _qS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._tS(yyGetReal(_qS))
}
function _uS(_7S, _vS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._wS(yyGetInt32(_vS))
}
function _xS(_7S, _yS) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._zS(yyGetReal(_yS) * _q8._AS._BS)
}
function _CS(_7S) {
var _8S = __R._ta(yyGetInt32(_7S));
_8S._DS()
}
function _ES(_7S, _FS, _GS) {
var _8S = __R._ta(yyGetInt32(_7S));
var scale = _q8._AS._BS;
_8S._HS(yyGetReal(_FS) * scale,
yyGetReal(_GS) * scale)
}
function _S6(_qm, _7S, _el, _m9, _n9) {
_m9 = yyGetReal(_m9);
_n9 = yyGetReal(_n9);
var _IS = -1;
var _JS = -1;
var _8S = __R._ta(yyGetInt32(_7S));
var _Tl = yyGetInt32(_el);
if (_Tl == _KP) {
_Tl = _qm.id
}
if (_Tl == _IH) {
var _Dl = _ez._5P();
for (var _gz = 0; _gz < _Dl.length; _gz++) {
var _vn = _Dl[_gz];
if (_vn._4H) continue;
_IS = _q8._AS._KS(_8S, _vn, _m9, _n9)
}
} else if (_Tl < 100000) {
var _9A = _b8._ta(_Tl);
if (_9A === null) {
return _JS
}
var _Dl = _9A._LS();
for (var _gz = 0; _gz < _Dl.length; _gz++) {
var _vn = _Dl[_gz];
if (_vn._4H) continue;
_IS = _q8._AS._KS(_8S, _vn,
_m9, _n9)
}
} else {
var _vn = _ez._ta(_Tl);
_IS = _q8._AS._KS(_8S, _vn, _m9, _n9)
}
return _IS
}
function _R6(_qm, _7S, _el, _MS, _NS) {
_7S = yyGetInt32(_7S);
_el = yyGetInt32(_el);
if (_MS !== undefined && _NS !== undefined) {
return _S6(_qm, _7S, _el, yyGetReal(_MS), yyGetReal(_NS))
} else {
return _S6(_qm, _7S, _el, 0.0, 0.0)
}
}
function _T6(_hn, _OS, _PS, _QS, _RS) {
var scale = _q8._AS._BS;
var _SS = yyGetReal(_OS) * scale;
var _TS = yyGetReal(_PS) * scale;
_hn._US._VS(_SS, _TS, yyGetReal(_QS), yyGetReal(_RS))
}
function _U6(_hn, _OS, _PS, _WS, _XS) {
var scale = _q8._AS._BS;
var _SS = yyGetReal(_OS) * scale;
var _TS = yyGetReal(_PS) * scale;
_hn._US._YS(_SS, _TS, yyGetReal(_WS), yyGetReal(_XS))
}
function _W6(_hn, _ZS, __S, _0T, _1T) {
var scale = _q8._AS._BS;
var _2T = yyGetReal(_ZS) * scale;
var _3T = yyGetReal(__S) * scale;
_hn._US._4T(_2T, _3T, yyGetReal(_0T), yyGetReal(_1T))
}
function _X6(_hn, _ZS, __S, _5T, _6T) {
var scale = _q8._AS._BS;
var _2T = yyGetReal(_ZS) * scale;
var _3T = yyGetReal(__S) * scale;
_hn._US._7T(_2T, _3T, yyGetReal(_5T), yyGetReal(_6T))
}
function _V6(_hn, _8T) {
_hn._US._9T(yyGetReal(_8T))
}
function _Y6(_hn, _aT) {
_hn._US._bT(yyGetReal(_aT))
}
function _Z6(_hn,
_cT, _dT, _eT, _fT) {
var scale = _q8._AS._BS;
_hn._US._gT(yyGetReal(_cT), yyGetReal(_dT) * scale, yyGetReal(_eT) * scale, yyGetReal(_fT))
}
function __6(_hn) {
if ((_hn._US != null) && (_hn._US != undefined)) {
_hn._US._hT(1.0 / _q8._AS._BS)
}
}
function _07(_qm, _ba, _ca, _fa, _Tl) {
_Tl = yyGetInt32(_Tl);
var _hn = _qm;
if (_Tl == _KP) {
_Tl = _hn.id
}
var x = yyGetReal(_ba) * _q8._AS._BS;
var y = yyGetReal(_ca) * _q8._AS._BS;
var angle = (yyGetReal(_fa) * Math.PI) / 180.0;
if (_Tl == _IH) {
var _Dl = _ez._5P();
for (var _gz = 0; _gz < _Dl.length; _gz++) {
var _vn = _Dl[_gz];
if (_vn._4H) continue;
if (_q8._AS._iT(_qm, _vn, x, y, angle)) {
return true
}
}
} else if (_Tl < 100000) {
var _9A = _b8._ta(_Tl);
if (_9A === null) {
return false
}
var _Dl = _9A._LS();
for (var _gz = 0; _gz < _Dl.length; _gz++) {
var _vn = _Dl[_gz];
if (_vn._4H) continue;
if (_q8._AS._iT(_qm, _vn, x, y, angle)) {
return true
}
}
} else {
var _vn = _ez._ta(_Tl);
return _q8._AS._iT(_qm, _vn, x, y, angle)
}
}
function _17(_qm, _jT) {
if (_qm._US) {
return _qm._US._kT(yyGetInt32(_jT))
}
return 0.0
}
function _27(_qm, _jT) {
if (_qm._US) {
return _qm._US._lT(yyGetInt32(_jT));
}
return 0.0
}
function _37(_qm, _jT) {
if (_qm._US) {
return _qm._US._mT(yyGetInt32(_jT))
}
return 0.0
}
function _47(_qm, _jT, _z8) {
if (_qm._US) {
_qm._US._iS(yyGetInt32(_jT), yyGetReal(_z8))
}
}
function _57(_qm, _jT, _z8) {
if (_qm._US) {
_qm._US._cS(yyGetInt32(_jT), yyGetReal(_z8))
}
}
function _67(_qm, _jT, _z8) {
if (_qm._US) {
_qm._US._fS(yyGetInt32(_jT), yyGetReal(_z8))
}
}
var _nT = !1;
var _oT = !1;
function _NC(_l9) {
var _OH = _dK._ta(yyGetInt32(_l9));
if ((_OH === null) || (_OH == undefined)) {
return false
}
return true
}
function _OC(_l9) {
var _pT = _dK._ta(yyGetInt32(_l9));
if (_pT === null) return "";
if ((_pT._qT === undefined) || (_pT._qT === null)) return "";
return _pT._qT._v1
}
function _rT(_l9, _3h, _sT) {
var _pT = _dK._ta(yyGetInt32(_l9));
if (_pT === null) return;
_pT._qT._e3 = yyGetInt32(_3h);
_pT._qT._g3 = yyGetBool(_sT)
}
var _tT = _rT;
function _i5() {
_uT = _q8.id
};
function _n5(_2K) {
_2K = yyGetInt32(_2K);
var _vT = _dK._ta(_2K);
if ((_vT == null) || (_vT == undefined)) {
_ly("Error: Room " + _2K + " is not a valid room index");
} else {
_uT = _2K
}
};;;;
function _wT() {
_uT = _xT;
if (_nT == false) {
_nT = true;
if (typeof (_G7) == "function") {
_G7()
}
}
if (!_oT) {
if (arguments.length > 0) _xy("###game_end###" + arguments[0]);
else _xy("###game_end###0");
_oT = true
}
}
var _yT = function () {
_Of("yy_texture_get_texel_width()")
};
var _zT = function () {
_Of("yy_texture_get_texel_height()")
};
var _AT = function () {
_Of("texture_set_stage()")
};
var _BT = function () {
_Of("shader_is_compiled()")
};
var _CT = function () {
_Of("shader_set()")
};
var _DT = function () {
_Of("shader_get_uniform()")
};
var _ET = function () {
_Of("shader_set_uniform_i()")
};
var _FT = function () {
_Of("shader_set_uniform_f()");
};
var _GT = function () {
_Of("shader_set_uniform_matrix()")
};
var _HT = function () {
_Of("shader_set_uniform_matrix()")
};
var _IT = function () {
_Of("shader_enable_corner_id()")
};
var _JT = function () {
_Of("shader_set_uniform_array_i()")
};
var _KT = function () {
_Of("shader_set_uniform_array_f()")
};
var _LT = function () {
_Of("shader_set_uniform_matrix_array()")
};
var _MT = function (index) {
_Of("shader_get_name()")
};
var _ye = -1;
function _NT() {
return 0
}
function _OT(_PT) {
_PT = yyGetInt32(_PT);
_ye = _PT;
_CT(_PT)
}
function _QT() {
_ye = -1;
_CT(-1)
}
function _ze(_PT, _RT) {
return _DT(yyGetInt32(_PT), yyGetString(_RT))
}
function _De(_ST, _DC) {
_KT(yyGetInt32(_ST), _DC)
}
function _WC(_I8) {
return _MT(_I8)
}
var _TT = [];
var _UT = 300000;
var _VT = _UT;
var _WT = {};
var _XT = 0;
var audio_sampledata = [];
var _YT = !1;
var _ZT = 0;
var __T = 128;
var _0U = 100000;
var _1U = [];
var _2U = [];
var _3U = 0;
var _4U = 200000;
var _5U = [];
var _6U = [];
var _7U = 0;
var _8U = 1024;
var _9U = 0;
var _aU = [];
var _bU = [];
var _cU = "data:audio/wav;base64,UklGRs4/AABXQVZFZm10IBIAAAABAAEAIlYAAESsAAACABAAAABkYXRhTisAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v7+/v7+/v7+/v7+/v7+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v4AAP7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQIBAgEAAAAAAAACAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgEAAAAAAAAAAAAAAAAAAAAAAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQAAAAACAQIBAgECAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQIBAgEAAAAAAAAAAAAAAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgEAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQIBAgECAQIBAgECAQIBAgEAAAAAAAAAAAIBAgECAQIBAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgECAQIBAgECAQIBAgECAQIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAAACAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQIBAgECAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMSVNUTgAAAElORk9JQ1JEFQAAADIwMTgtMTEtMjNUMTQ6Mzg6MDZaAABJU0ZUIwAAAEFkb2JlIEF1ZGl0aW9uIENDIDIwMTguMCAoV2luZG93cykAAF9QTVj7EwAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDMgNzkuMTYxMjEwLCAyMDE3LzA4LzExLTEwOjI4OjM2ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXBETT0iaHR0cDovL25zLmFkb2JlLmNvbS94bXAvMS4wL0R5bmFtaWNNZWRpYS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDx4bXBETTpUcmFja3M+CiAgICAgICAgICAgIDxyZGY6QmFnPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHhtcERNOnRyYWNrTmFtZT5DdWVQb2ludCBNYXJrZXJzPC94bXBETTp0cmFja05hbWU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTp0cmFja1R5cGU+Q3VlPC94bXBETTp0cmFja1R5cGU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTpmcmFtZVJhdGU+ZjIyMDUwPC94bXBETTpmcmFtZVJhdGU+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHhtcERNOnRyYWNrTmFtZT5DRCBUcmFjayBNYXJrZXJzPC94bXBETTp0cmFja05hbWU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTp0cmFja1R5cGU+VHJhY2s8L3htcERNOnRyYWNrVHlwZT4KICAgICAgICAgICAgICAgICAgPHhtcERNOmZyYW1lUmF0ZT5mMjIwNTA8L3htcERNOmZyYW1lUmF0ZT4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8eG1wRE06dHJhY2tOYW1lPlN1YmNsaXAgTWFya2VyczwveG1wRE06dHJhY2tOYW1lPgogICAgICAgICAgICAgICAgICA8eG1wRE06dHJhY2tUeXBlPkluT3V0PC94bXBETTp0cmFja1R5cGU+CiAgICAgICAgICAgICAgICAgIDx4bXBETTpmcmFtZVJhdGU+ZjIyMDUwPC94bXBETTpmcmFtZVJhdGU+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpCYWc+CiAgICAgICAgIDwveG1wRE06VHJhY2tzPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE4LTExLTIzVDE0OjM4OjA2WjwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBBdWRpdGlvbiBDQyAyMDE4LjAgKFdpbmRvd3MpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE4LTExLTIzVDE0OjM4OjA2WjwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE4LTExLTIzVDE0OjM4OjA2WjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6MDdiYWRmMTgtYTM5OS02YTQyLWI1OTUtMDU0NGI4ODI3YzY3PC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD54bXAuZGlkOjQ5NDBjY2YzLTA3M2UtMTY0MS05OTVhLTFlY2E2MTYxZDZmMTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjQ5NDBjY2YzLTA3M2UtMTY0MS05OTVhLTFlY2E2MTYxZDZmMTwveG1wTU06T3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPnNhdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6NDk0MGNjZjMtMDczZS0xNjQxLTk5NWEtMWVjYTYxNjFkNmYxPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE4LTExLTIzVDE0OjM4OjA2Wjwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgQXVkaXRpb24gQ0MgMjAxOC4wIChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+L21ldGFkYXRhPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjA3YmFkZjE4LWEzOTktNmE0Mi1iNTk1LTA1NDRiODgyN2M2Nzwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOC0xMS0yM1QxNDozODowNlo8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIEF1ZGl0aW9uIENDIDIwMTguMCAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPGRjOmZvcm1hdD5hdWRpby94LXdhdjwvZGM6Zm9ybWF0PgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+AA==";
var _dU = {
_eU: 0,
_fU: 1,
_gU: 2,
_hU: 3,
_iU: 4,
_jU: 5,
_kU: 6
};
var _lU = {
_mU: 0,
_nU: 1,
_oU: 2
};
var _pU = {
_qU: 'init',
_rU: 'loading',
_sU: 'loaded',
_tU: 'decoding',
_uU: 'ready'
};
var _vU = {
_wU: 'suspended',
_xU: 'running',
_yU: 'closed'
};
var _zU = {
_AU: "Audio_Play"
};
var _BU = 0;
var _CU = 1.0;
var _DU = 0;
function _EU() {
if (_Hk != _Ik) return;
_ZT++;
var _FU = g_WebAudioContext.currentTime;
for (var _i2 = 0; _i2 < _bU.length; ++_i2) {
var _GU = _bU[_i2];
var _rN = (_FU - _GU._HU) / _GU.duration;
_rN = Math.max(0, Math.min(_rN, 1));
var _IU = (1 - _rN) * _GU._JU + (_rN * _GU._KU);
var _LU = (_rN >= 1);
var _MU = _GU._NU;
if (_MU !== null) {
if (_MU._OU) {
var _PU = audio_sampledata[_MU._QU].gain;
_MU.gain = _IU;
_MU._RU.gain.value = _MU.gain * _PU
} else {
_LU = true
}
} else if (_GU._SU !== null) {
_GU._SU.gain = _IU;
for (var _3b = 0; _3b < _9U; ++_3b) {
var _TU = _TT[_3b];
if (_TU._OU && _TU._QU == _GU._QU) {
_TU._RU.gain.value = _TU.gain * _GU._SU.gain
}
}
}
if (_LU) {
_bU.splice(_i2, 1);
--_i2
}
}
}
var _UU;
function _VU() {
if (_Hk != _Ik) {
return
}
_WU.disconnect();
_WU = g_WebAudioContext.createGain();
_WU.connect(g_WebAudioContext.destination);
g_WebAudioContext.listener._Bl = new _iu(0,
0, 0);
g_WebAudioContext.listener._XU = new _iu(0, 0, 0);
g_WebAudioContext.listener._YU = new Array(0, 0, 0, 0, 0, 0)
}
function _ZU() {
if (_Hk != _Ik) {
return
}
__U = (_0V == _1V);
_WU = g_WebAudioContext.createGain();
_WU.connect(g_WebAudioContext.destination);
_2V(_dU._eU);
var _3V;
if (typeof document.hidden !== "undefined") {
_UU = "hidden";
_3V = "visibilitychange"
} else if (typeof document.mozHidden !== "undefined") {
_UU = "mozHidden";
_3V = "mozvisibilitychange"
} else if (typeof document.msHidden !== "undefined") {
_UU = "msHidden";
_3V = "msvisibilitychange"
} else if (typeof document.webkitHidden !== "undefined") {
_UU = "webkitHidden";
_3V = "webkitvisibilitychange"
}
document.addEventListener(_3V, _4V, false);
g_WebAudioContext.listener._Bl = new _iu(0, 0, 0);
g_WebAudioContext.listener._XU = new _iu(0, 0, 0);
g_WebAudioContext.listener._YU = new Array(0, 0, 0, 0, 0, 0);
_5V(0, 0, 0);
_6V(0, 0, 1.0, 0, 1.0, 0.0);
_7V();
_8V();
_9V()
} /*@constructor */
function _aV(_bV, _cV, _Fa) {
this._QU = _bV;
this._KU = _cV;
this._HU = g_WebAudioContext.currentTime;
this.duration = _Fa * 0.001;
if (_bV >= _UT) {
this._NU = _dV(_bV);
this._JU = this._NU.gain
} else {
this._SU = audio_sampledata[_bV];
this._NU = null;
this._JU = this._SU.gain
}
} /*@constructor */
function _eV() {
this.buffer = null;
this.gain = 1.0;
this._fV = 1.0;
this._gV = 1.0;
this.duration = 0.0;
this._hV = 0.0;
this._iV = 0;
this._Nf = 0;
this.state = _pU._qU;
this._jV = []
}
_eV.prototype._kV = function () {
for (var _i2 = 0; _i2 < this._jV.length; ++_i2) {
var _lV = this._jV[_i2];
switch (_lV[0]) {
case _zU._AU:
_mV(_lV[1], _lV[2], _lV[3]);
break
}
}
this._jV.length = 0
};;
_eV.prototype._nV = function (_oV, _pV) {
if (this.state != _pU._sU || !_oV) return false;
var _SU = this;
_SU.state = _pU._tU;
g_WebAudioContext.decodeAudioData(_oV.response, function (buffer) {
_SU.buffer = buffer;
_SU.state = _pU._uU;
if (_pV) _SU._kV()
}, function (err) {
_SU.state = _pU._sU;
debug("ERROR: Failed to decode audio data: " + err)
});
return true
};; /*@constructor */
function _NU(_bV, _qV, _rV) {
this._RU = g_WebAudioContext.createGain();
this._sV = null;
this._tV = 0;
this._OJ(_bV, _qV, _rV)
}
_NU.prototype._OJ = function (_bV, _qV, _rV) {
this._OU = false;
this._uV = g_WebAudioContext.currentTime;
this.playbackpoint = 0;
this._vV = null;
this._RU.disconnect();
this.gain = 1.0;
this._RU.gain.value = 1;
this._sV = null;
this.paused = false;
this._QU = _bV;
this._wV = _rV;
this._xV = false;
this._yV = _qV;
this._zV = false;
this._AV = false;
this._BV = false;
this._CV = null;
this._DV = null;
if (_bV >= 0) {
this._zV = _EV(_bV);
this._AV = _FV(_bV);
this._BV = _GV(_bV);
if (!this._AV && !this._BV) {
this._RU.gain.value = audio_sampledata[_bV].gain;
if (this._tV >= _UT) {
_aU[this._tV - _UT] = null
}
this._tV = _VT;
_aU[_VT - _UT] = this;
++_VT
}
}
};;
function _dV(_ST) {
if (_ST < _UT || _ST >= _VT) {
debug("Error: invalid sound handle " + _ST);
return null
}
var _MU = _aU[_ST - _UT];
if (_MU == undefined) {
return null
}
return _MU
}
function _EV(_QU) {
if (__U) return false;
if (_QU >= 0 && _QU < audio_sampledata.length) {
if (audio_sampledata[_QU]._Nf == 1) {
return true
}
} else if (_QU < _0U) {
debug("IsSoundStreamed - Error: soundid " + _QU + " not found")
}
return false
}
function _FV(_QU) {
if (_QU >= _0U && _QU < _4U) {
return true
}
return false
}
function _GV(_QU) {
if (_QU >= _4U && _QU < _UT) {
return true
}
return false
}
function _HV(_bV) {
var _MU = _1y._r1[_bV];
if (_MU == null) {
_IV = "";
_MU = audio_sampledata[_bV];
if (_MU != null && _MU._JV !== undefined) {
_IV = _KV(_MU._JV)
}
return _IV
}
var _IV = _0d + _MU._LV;
var _MV = _MU._NV;
_IV = _KV(_IV);
var index = _IV.indexOf(_MV);
if (index > 0) {
_IV = _IV.substr(0, index)
}
if (_OV) {
_MV = "ogg"
} else if (_PV) {
_MV = "mp3"
} else {
_MV = "ogg"
}
_IV = _IV + "." + _MV;
return _IV;
}
var _QV = !1;
var _RV = !1;
var _SV = !1;
var __U = !1;
function _TV() {
_9V();
return _RV && g_WebAudioContext && g_WebAudioContext.state !== _vU._wU
}
function _9V() {
if (_RV || _SV) return;
_SV = true;
var _CV = new Audio(_cU);
_CV.controls = false;
_CV.autoplay = true;
_CV.preload = "none";
document.body.appendChild(_CV);
try {
var _UV = _CV.play();
if (_UV !== undefined) {
_UV.then(function () {
debug("WebAudio autoplay test passed.");
_RV = true;
_SV = false;
_VV();
document.body.removeChild(_CV)
}).catch(function (error) {
console.log("WebAudio autoplay test failed: ", error);
document.body.removeChild(_CV);
_SV = false;
_WV()
})
} else {
console.log("WebAudio autoplay test failed: Playback promise invalid.");
document.body.removeChild(_CV);
_SV = false;
_WV()
}
} catch (_bB) {
debug("WebAudio autoplay test failed with exception: " + _bB);
document.body.removeChild(_CV);
_SV = false;
_WV()
}
}
function _WV() {
if (_QV) return;
_QV = true;
var _XV = "mousedown";
var _YV = "mouseup";
if ("ontouchstart" in window) {
_XV = "touchstart";
_YV = "touchend"
}
if ((window.PointerEvent) || (window.navigator.pointerEnabled) || (window.navigator.msPointerEnabled)) {
_XV = "pointerdown";
_YV = "pointerup"
}
var _ZV = function () {
g_WebAudioContext.resume().then(function () {
_9V();
document.body.removeEventListener(_XV, _ZV);
document.body.removeEventListener(_YV, _ZV);
_QV = false;
debug("WebAudio Context unlocked.")
}, function (__V) {
debug("ERROR: Failed to unlock WebAudio Context. Reason: " + __V)
})
};
document.body.addEventListener(_XV, _ZV, false);
document.body.addEventListener(_YV, _ZV, false)
}
function _0W() {
debug("WebAudio Context state updated to: " + g_WebAudioContext.state);
if (g_WebAudioContext.state !== _vU._wU) _9V();
_VV()
}
function _VV() {
var _1W = _TV();
var map = _58();
_N4._2W = map;
_78(map, "event_type", "audio_system_status");
_78(map, "status", _1W ? "available" : "unavailable");
_b8._c8(_3W, 0);
_e8(map);
_N4._2W = -1
}
function _mV(_4W, _bV, _5W) {
var _6W = _7W(_bV);
var _8W = _4W._zV && !__U;
if (_6W.state != _pU._uU) {
var _9W = _aW._ta(_bV);
if (_6W.state == _pU._sU && !_8W && _9W) {
var _bW = _cW[_9W._v1];
if (_bW) _6W._nV(_bW, true)
}
_6W._jV.push([_zU._AU, _4W, _bV, _5W]);
return false
}
var _dW = _6W._hV;
if (_8W) _eW(_4W, _bV, _5W, _dW);
else _fW(_4W, _bV, _5W, _dW);
_4W._OU = true;
return true
}
function _eW(_4W, _bV, _5W, _gW, _hW) {
var _iW = _HV(_bV);
try {
if (_4W._CV != null) {
document.body.removeChild(_4W._CV)
}
_4W._CV = new Audio();
var _CV = _4W._CV;
_CV.controls = false;
_CV.autoplay = true;
_CV.preload = "none";
_CV.loop = (_5W) != 0 ? true : false;
_CV.src = _jW(null, null, _iW);
document.body.appendChild(_CV);
if (_gW > 0) {
_CV.addEventListener('loadedmetadata', function () {
_4W._CV.currentTime = _gW
}, false)
}
_CV.load();
try {
var _UV = _CV.play();
if (_UV !== undefined) {
_UV.then(function () {
if (_hW) _hW();
}).catch(function (error) {
console.log("playback failed ", error);
_kW(_4W)
})
}
} catch (_lW) {
debug("audio_tag.play() exception: " + _lW)
}
_4W._QU = _bV;
_CV.addEventListener("ended", function (e) {
if (_4W._CV == this) {
_kW(_4W)
} else {
document.body.removeChild(this)
}
}, false);
_4W._DV = g_WebAudioContext.createMediaElementSource(_CV);
_4W._DV.connect(_4W._RU)
} catch (_lW) {
debug("Audio_PlayStreamed exception: " + _lW);
return false
}
}
function _Jk() {
var _MU = g_WebAudioContext.createBufferSource();
var gain = g_WebAudioContext.createGain();
_MU.connect(gain);
gain.connect(g_WebAudioContext.destination);
gain.gain.value = 0;
_MU.start(0);
if (g_WebAudioContext.sampleRate === 48000) {
if (_0V == _1V) {
debug("Recreating audiocontext to fix sample rate");
try {
g_WebAudioContext = new AudioContext()
} catch (e) {
try {
g_WebAudioContext = new webkitAudioContext()
} catch (e) {
debug('Web Audio API not supported in this browser');
_Hk = _mW
}
}
g_WebAudioContext.addEventListener("statechange", _0W);
_VV();
_MU = g_WebAudioContext.createBufferSource();
gain = g_WebAudioContext.createGain();
_MU.connect(gain);
gain.connect(g_WebAudioContext.destination);
gain.gain.value = 0;
_MU.start(0);
_VU();
for (var _i2 = 0; _i2 < _9U; ++_i2) {
_TT[_i2]._RU = g_WebAudioContext.createGain()
}
debug("Sample rate now " + g_WebAudioContext.sampleRate)
}
}
}
function _nW() {
var _QU = -1;
for (index = 0; index < _1y._r1.length; index++) {
if (_1y._r1[index]._Nf == 1) {
_QU = index;
break
}
}
if (_QU == -1) return;
var _NU = _oW(_QU, 1, false);
if (_NU == null) return;
_NU._RU.gain.value = 0;
_NU._OU = true;
_eW(_NU, _QU, false, 0, function () {
_kW(_NU)
});
}
function _fW(_4W, _bV, _pW, _gW) {
_4W._QU = _bV;
try {
var _qW = null;
var _rW = false;
if (_bV >= _4U && _bV < (_4U + _7U)) {
_rW = true;
var _sW = _bV - _4U;
_5U[_sW]._tW.connect(_4W._RU);
_5U[_sW].gainnode = _4W._RU;
_qW = _5U[_sW]._tW
} else {
var _6W = _7W(_bV);
var _gV = _6W._gV;
if (_4W._sV != null) {
_gV *= _4W._sV._gV
}
_4W._vV = g_WebAudioContext.createBufferSource();
_4W._vV.playbackRate.value = _gV;
_4W._vV.loop = _pW;
_4W._vV.buffer = _6W.buffer;
_4W._vV.connect(_4W._RU);
_qW = _4W._vV
}
_4W._uV = g_WebAudioContext.currentTime;
_qW.onended = function (event) {
_4W._OU = false;
if (true === _4W._vV.loop) _fW(_4W, _bV, _pW, _gW)
};
if (!_rW) {
if (_gW != undefined) {
if (!_qW.start) _qW.noteOn(_gW);
else _qW.start(0, _gW);
_4W.playbackpoint = _gW
} else {
_qW.start(0);
_4W.playbackpoint = 0
}
}
} catch (_lW) {
debug("Audio_PlayUnstreamed exception: " + _lW)
}
}
function _kW(_4W) {
if (_4W._OU) {
if (_4W._zV) _uW(_4W);
else _vW(_4W);
_4W._QU = -1;
_4W._OU = false
}
}
function _uW(_4W) {
if (_4W._CV != null) {
try {
_4W._CV.pause();
_4W._DV.disconnect();
_4W._DV = null;
if (_4W._RU != null) _4W._RU.disconnect();
_NU._sV = null;
document.body.removeChild(_4W._CV);
_4W._CV = null
} catch (_lW) {
debug("Audio_StopStreamed exception: " + _lW)
}
}
}
function _vW(_4W) {
try {
if (_4W._QU >= _4U && _4W._QU < (_4U + _7U)) {
var _wW = _4W._QU - _4U;
_5U[_wW]._tW.onended = null;
_5U[_wW]._tW.disconnect()
} else if (_4W._vV != null) {
_4W._vV.onended = null;
_4W._vV.loop = false;
_4W._vV.stop(0);
_4W._vV.disconnect()
}
if (_4W._RU != null) _4W._RU.disconnect();
_4W._sV = null;
} catch (_lW) {
debug("Audio_StopUnstreamed exception: " + _lW)
}
}
function _xW(_4W) {
if (_4W._OU && !_4W.paused) {
if (_4W._BV) {
_yW(_4W)
} else if (_4W._zV) _zW(_4W);
else _yW(_4W);
_4W.paused = true
}
}
function _zW(_4W) {
try {
_4W._CV.pause()
} catch (_lW) {
debug("Audio_PauseStreamed exception: " + _lW)
}
}
function _yW(_4W) {
try {
if (_4W._QU >= _4U && _4W._QU < (_4U + _7U)) {
var _wW = _4W._QU - _4U;
_5U[_wW]._tW.disconnect(0);
_5U[_wW]._tW.onended = null
} else {
_4W._vV.onended = null;
_4W._vV.stop(0);
_4W.playbackpoint = _AW(_4W);
}
} catch (_lW) {
debug("Audio_PauseUnstreamed exception: " + _lW)
}
}
function _BW(_4W) {
if (_4W._OU && _4W.paused) {
if (_4W._BV) {
_CW(_4W)
} else if (_4W._zV) _DW(_4W);
else _CW(_4W);
_4W.paused = false
}
}
function _DW(_4W) {
if (_4W.paused) {
try {
_4W._CV.play()
} catch (_lW) {
debug("Audio_ResumeStreamed exception: " + _lW)
}
}
}
function _CW(_4W) {
try {
if (_4W._QU >= _4U && _4W._QU < (_4U + _7U)) {
var _wW = _4W._QU - _4U;
_5U[_wW]._tW.connect(_4W._RU);
_5U[_wW]._tW.onended = function (event) {
_4W._OU = false
};
} else {
var _gV = (_4W._vV != null) ? _4W._vV.playbackRate.value : 1;
_4W._vV = g_WebAudioContext.createBufferSource();
_4W._vV.playbackRate.value = _gV;
_4W._uV = g_WebAudioContext.currentTime;
_4W._RU = g_WebAudioContext.createGain();
var _SU = _7W(_4W._QU);
_4W._RU.gain.value = _4W.gain * _SU.gain;
_4W._vV.connect(_4W._RU);
_4W._vV.onended = function (event) {
_4W._OU = false
};
if (_4W._sV != null) {
_4W._RU.connect(_4W._sV)
} else {
_4W._RU.connect(_WU)
}
_4W._vV.buffer = _SU.buffer;
if (_4W._wV > 0) _4W._vV.loop = true; {
var _EW = Math.floor(_4W.playbackpoint / _4W._vV.buffer.duration);
var _FW = _4W.playbackpoint - _EW * _4W._vV.buffer.duration;
_4W._vV.start(0, _FW)
}
}
} catch (_lW) {
debug("Audio_ResumeUnstreamed exception: " + _lW)
}
}
function _GW(_4W) {
var _HW = false;
if (_4W._OU) {
return _4W.paused
}
return false
}
function _IW(_4W) {
var _JW = false;
if (_4W._OU) {
if (_4W._BV) {
var _KW = _5U[_4W._QU - _4U];
if (!_KW) return false;
if (!_KW._tW) return false;
if (!_KW._tW.onended) return false;
else return true
} else if (_4W._zV) _JW = _LW(_4W);
else _JW = _MW(_4W)
}
return _JW
}
function _MW(_4W) {
if (_4W._vV != null) {
if ((_4W._vV.playbackState == undefined || _4W._vV.playbackState != _4W._vV.FINISHED_STATE) || _4W.paused) {
return true
}
}
return false
}
function _LW(_4W) {
if (_4W._CV != null) {
if (!_4W._CV.ended) {
return true
}
}
return false
}
function _oW(_bV, _qV, _rV) {
if (_Hk != _Ik) return null;
var _i2;
var _MU;
for (_i2 = 0; _i2 < _9U; ++_i2) {
_MU = _TT[_i2];
if (!_MU._OU) {
_MU._OJ(_bV, _qV, _rV);
return _MU
} else {
if (_MU._BV && _MU._QU == _bV) return null;
var _NW = false;
if (_MU._zV) {
_NW = _MU._CV == null || _MU._CV.ended
} else {
_NW = ((_MU._vV != null && _MU._vV.playbackState != undefined && _MU._vV.playbackState == _MU._vV.FINISHED_STATE) && !_MU.paused)
}
if (_NW) {
_MU._OJ(_bV, _qV, _rV);
return _MU
}
}
}
if (_9U < __T) {
var _OW = new _NU(_bV, _qV, _rV);
_TT[_9U] = _OW;
++_9U;
return _OW
}
var _PW = _qV;
var _QW = -1;
for (_i2 = 0; _i2 < _9U; ++_i2) {
_MU = _TT[_i2];
if (_MU._yV < _PW) {
_QW = _i2;
_PW = _MU._yV
}
}
if (_QW >= 0) {
debug("killing sound on channel " + _QW);
var _RW = _TT[_QW];
_kW(_RW);
_RW._OJ(_bV, _qV, _rV);
return _RW
}
debug("reached max sounds and no lower priority");
return null
}
function _7W(_QU) {
var _6W = null;
if (_QU >= 0 && _QU <= audio_sampledata.length) {
_6W = audio_sampledata[_QU]
} else {
var _SW = _QU - _0U;
if (_SW >= 0 && _SW < _3U) {
_6W = _2U[_SW]
} else {
var _wW = _QU - _4U;
if (_wW >= 0 && _wW < _7U) {
_6W = _6U[_wW]
}
}
}
return _6W
}
function _TW(_UW, _QU, _wV, _yV) {
_UW = yyGetInt32(_UW);
_QU = yyGetInt32(_QU);
_wV = yyGetInt32(_wV);
_yV = yyGetReal(_yV);
if (!_TV()) {
debug("audio_play_sound_on failed. WebAudio Context suspended - user must interact with the page before audio can be played.");
return -1
}
if (!_VW(_UW)) {
debug("Attempting to play sound on inactive emitter:" + _UW);
return -1
}
var _WW = _WT[_UW];
var _OW = _XW(_WW, _QU, _wV, _yV);
if (_OW != null) return _OW._tV;
return -1
}
function _XW(_WW, _QU, _wV, _yV) {
var _6W = _7W(_QU);
if (_6W == null) {
debug("audio_play_sound - invalid sound index: " + _QU);
return null
}
var _iV = _6W._iV;
if (!_YW(_iV)) {
debug(_ZW(_QU) + ": Audio Group " + _iV + " is not loaded");
return null
}
var _OW = _oW(_QU, _yV, _wV);
if (_OW == null) return null;
_OW._sV = _WW;
_OW._RU.connect(_OW._sV);
_mV(_OW, _QU, (_wV > 0));
return _OW
}
function __W(_bV) {
if (_Hk != _Ik) return;
_bV = yyGetInt32(_bV);
var _MU;
if (_bV >= _UT) {
_MU = _dV(_bV);
if (_MU != null) {
if (_MU._BV) {
_aU[_MU._tV - _UT] = undefined
}
_kW(_MU)
}
} else {
for (var _i2 = 0; _i2 < _9U; ++_i2) {
_MU = _TT[_i2];
if (_MU._QU == _bV) _kW(_MU);
}
}
}
function _0X(_bV) {
if (_Hk != _Ik) return;
_bV = yyGetInt32(_bV);
var _MU;
if (_bV >= _UT) {
_MU = _dV(_bV);
if (_MU != null) {
_xW(_MU)
}
} else {
for (var _i2 = 0; _i2 < _9U; ++_i2) {
_MU = _TT[_i2];
if (_MU._QU == _bV) {
_xW(_MU)
}
}
}
}
function _1X(_bV) {
if (_Hk != _Ik) return;
_bV = yyGetInt32(_bV);
if (_bV >= _UT) {
var _MU = _dV(_bV);
if (_MU != null) {
_BW(_MU)
}
} else {
for (var _i2 = 0; _i2 < _9U; ++_i2) {
var _MU = _TT[_i2];
if (_MU._QU == _bV) {
_BW(_MU)
}
}
}
}
function _2X(index) {
for (var _i2 = 0; _i2 < _bU.length; ++_i2) {
if (_bU[_i2]._QU == index) {
_bU.splice(_i2, 1);
return
}
}
}
function _3X(index, _4X, time) {
for (var _i2 = 0; _i2 < _bU.length; ++_i2) {
if (_bU[_i2]._QU == index) {
_bU[_i2] = new _aV(index,
_4X, time);
return
}
}
_bU.push(new _aV(index, _4X, time))
}
function _4V() {
if (_Hk == _Ik) {
if (document[_UU] == true) {
if (!_YT) {
_YT = true;
_5X(true)
}
} else if (document[_UU] == false) {
if (_YT) {
_6X(true);
_YT = false
}
}
}
}
function _AW(_4W) {
if (_4W._OU) {
if (!_4W._zV) {
var time = _4W.playbackpoint;
if (!_4W.paused) {
var _gV = _4W._vV.playbackRate.value;
time += (g_WebAudioContext.currentTime - _4W._uV) * _gV
}
if (_4W._wV > 0) {
var duration = _4W._vV.buffer.duration;
time %= duration
}
return time;
} else {
if (_4W._CV != null) {
var time = _4W._CV.currentTime;
return time
}
}
}
return 0
}
function _7X(_4W, _Fa) {
if (_4W._OU) {
if (!_4W._zV) {
var duration = _4W._vV.buffer.duration;
if (_Fa >= 0 && _Fa < duration) {
if (_4W.paused) {
_4W.playbackpoint = _Fa
} else {
_4W._vV.stop(0);
_4W._vV.disconnect();
_fW(_4W, _4W._QU, _4W._wV > 0, _Fa)
}
}
} else {
try {
_4W._CV.currentTime = _Fa
} catch (_lW) {
debug("Audio_SetTrackPos exception: " + _lW);
_4W._CV.addEventListener('loadedmetadata', function () {
_4W._CV.currentTime = _Fa
}, false)
}
}
}
}
function _VW(_8X) {
if (_WT[yyGetInt32(_8X)] != undefined) return true;
return false
}
function _ZW(_I8) {
if (_Hk == _Ik) {
_I8 = yyGetInt32(_I8);
var _9X = -1;
if (_I8 >= _UT) {
var _MU = _dV(_I8);
if (_MU != null) {
_9X = _MU._QU
}
} else {
_9X = _I8
}
if (_9X >= 0 && _9X < _1y._r1.length) {
var name = _1y._r1[_9X]._v1;
return name
}
}
return ""
}
var _aX;
var _bX;
function _2V(_cX) {
if (_Hk != _Ik) {
return
}
_cX = yyGetInt32(_cX);
if (_cX == _bX) return;
var _dX = g_WebAudioContext.createPanner();
_bX = _cX;
switch (_cX) {
case _dU._eU:
_aX = _dX.INVERSE_DISTANCE;
if (_aX == undefined) _aX = "inverse";
break;
case _dU._fU:
_aX = _dX.INVERSE_DISTANCE;
if (_aX == undefined) _aX = "inverse";
break;
case _dU._gU:
debug("Audio_falloff_inverse_distance_clamped not supported in html5\n");
break;
case _dU._hU:
_aX = _dX.LINEAR_DISTANCE;
if (_aX == undefined) _aX = "linear";
break;
case _dU._iU:
debug("Audio_falloff_linear_distance_clamped not supported in html5\n");
break;
case _dU._jU:
_aX = _dX.EXPONENTIAL_DISTANCE;
if (_aX == undefined) _aX = "exponential";
break;
case _dU._kU:
debug("Audio_falloff_exponent_distance_clamped not supported in html5\n");
break;
default:
debug("Attempting to set audio falloff to unknown model\n");
break
}
for (var key in _WT) {
if (!_WT.hasOwnProperty(key)) continue;
var _WW = _WT[key];
_WW.distanceModel = _aX;
if (_bX == _dU._eU) {
_WW._eX = _WW.rolloffFactor;
_WW.rolloffFactor = 0
} else if (typeof _WW._eX !== 'undefined') {
_WW.rolloffFactor = _WW._eX;
_WW._eX = undefined
}
}
}
function _5X(_fX) {
for (var _i2 = 0; _i2 < _9U; ++_i2) {
var _MU = _TT[_i2];
if (_MU._OU) {
if (!_MU.paused) {
_xW(_MU);
if (_fX) _MU._xV = true
}
}
}
}
function _gX(_hX) {
for (var _i2 = 0; _i2 < _9U; ++_i2) {
var _MU = _TT[_i2];
if (_MU._OU) {
var _iV = audio_sampledata[_MU._QU]._iV;
if (_iV == _hX) {
_kW(_MU)
}
}
}
}
function _6X(_fX) {
for (var _i2 = 0; _i2 < _9U; ++_i2) {
var _MU = _TT[_i2];
if (_MU._OU) {
if (_MU.paused) {
if (_fX) {
if (_MU._xV) {
_BW(_MU);
_MU._xV = false
}
} else {
_BW(_MU)
}
}
}
}
}
function _iX(_bV) {
if (_Hk !== _Ik) return false;
_bV = yyGetInt32(_bV);
if (_bV >= _UT) {
var _MU = _dV(_bV);
if (_MU != null) {
return _GW(_MU)
}
} else {
for (var _i2 = 0; _i2 < _9U; ++_i2) {
_MU = _TT[_i2];
if (_MU._QU == _bV) {
if (_MU._OU) {
if (_GW(_MU)) {
return true
}
}
}
}
}
return false
}
function _5V(_jX, _kX, _lX) {
if (_Hk == _Ik) {
_jX = yyGetReal(_jX);
_kX = yyGetReal(_kX);
_lX = yyGetReal(_lX);
var _mX = g_WebAudioContext.listener;
_mX.setPosition(_jX, _kX, _lX);
if (_mX._Bl) {
_mX._Bl._Pu = _jX;
_mX._Bl._Qu = _kX;
_mX._Bl._Ru = _lX
} else {
_mX._Bl = new _iu(_jX, _kX, _lX)
}
}
}
function _6V(_jX, _kX, _lX, _nX, _oX, _pX) {
if (_Hk == _Ik) {
_jX = yyGetReal(_jX);
_kX = yyGetReal(_kX);
_lX = yyGetReal(_lX);
_nX = yyGetReal(_nX);
_oX = yyGetReal(_oX);
_pX = yyGetReal(_pX);
var _mX = g_WebAudioContext.listener;
_mX.setOrientation(_jX, _kX, _lX, _nX, _oX, _pX);
if (_mX._YU) {
_mX._YU[0] = _jX;
_mX._YU[1] = _kX;
_mX._YU[2] = _lX;
_mX._YU[3] = _nX;
_mX._YU[4] = _oX;
_mX._YU[5] = _pX
} else {
_mX._YU = new Array(_jX, _kX, _lX, _nX, _oX, _pX)
}
}
}
function _qX(_jX, _kX, _lX, _nX) {
if (_Hk == _Ik) {
var _WW = _WT[yyGetInt32(_jX)];
if (_WW != undefined) {
_kX = yyGetReal(_kX);
_lX = yyGetReal(_lX);
_nX = yyGetReal(_nX);
_WW.setPosition(_kX, _lX, _nX);
_WW._Bl._Pu = _kX;
_WW._Bl._Qu = _lX;
_WW._Bl._Ru = _nX
}
}
}
function _rX() {
_WW = g_WebAudioContext.createPanner();
_WW.gainnode = g_WebAudioContext.createGain();
_WW.gainnode.gain.value = 1.0;
_WW.gainnode.connect(_WU);
_WW.connect(_WW.gainnode);
_WW.maxDistance = 100000;
_WW.refDistance = 100;
_WW._gV = 1.0;
_WW.rolloffFactor = 1;
if (_bX == _dU._eU) {
_WW.rolloffFactor = 0;
_WW._eX = 1
}
_WW._sX = 360;
_WW._tX = 0;
_WW._uX = 0;
_WW.distanceModel = _aX;
_WW.panningModel = 'equalpower';
_WW.setPosition(0, 0, 0.01);
_WW._Bl = new _iu(0, 0, 0.01);
return _WW
}
function _vX() {
if (_Hk != _Ik) return;
var _ko = _XT;
_XT++;
_WT[_ko] = _rX();
return _ko
}
function _wX(_8X) {
if (_Hk == _Ik) {
_8X = yyGetInt32(_8X);
var _WW = _WT[_8X];
if (_WW != undefined) {
var _i2;
for (_i2 = 0; _i2 < _9U; ++_i2) {
var _MU = _TT[_i2];
if (_MU._OU && _MU._sV === _WW) {
_kW(_MU)
}
}
_WW.disconnect();
delete _WT[_8X]
}
}
}
function _xX(_jX, _kX) {
if (_Hk != _Ik) return;
var _WW = _WT[yyGetInt32(_jX)];
if (_WW != undefined) {
_WW.gainnode.gain.value = yyGetReal(_kX)
}
}
function _yX(index, _gV) {
if (_Hk != _Ik) return;
index = yyGetInt32(index);
if (_WT[index] == undefined) return;
_gV = yyGetReal(_gV);
_WT[index]._gV = _gV;
for (var _i2 = 0; _i2 < _9U; ++_i2) {
var _MU = _TT[_i2];
if (_MU._OU && !_MU.paused) {
if (!_MU._zV) {
if (_MU._vV.playbackState == undefined || _MU._vV.playbackState != _MU._vV.FINISHED_STATE) {
if (_MU._sV == _WT[index]) {
_MU.playbackpoint = _AW(_MU);
_MU._uV = g_WebAudioContext.currentTime;
_MU._vV.playbackRate.value = audio_sampledata[_MU._QU]._gV * _gV
}
}
} else {
debug("pitch setting not supported on streamed sounds")
}
}
}
} /*@this {XMLHttpRequest} */
function _zX(e) {
if (_Hk != _Ik) return;
var targetid = e.target.targetid;
debug("error loading sound" + targetid);
if (targetid == undefined) {} else {
debug("AudioError: " + this.URL);
this.completed = false;
_AX++;
ClearEventListeners(this)
}
} /*@this {XMLHttpRequest} */
function _BX(e) {
if (_Hk != _Ik) return;
var targetid = e.target.targetid;
if (_CX) debug("sound loaded: " + targetid);
if (targetid == undefined) {} else {
this.completed = true;
ClearEventListeners(this);
try {
var _SU = audio_sampledata[targetid];
_SU.state = _pU._tU;
g_WebAudioContext.decodeAudioData(e.target.response,
function (buffer) {
_SU.buffer = buffer;
_SU.state = _pU._uU;
_AX++
},
function (err) {
_SU.state = _pU._sU;
_AX++;
debug("error decoding audio data:" + err)
})
} catch (_bB) {
debug("error decoding audio data: " + _bB.message);
_AX++
}
}
}
function _DX(_48) {
if (_Hk != _Ik) return;
this.completed = true;
ClearEventListeners(this);
var targetid = _48.target.targetid;
if (_CX) debug("streamed sound pre-loaded: " + targetid);
var _SU = audio_sampledata[targetid];
if (_SU) {
_SU.state = _pU._sU
} else {
debug("ERROR: No sample data sound for sound ID " + _EX + " in Audio_StreamedSoundPreloaded")
}
}
function _FX(_vG, _el, _J8, _GX) {
var _SU = audio_sampledata[_el];
_SU.buffer = null;
if (__U) {
_HX(_vG, _el, _J8, _GX)
} else {
_SU.state = _pU._uU
}
}
function _IX(e) {
var targetid = e.target.targetid;
debug("Audio_SoundReadyStateChange:targetid/readyState/status:" + targetid + '/' + e.target.readyState + '/' + e.target.status)
}
function _JX(e) {
var targetid = e.target.targetid;
debug("Audio_SoundProgress:targetid/loaded/total:" + targetid + '/' + e._KX + '/' + e._LX)
}
function _MX(_vG, _GX) {
_vG = _KV(_vG);
var _MV;
var index;
index = _vG.indexOf(_GX);
if (index > 0) {
_vG = _vG.substr(0, index)
}
if (_OV) {
_GX = "ogg"
} else if (_PV) {
_GX = "mp3"
} else {
_GX = "ogg"
}
_vG = _vG + "." + _GX;
var _NX = new XMLHttpRequest();
_NX.open('GET', _vG, true);
_NX.responseType = 'arraybuffer';
_NX.URL = _vG;
_NX.completed = false;
return _NX
}
function _OX(_vG, _el, _J8, _GX, _PX) {
if ((_Hk != _Ik) || (_QX == false)) {
return undefined
}
var _NX = _MX(_vG, _GX);
if (_PX != undefined) {
_NX.targetid = {
_RX: _PX,
_9X: _el
};
_NX.onload = _SX;
_NX.onerror = _TX
} else {
_NX.targetid = _el;
_NX.onload = _BX;
_NX.onerror = _zX;
_NX.ontimeout = _zX;
_NX._UG = _JX;
_NX.onreadystatechange = _IX
}
_NX.send();
_cW[_J8] = _NX;
return _el
}
function _HX(_vG, _el, _J8, _GX) {
if ((_Hk != _Ik) || (_QX == false)) {
return undefined
}
var _NX = _MX(_vG, _GX);
_NX.targetid = _el;
_NX.onload = _DX;
_NX.onerror = _zX;
_NX.send();
_cW[_J8] = _NX;
return _el
}
var _UX = "Unloaded";
var _VX = "Loading";
var _WX = "Loaded";
var _XX = "Unloading";
var _YX = 0;
var _ZX = []; /*@constructor */
function __X(_hX) {
this._iV = _hX;
this._0Y = _UX;
this._1Y = 0;
this._2Y = 0;
this._3Y = []
}
__X.prototype._4Y = function (_5Y) {
this._3Y.push(_5Y)
};;
__X.prototype._6Y = function (_7Y) {
if (this._0Y != _7Y) {
this._0Y = _7Y;
debug("Audio Group " + this._iV + "-> " + this._0Y);
if (_7Y == _WX) {
var map = _58();
_N4._2W = map;
_78(map, "type", "audiogroup_load");
_78(map, "group_id", this._iV);
_b8._c8(_8Y, 0)
}
}
};; /*@this {XMLHttpRequest} */
function _SX(e) {
var targetid = this.targetid._9X;
var _9Y = this.targetid._RX;
if (_CX) debug("sound loaded " + targetid);
if (targetid != undefined) {
e.target.completed = true;
ClearEventListeners(this);
try {
var _SU = audio_sampledata[targetid];
_SU.state = _pU._tU;
g_WebAudioContext.decodeAudioData(e.target.response, function (buffer) {
_SU.buffer = buffer;
_SU.state = _pU._uU;
_9Y._aY()
}, function (err) {
_SU.state = _pU._sU;
_9Y._aY();
debug("error decoding audio data:" + err)
})
} catch (_bB) {
debug("error decoding audio data: " + _bB.message);
_9Y._aY()
}
}
} /*@this {XMLHttpRequest} */
function _TX(e) {
var targetid = this.targetid._9X;
var _9Y = this.targetid._RX;
debug("error loading sound" + targetid);
if (targetid != undefined) {
debug("AudioError: " + this.URL);
this.completed = false;
ClearEventListeners(this);
_9Y._aY()
}
}
__X.prototype._aY = function () {
this._1Y--;
if (this._3Y.length > 0) {
this._2Y = ((this._3Y.length - this._1Y) * 100) / (this._3Y.length)
}
if (this._1Y <= 0) {
this._6Y(_WX)
}
};;
__X.prototype._Lc = function () {
if (this._0Y != _UX) {
return 0
}
if (this._3Y.length == 0) {
return 0
}
this._6Y(_VX);
this._1Y = this._3Y.length;
this._2Y = 0;
var _i2;
for (_i2 = 0; _i2 < this._3Y.length; ++_i2) {
var index = this._3Y[_i2];
if (_1y._r1[index]._Nf == 0) {
var id = _OX(_0d + _1y._r1[index]._LV, index, _1y._r1[index]._v1, _1y._r1[index]._NV, this);
if (id === undefined) this._aY()
} else {
this._aY()
}
}
};;;
__X.prototype._bY = function () {
if (this._0Y == _WX) {
return 1
}
return 0
};;;
function _7V() {
var index;
var _cY = 1;
for (index = 0; index < _1y._r1.length; index++) {
if (_1y._r1[index] !== null) {
var _SU = new _eV();
audio_sampledata[index] = _SU;
_SU.buffer = null;
var _dY = _1y._r1[index].volume;
_SU.gain = _dY;
_SU._fV = _dY;
_SU._gV = 1.0;
_SU._Nf = _1y._r1[index]._Nf;
if (_1y._r1[index].duration != undefined) {
_SU.duration = _1y._r1[index].duration
}
_SU._iV = 0;
var _iV = _1y._r1[index]._iV;
if (_iV != undefined) {
_SU._iV = _iV
}
}
}
}
function _8V() {
if (_1y._s1) {
var _i2;
_YX = _1y._s1.length;
for (_i2 = 0; _i2 < _YX; ++_i2) {
_ZX[_i2] = new __X(_i2)
}
for (_i2 = 0; _i2 < audio_sampledata.length; ++_i2) {
var _MU = audio_sampledata[_i2];
if (_MU != undefined) {
var _iV = _MU._iV;
if (_ZX[_iV] != undefined) {
if (_1y._s1[_iV]._t1) _ZX[_iV]._4Y(_i2)
}
}
}
}
}
function _YW(_hX) {
_hX = yyGetInt32(_hX);
if (_hX == 0) {
return 1
}
if (_hX > 0 && _hX < _YX) {
var _9Y = _ZX[_hX];
var result = _9Y._bY();
return result
}
return 0
}
function _eY(_fY) {
return _fY
}
function _gY(_fY) {
return _fY
}
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
var _hY = !1;
var _iY = undefined;
function _LC(_el) {
if (_Hk != _mW) return false;
if (_aW._ta(_el) === null) return false;
return true
}
function _MC(_el) {
if (_Hk != _mW) return "";
var _6W = _aW._ta(_el);
if (_6W === null) return "";
return _6W._v1
}
var _jY = 0,
_kY = 1,
_lY = 2,
_mY = 3;
function _JC(_I8) {
if (_sa._ta(yyGetInt32(_I8)) == null) return false;
return true
}
function _ZL(_I8) {
var _rz = _sa._ta(yyGetInt32(_I8));
if (_rz == null) return 0;
return _rz.width
}
function __L(_I8) {
var _rz = _sa._ta(yyGetInt32(_I8));
if (_rz == null) return 0;
return _rz.height
}
function _KC(_I8) {
var _rz = _sa._ta(yyGetInt32(_I8));
if (_rz == null) return "";
return _rz._v1
}
var _nY = _oY;
function _oY(_l9, _ba, _ca, _7l, _8l, _Wm, _Xm) {
_l9 = yyGetInt32(_l9);
_ba = yyGetInt32(_ba);
_ca = yyGetInt32(_ca);
_7l = yyGetInt32(_7l);
_8l = yyGetInt32(_8l);
_Wm = yyGetBool(_Wm);
var _pY = document.createElement(_Cy);
var _qY = _pY.getContext('2d');
_rY(_qY);
var _sY = _sa._ta(_l9);
_sY._eb++;
_pY.width = _sY.width;
_pY.height = _sY.height;
_qY._tY(canvas, _ba, _ca, _7l, _8l, 0, 0, _pY.width, _pY.height);
if (_Wm) {
_pY.complete = _2n(_qY, _7l, _8l)
} else {
_pY.complete = true
}
_sY._eb++;
var _s9 = new _5n();
_sY._t9[_sY._t9.length] = _s9;
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _sY.width;
_s9._l2 = _sY.height;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _s9._k2;
_s9._M3 = _s9._l2;
_s9._N3 = _uY(_pY);
_s9._A9 = _w9[_s9._N3];
return _l9
}
var _vY = _wY;
function _wY(_el, _ba, _ca, _7l, _8l, _Wm, _Xm, _xY, _yY) {
_el = yyGetInt32(_el);
_ba = yyGetInt32(_ba);
_ca = yyGetInt32(_ca);
_7l = yyGetInt32(_7l);
_8l = yyGetInt32(_8l);
_Wm = yyGetBool(_Wm);
_xY = yyGetInt32(_xY);
_yY = yyGetInt32(_yY);
var _pY = document.createElement(_Cy);
var _qY = _pY.getContext('2d');
_rY(_qY);
_pY.width = _0n._ta(_el).width;
_pY.height = _0n._ta(_el).height;
_qY._tY(_0n._ta(_el), 0, 0);
if (_Wm) {
_pY.complete = _2n(_qY, _7l, _8l)
} else {
_pY.complete = true;
}
var _sY = new _zY();
var _AY = _sa._BY(_sY);
_sY._v1 = "surface.copy";
_sY.width = _7l;
_sY.height = _8l;
_sY._cH = new _4z();
_sY._cH.right = _sY.width;
_sY._cH.bottom = _sY.height;
_sY._w1 = true;
_sY._x1 = true;
_sY.preload = true;
_sY._CY = 0;
_sY._DY = false;
_sY._z1 = _xY;
_sY._A1 = _yY;
_sY._EY = true;
_sY._eb = 1;
_sY._FY = false;
_sY._GY = false;
_sY._fb = [];
_sY._t9 = [];
_sY._G1 = [];
_sY._HY();
var _s9 = new _5n();
_sY._t9[0] = _s9;
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _sY.width;
_s9._l2 = _sY.height;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _s9._k2;
_s9._M3 = _s9._l2;
_s9._N3 = _uY(_pY);
_s9._A9 = _w9[_s9._N3];
_IY(_s9);
return _AY
}
var _JY = _KY;
function _KY(_l9, _el, _ba, _ca, _7l, _8l, _Wm, _Xm) {
_l9 = yyGetInt32(_l9);
_el = yyGetInt32(_el);
_ba = yyGetInt32(_ba);
_ca = yyGetInt32(_ca);
_7l = yyGetInt32(_7l);
_8l = yyGetInt32(_8l);
_Wm = yyGetBool(_Wm);
var _pY = document.createElement(_Cy);
var _qY = _pY.getContext('2d');
_rY(_qY);
var _sY = _sa._ta(_l9);
_sY._eb++;
_pY.width = _sY.width;
_pY.height = _sY.height;
_qY._tY(_0n._ta(_el), 0, 0, _7l, _8l, 0, 0, _pY.width, _pY.height);
if (_Wm) {
_pY.complete = _2n(_qY, _7l, _8l)
} else {
_pY.complete = true
}
var _s9 = new _5n();
_sY._t9[_sY._t9.length] = _s9;
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _sY.width;
_s9._l2 = _sY.height;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _s9._k2;
_s9._M3 = _s9._l2;
_s9._N3 = _uY(_pY);
_s9._A9 = _w9[_s9._N3];
return _l9
}
var _LY = _MY;
function _MY(_l9) {
var _rz = _sa._ta(yyGetInt32(_l9));
if (_rz == null) return 0;
var _sY = new _zY();
var _AY = _sa._BY(_sY);
_sY._v1 = _rz._v1 + ".copy";
_sY.width = _rz.width;
_sY.height = _rz.height;
_sY._cH._al(_rz._cH);
_sY._w1 = _rz._w1;
_sY._x1 = _rz._x1;
_sY.preload = _rz.preload;
_sY._CY = _rz._CY;
_sY._DY = _rz._DY;
_sY._z1 = _rz._z1;
_sY._A1 = _rz._A1;
_sY._EY = true;
_sY._eb = _rz._eb;
_sY._NY = _rz._NY;
_sY._FY = _rz._FY;
_sY._t8 = _rz._t8;
_sY._E1 = _rz._E1;
_sY._GY = _rz._GY;
_sY._fb = [];
_sY._t9 = [];
_sY._G1 = [];
for (var _i2 = 0; _i2 < _rz._eb; _i2++) {
var _s9 = new _5n();
_sY._t9[_i2] = _s9;
_s9._EY(_rz._t9[_i2]);
var _OY = _PY(_rz._t9[_i2]);
_s9._N3 = _uY(_OY);
_s9.x = 0;
_s9.y = 0;
_s9._A9 = _w9[_s9._N3]
}
return _AY
}
function _QY(_RY, _SY,
_TY, _UY, _Vg, _VY) {
var _k2 = _SY._L3;
var _l2 = _SY._M3;
var _WY = _l2 * _k2;
var _XY = new Uint8Array(_WY);
for (var _nb = 0; _nb < _WY; _nb++) _XY[_nb] = false;
if (_Vg == _jY) {
var _YY = _ZY(_SY);
var index = 0;
for (var _i2 = 0; _i2 < _YY.length; _i2 += 4) {
if (_YY[_i2 + 3] > _VY) {
_XY[index] = true
} else {
_XY[index] = false
}
index++
}
} else {
switch (_Vg) {
case _kY: {
for (var y = _UY.top; y <= _UY.bottom; y++) {
for (var x = _UY.left; x <= _UY.right; x++) {
_XY[x + (y * _k2)] = true
}
}
break
}
case _lY: {
var _Db = (_UY.left + _UY.right) / 2;
var _of = _Db - _UY.left + 0.5;
var _Eb = (_UY.top + _UY.bottom) / 2;
var _pf = _Eb - _UY.top + 0.5;
for (var y = _UY.top; y <= _UY.bottom; y++) {
for (var x = _UY.left; x <= _UY.right; x++) {
if ((_of > 0) && (_pf > 0)) {
_XY[x + (y * _k2)] = _Hb((x - _Db) / _of) + _Hb((y - _Eb) / _pf) < 1
}
}
}
break
}
case _mY: {
var _Db = (_UY.left + _UY.right) / 2;
var _of = _Db - _UY.left + 0.5;
var _Eb = (_UY.top + _UY.bottom) / 2;
var _pf = _Eb - _UY.top + 0.5;
for (var y = _UY.top; y <= _UY.bottom; y++) {
for (var x = _UY.left; x <= _UY.right; x++) {
if ((_of > 0) && (_pf > 0)) {
_XY[x + (y * _k2)] = Math.abs((x - _Db) / _of) + Math.abs((y - _Eb) / _pf) < 1
}
}
}
break
}
}
}
if (_RY != null) {
for (var _i2 = 0; _i2 < _XY.length; _i2++) {
if (_RY[_i2]) _XY[_i2] = true
}
}
return _XY
}
function __Y(_0Z, _1Z) {
_0Z = yyGetInt32(_0Z);
if (_JC(_0Z)) {
var _2Z = _sa._ta(_0Z);
var _s9 = _2Z._3Z(yyGetInt32(_1Z));
if (_s9) {
return ({
_Wg: _s9._A9,
_Xg: _s9
})
}
}
return null
}
function _SB(_z8) {
_z8 = yyGetInt32(_z8);
if (_z8 >= 0x10000) {
var _4Z = _z8;
_4Z -= 0x10000;
var _5Z = (((_4Z >> 10) & 0x3FF) + 0xD800);
var _6Z = (_4Z & 0x3FF) + 0xDC00;
var result = String.fromCharCode(_5Z, _6Z);
return result
} else {
return String.fromCharCode(_z8)
}
return 0
}
function _7Z(_Yz) {
if (!_Yz || _Yz == "") return 0;
_Yz = yyGetString(_Yz);
var _4Z = _Yz.charCodeAt(0);
var _8Z, _9Z;
if (0xD800 <= _4Z && _4Z <= 0xDBFF) {
_8Z = _4Z;
_9Z = _Yz.charCodeAt(1);
return ((_8Z - 0xD800) * 0x400) + (_9Z - 0xDC00) + 0x10000
}
return _4Z
}
function _r5(_Tl) {
return yyGetString(_Tl)
}
var _aZ = [];
function _bZ(_cZ) {
debug("myBrandConnectReadyEvent");
_aZ = _cZ
}
function _dZ() {
_Qy()
}
function _eZ() {
_fZ = true;
debug("myBrandConnectDoneEvent")
}
function _gZ() {
var _hZ = document.getElementById("ssaBrandConnectInterstitial");
var _iZ = document.getElementById("gm4html5_div_id");
_iZ.appendChild(_hZ);
_Gy()
}
var _jZ = !1;
var _fZ = !1;
var ssa_json = {
'applicationUserId': '1234',
'applicationKey': '2b46ec59',
'onCampaignsReady': _bZ,
'onCampaignsDone': _eZ,
'onCampaignClose': _dZ,
'onCampaignOpen': _gZ,
'maxWidth': 1000,
'maxHeight': 700
};
var _kZ = (function (_Xn, _jb) {
var _89 = _Xn.createElement(_jb),
_wy = _Xn.getElementsByTagName(_jb)[0];
_89._lZ = !0;
_89.src = ('https:' != location.protocol ? 'http://jsd.supersonicads.com' : 'https://a248.e.akamai.net/ssastatic.s3.amazonaws.com') + '/inlineDelivery/delivery.min.gz.js';
_wy.parentNode.insertBefore(_89, _wy)
});
var _mZ = ads_engagement_launch;
function ads_engagement_launch(_nZ,
_oZ) {
if (SSA_CORE != undefined) SSA_CORE.BrandConnect.engage()
}
var _pZ = [];
var _qZ = !0;
var _rZ = _sZ;
function _sZ(_el, _7l, _8l) {
_el = yyGetInt32(_el);
_7l = yyGetInt32(_7l);
_8l = yyGetInt32(_8l);
if (_el == _tZ) {
_uZ = true;
_vZ = _7l;
_wZ = _8l;
return 1
}
if (!_xZ(_el)) {
_hl("Surface does not exist");
return 0
}
if (_yZ(_el)) {
_ly("Error: Surface in use via surface_set_target(). It can not be resized until it has been removed from the surface stack.");
return
}
_Zm(_7l, _8l, _el);
return 0
}
var _Zm = _zZ;
function _zZ(_7l, _8l, _AZ) {
_7l = yyGetInt32(_7l);
_8l = yyGetInt32(_8l);
var _bn = document.createElement(_Cy);
_bn._eh = _bn.width = _7l;
_bn._fh = _bn.height = _8l;
_bn.complete = true;
_bn._BZ = false;
_bn.name = "";
_bn._5e = _bn.getContext('2d');
_rY(_bn._5e);
var _s9 = new _5n();
_bn._CZ = _s9;
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _7l;
_s9._l2 = _8l;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _s9._k2;
_s9._M3 = _s9._l2;
if (_AZ != undefined) {
_0n._Yl(_AZ, _bn);
_s9._N3 = _AZ
} else {
_s9._N3 = _0n._Vj(_bn)
}
_s9._A9 = _bn;
_s9._Ic = [];
_s9._Jc = 0;
_s9._Kc = 4;
_s9._DZ = 0;
_s9._EZ = null;
_s9._pY = _bn;
return _s9._N3
}
var _FZ = _GZ;
function _GZ(_el) {
_el = yyGetInt32(_el);
if (_el < 0) {
return
}
if (!_xZ(_el)) {
_hl("Surface does not exist");
return 0
}
if (_yZ(_el)) {
_ly("Error: Surface in use via surface_set_target(). It can not be freed until it has been removed from the surface stack.");
return
}
_0n._ul(_el)
}
function _xZ(_el) {
if (_0n._ta(yyGetInt32(_el)) != null) return 1;
else return 0
}
function _HZ(_el) {
var _bn = _0n._ta(yyGetInt32(_el));
if (_bn != null) {
return _bn._eh
}
return 0
}
function _IZ(_el) {
var _bn = _0n._ta(yyGetInt32(_el));
if (_bn != null) {
return _bn._fh
}
return 0
}
function _JZ(_el) {
var _bn = _0n._ta(yyGetInt32(_el));
if (_bn != null) {
return ({
_Wg: _bn._A9,
_Xg: _bn._CZ
})
}
return -1
}
function _yZ(_el) {
_el = yyGetInt32(_el);
if (_KZ == _el) return true;
var _0y = _LZ.length;
for (var _i2 = 0; _i2 < _0y; _i2++) {
if (_LZ[_i2] == _el) return true
}
return false
}
var _MZ = _NZ;
function _NZ(_el) {
_el = yyGetInt32(_el);
var _bn = _0n._ta(_el);
if (_bn != null) {
if (!_xc) _CD();
_pZ.push({
_OZ: _PZ,
_QZ: _ru,
_RZ: _5e,
_SZ: _TZ,
_UZ: _VZ,
_WZ: _XZ,
_YZ: _ZZ,
__Z: _FD,
_0_: _GD,
_1_: _HD,
_2_: _ID,
});
_LZ.push(_KZ);
_KZ = _el;
if (_xc) {
_PZ = _bn._OZ;
_xc._3_(_bn._OZ);
_ru = -1
} else {
g_CurrentGraphics = _bn._5e;
_5e = _bn._5e;
_4_(_5e)
}
}
}
var _5_ = _6_;
function _6_(_el) {
_el = yyGetInt32(_el);
var _bn = _0n._ta(_el);
if (_bn != null) {
if (!_xc) _CD();
_pZ.push({
_OZ: _PZ,
_QZ: _ru,
__Z: _FD,
_0_: _GD,
_1_: _HD,
_2_: _ID,
_SZ: _TZ,
_UZ: _VZ,
_WZ: _XZ,
_YZ: _ZZ,
_RZ: _5e,
});
_LZ.push(_KZ);
_KZ = _el;
if (_xc) {
_PZ = _bn._OZ;
_xc._3_(_bn._OZ);
_ru = -1
} else {
g_CurrentGraphics = _bn._5e;
_5e = _bn._5e;
_4_(_5e)
}
_7_(0, 0, _bn._eh, _bn._fh);
if (_s8) {
_8_(0, 0, _bn._eh, _bn._fh, 0)
} else {
_9_(0, 0, _bn._eh, _bn._fh, 0)
}
if (_xc) _xc._a_();
_dG();
if (!_xc) {
_4_(_5e)
}
}
}
var _b_ = _c_;
function _c_() {
var _d_ = _pZ.pop();
if (_d_) {
_FD = _d_.__Z;
_GD = _d_._0_;
_HD = _d_._1_;
_ID = _d_._2_;
_TZ = _d_._SZ;
_VZ = _d_._UZ;
_XZ = _d_._WZ;
_ZZ = _d_._YZ;
if (!_xc) {
_5e = _d_._RZ;
_JD()
} else {
_ru = _d_._QZ;
_PZ = _d_._OZ
}
_7_(_FD, _GD, _HD, _ID);
if (_s8) {
_8_(_TZ, _VZ, _XZ, _ZZ, 0)
} else {
_9_(_TZ, _VZ, _XZ, _ZZ, 0)
}
} else {
_ly("Error: Surface stacking error detected")
}
if (_xc) _xc._3_(_PZ);
_KZ = _LZ.pop();
if (_KZ == null) _KZ = -1;
if (!_xc) _4_(_5e);
_dG()
}
function _5F(_e_, _ba, _ca) {
var data = null;
var _1n = _e_.getContext('2d');
try {
data = _1n._f_(_ba,
_ca, 1, 1)
} catch (_bB) {
return 0xff000000
}
var _g_ = data.data;
var index = 0;
var _h_ = _g_[index] & 0xff;
var _i_ = _g_[index + 1] & 0xff;
var _j_ = _g_[index + 2] & 0xff;
var _k_ = _g_[index + 3] & 0xff;
return (_h_ | (_i_ << 8) | (_j_ << 16) | (_k_ << 24))
}
var _l_ = _m_;
var _n_ = _o_;
function _m_(_el, _ba, _ca) {
return _o_(_el, _ba, _ca) & 0xffffff
}
function _o_(_el, _ba, _ca) {
var _bn = _0n._ta(yyGetInt32(_el));
if (_bn != null) {
return _5F(_bn, yyGetInt32(_ba), yyGetInt32(_ca))
}
return 0x00000000
}
var _p_ = _q_;
function _q_(_el, _ba, _ca) {
var _bn = _0n._ta(yyGetInt32(_el));
if (!_bn) return;
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
var alpha = _5e.globalAlpha; {
_5e.globalAlpha = _1h;
_5e._tY(_bn, _ba, _ca)
}
_5e.globalAlpha = alpha
}
function _r_(_el, _ba, _ca, _7l, _8l) {
var _bn = _0n._ta(yyGetInt32(_el));
if (!_bn) return;
_s_(_bn._CZ, yyGetReal(_ba), yyGetReal(_ca), yyGetReal(_7l), yyGetReal(_8l), 0xffffff, 1.0)
}
var _t_ = _u_;
function _u_(_el, _ba, _ca, _Yv, _Zv, _v_, _Bd) {
_Of("draw_surface_tiled_ext()")
}
function _w_(_x_, _ba, _ca, _y_) {
var __m = _0n._ta(yyGetInt32(_x_));
var _8n = _0n._ta(yyGetInt32(_y_));
if (__m != null && _8n != null) {
var _1n = __m.getContext('2d');
_1n.save();
_1n.globalCompositeOperation = 'copy';
_1n.drawImage(_8n, yyGetInt32(_ba), yyGetInt32(_ca));
_1n.restore()
}
}
function _z_(_x_, _ba, _ca, _y_, _o9, _p9, _A_, _B_) {
var __m = _0n._ta(yyGetInt32(_x_));
var _8n = _0n._ta(yyGetInt32(_y_));
if (__m != null && _8n != null) {
_ba = yyGetReal(_ba);
_ca = yyGetReal(_ca);
_o9 = yyGetReal(_o9);
_p9 = yyGetReal(_p9);
_A_ = yyGetReal(_A_);
_B_ = yyGetReal(_B_);
var _DD = [];
var _1n = __m.getContext('2d');
_1n.save();
_DD[0] = 1;
_DD[1] = 0;
_DD[2] = 0;
_DD[3] = 1;
_DD[4] = 0;
_DD[5] = 0;
_1n.setTransform(_DD[0], _DD[1], _DD[2],
_DD[3], _DD[4], _DD[5]);
_1n.beginPath();
_1n.rect(_ba, _ca, _A_, _B_);
_1n.clip();
_1n.globalCompositeOperation = 'copy';
_1n.drawImage(_8n, _o9, _p9, _A_, _B_, _ba, _ca, _A_, _B_);
_1n.restore()
}
} /*@constructor */
function _C_() {
this._D_ = [];
this._E_ = {};
this._F_ = {}
};
function _G_(_GC, _H_) {
var _I_ = (((_GC & 0xff) << 24) | (_H_ & 0xffffff));
return _I_
};
_C_.prototype._J_ = function (_K_, _L_) {
this._D_ = _K_.slice();
for (var _i2 = 0; _i2 < _K_.length; ++_i2) this._E_[_K_[_i2]] = _i2;
for (var _i2 = 0; _i2 < _L_.length; ++_i2) {
var _1m = _L_[_i2];
this._F_[_1m.key] = _1m._M_.slice();
}
};;
_C_.prototype._N_ = function (_H_, _GC) {
var _I_ = _G_(_GC, _H_);
var _O_ = this._F_[_I_];
if (_O_ == undefined) return null;
return _O_
};;;
_C_.prototype._P_ = function (_Q_, _R_) {
var _S_ = [];
var _T_ = Array.isArray(_Q_) ? _Q_ : [_Q_];
for (var _i2 = 0; _i2 < _T_.length; ++_i2) {
var _U_ = _T_[_i2];
var _V_ = this._E_[_U_];
if (_V_ === undefined && _R_) {
_V_ = this._D_.length;
this._E_[_U_] = _V_;
this._D_.push(_U_)
}
if (_V_ !== undefined) _S_.push(_V_)
}
return _S_
};;;;;;;;
function _A6(_qm) {
var index;
index = _qm._15;
_kc = _qm; {
var _2Z = _sa._ta(index);
if (_2Z != null) {
_2Z._cd(_qm._tz,
_qm.x, _qm.y, _qm._vz, _qm._wz, _qm._55, _qm._rm, _qm._u5)
}
}
_kc = null
}
function _D6(_hn, _n8, _W_, _ba, _ca, _Yv, _Zv, _q9, _ih, _Bd) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
_Bd = min(1.0, _Bd);
_rz._cd(_W_, _ba, _ca, _Yv, _Zv, _q9, _4h(_ih), _Bd)
}
}
function _B6(_hn, _n8, _W_, _ba, _ca) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
_rz._X_(_W_, _ba, _ca, _1h)
}
}
function _C6(_hn, _n8, _W_, _xb, _yb, _Za, __a, _8F, _9F, _Y_, _Z_, _Bd) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
_Bd = min(1.0, _Bd);
_rz.___(_W_,
_xb, _yb, _Za, __a, _8F, _9F, _Y_, _Z_, _Bd);
}
}
function _E6(_hn, _n8, _W_, _ba, _ca, _7l, _8l) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
if (_rz._eb <= 0) return;
_W_ = (~~_W_) % _rz._eb;
if (_W_ < 0) _W_ = _W_ + _rz._eb;
if ((_rz._001 != null) && (_rz._001._t1 == true)) {
_rz._001._cd(_ba, _ca, _7l, _8l, 0, 0xffffff, _1h, _W_, _rz)
} else {
_s_(_rz._t9[_W_], _ba, _ca, _7l, _8l, 0xffffff, _1h)
}
}
}
function _F6(_hn, _n8, _W_, _ba, _ca, _7l, _8l, _3h, _Bd) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
if (_rz._eb <= 0) return;
_W_ = (~~_W_) % _rz._eb;
if (_W_ < 0) _W_ = _W_ + _rz._eb;
if ((_rz._001 != null) && (_rz._001._t1 == true)) {
_rz._001._cd(_ba, _ca, _7l, _8l, 0, _4h(_3h), _Bd, _W_, _rz)
} else {
_s_(_rz._t9[_W_], _ba, _ca, _7l, _8l, _4h(_3h), _Bd)
}
}
}
function _G6(_hn, _n8, _W_, _JH, _KH, _Fc, _Gc, _ba, _ca) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
if (_rz._eb <= 0) return;
_W_ = (~~_W_) % _rz._eb;
if (_W_ < 0) _W_ = _W_ + _rz._eb;
_101(_rz._t9[_W_], _JH, _KH, _Fc, _Gc, _ba, _ca, 1, 1, 0xffffff, _1h)
}
}
function _H6(_hn, _n8, _W_, _JH, _KH, _Fc, _Gc, _ba, _ca, _Yv, _Zv, _v_, _Bd) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
if (_rz._eb <= 0) return;
_W_ = (~~_W_) % _rz._eb;
if (_W_ < 0) _W_ = _W_ + _rz._eb;
_v_ = _4h(_v_);
_101(_rz._t9[_W_], _JH, _KH, _Fc, _Gc, _ba, _ca, _Yv, _Zv, _v_, _Bd)
}
}
function _J6(_hn, _n8, _W_, _ba, _ca) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
if (_rz._eb <= 0) return;
_W_ = (~~_W_) % _rz._eb;
if (_W_ < 0) _W_ = _W_ + _rz._eb;
_201(_rz._t9[_W_], _ba, _ca, 1, 1, true, true, 0xffffff, _1h);
}
}
function _K6(_hn, _n8, _W_, _ba, _ca, _Yv, _Zv, _v_, _Bd) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
if (_rz._eb <= 0) return;
_W_ = (~~_W_) % _rz._eb;
if (_W_ < 0) _W_ = _W_ + _rz._eb;
_v_ = _4h(_v_);
_201(_rz._t9[_W_], _ba, _ca, _Yv, _Zv, true, true, _v_, _Bd)
}
}
function _I6(_hn, _n8, _W_, _JH, _KH, _Fc, _Gc, _ba, _ca, _Yv, _Zv, _q9, _AA, _BA, _CA, _DA, _Bd) {
if (_W_ < 0) _W_ = ~~_hn._tz;
var _rz = _sa._ta(_n8);
if (_rz != null) {
if (_eG) {
_fG()
}
if (_rz._eb <= 0) return;
_W_ = (~~_W_) % _rz._eb;
if (_W_ < 0) _W_ = _W_ + _rz._eb;
_AA = _4h(_AA);
_BA = _4h(_BA);
_CA = _4h(_CA);
_DA = _4h(_DA);
_301(_rz._t9[_W_], _JH, _KH, _Fc, _Gc, _ba, _ca, _Yv, _Zv, _q9 * Math.PI / 180.0, _AA, _BA, _CA, _DA, _Bd)
}
}
function _TC(_l9) {
if (_AB._ta(yyGetInt32(_l9)) != undefined) {
return true
}
return false
}
function _UC(_l9) {
var _401 = _AB._ta(yyGetInt32(_l9));
if (_401 != undefined) {
return _401._v1
}
return ""
}
function _501(_601, _701) {
if (_601) {
if (_701 === undefined) {
canvas.style.cursor = ""
} else {
canvas.style.cursor = _701
}
} else {
canvas.style.cursor = "none"
}
}
function _801(_3h) {
_901 = _4h(yyGetInt32(_3h))
}
var _a01 = _801;
function _b01() {
return _4h(_901)
}
var _c01 = _b01;
function _d01(_ba, _ca, _e01) {
if (_e01 === undefined) _e01 = false;
var _f01 = document.getElementById(_Cy);
for (var _dm = _f01; _dm; _dm = _dm.parentNode) {
var position;
if (_dm["currentStyle"]) {
position = _dm["currentStyle"]["position"]
} else if (window.getComputedStyle) {
try {
var style = window.getComputedStyle(_dm, null);
if (style) {
position = style.getPropertyValue("position")
}
} catch (e) {}
}
if (position && (position == "fixed")) {
debug("Warning: Canvas position fixed. Ignoring position alterations");
return
}
}
_f01.style.position = "absolute";
if (!yyGetBool(_e01)) {
_f01.style.left = yyGetInt32(_ba) + "px";
_f01.style.top = yyGetInt32(_ca) + "px";
_f01.style.bottom = "";
_f01.style.right = "";
_f01.style.transform = ""
} else {
_f01.style.top = "50%";
_f01.style.left = "50%";
_f01.style.bottom = "-50%";
_f01.style.right = "-50%";
_f01.style.transform = "translate(-50%, -50%)"
}
}
function _g01() {
return _h01 - _i01
}
function _j01() {
return _k01 - _l01
}
function _m01(_el) {
if (!_q8._mk) {
return _N4._n01
}
var _pk = _q8._ok[yyGetInt32(_el)];
return _pk._wk(_Mk._o01, _Mk._p01)
}
function _q01(_el) {
if (!_q8._mk) {
return _N4._r01
}
var _pk = _q8._ok[yyGetInt32(_el)];
return _pk._xk(_Mk._o01, _Mk._p01)
}
function _s01() {
if (!_q8._mk) {
return _N4._n01
}
for (var _i2 = _q8._ok.length - 1; _i2 >= 0;
--_i2) {
var _pk = _q8._ok[_i2];
if (!_pk._r2) {
continue
}
var _Db = _pk._wk(_Mk._o01, _Mk._p01);
var _Eb = _pk._xk(_Mk._o01, _Mk._p01);
if (((_Db >= _pk._SZ) && (_Db < _pk._SZ + _pk._WZ)) && ((_Eb >= _pk._UZ) && (_Db < _pk._UZ + _pk._YZ))) {
return _Db
}
}
return _m01(0)
}
function _t01() {
if (!_q8._mk) {
return _N4._r01
}
for (var _i2 = _q8._ok.length - 1; _i2 >= 0; --_i2) {
var _pk = _q8._ok[_i2];
if (!_pk._r2) {
continue
}
var _Db = _pk._wk(_Mk._o01, _Mk._p01);
var _Eb = _pk._xk(_Mk._o01, _Mk._p01);
if (((_Db >= _pk._SZ) && (_Db < _pk._SZ + _pk._WZ)) && ((_Eb >= _pk._UZ) && (_Db < _pk._UZ + _pk._YZ))) {
return _Eb
}
}
return _q01(0)
}
var _u01;
var _v01;
var _w01;
var _x01;
var _y01;
var _z01;
var _A01;
var _B01;
var _C01;
var _D01;
var _E01;
var _F01;
var _G01 = 0;
var _H01 = 1,
_I01 = 2,
_J01 = 3,
_K01 = 4,
_L01 = 5,
_M01 = 6;
var _N01 = aa_1241_kz();
function aa_1241_kz() {
return 0x87155211
} /*@constructor */
function _O01() {
var _P01 = null;
if (window.XMLHttpRequest) {
_P01 = new XMLHttpRequest()
}
if (typeof (XMLHttpRequest) == "undefined") {
_P01 = function () {
try {
return new ActiveXObject("Msxml2.XMLHTTP.6.0")
} catch (e) {}
try {
return new ActiveXObject("Msxml2.XMLHTTP.3.0")
} catch (e) {}
try {
return new ActiveXObject("Msxml2.XMLHTTP")
} catch (e) {}
throw new _hl("This browser does not support XMLHttpRequest.")
}
}
this._Q01 = _P01;
this._R01 = false
}
var _S01 = new _O01();
function _T01() {}
var _U01 = _V01;
function _V01(_601) {}
var _W01 = _X01;
function _X01() {
return false
}
var _Y01 = _Z01;
function _Z01() {}
var __01 = _011;
function _011() {}
var _111 = _211;
function _211() {}
var _311 = _411;
function _411() {}
var _511 = _611;
function _611() {}
var _711 = _811;
function _811() {}
var _911 = _a11;
function _a11() {}
var _b11 = _c11;
function _c11() {}
var _d11 = _e11;
function _e11() {}
var _f11 = _g11;
function _g11() {}
var _h11 = _i11;
function _i11() {}
var _j11 = _k11;
function _k11() {
return -1
}
var _l11 = _m11;
function _m11() {}
var _n11 = _o11;
function _o11() {}
var _p11 = _q11;
function _q11() {}
var _r11 = _s11;
function _s11() {
return _t11
}
function _u11() {
return _v11;
}
function _w11() {
return _NG
}
function _x11() {
return _y11
}
var _z11 = _A11;
function _A11(_vG, _B11, _C11) {
if (_B11 != "_self" && _B11 != "_blank" && _B11 != "_parent" && _B11 != "_top") {
_hl("Error: invalid TARGET specified. Only '_self', '_blank', 'parent' or '_top' supported. (YoYo_OpenURL)");
return
}
var _KX = window.open(yyGetString(_vG), yyGetString(_B11), yyGetString(_C11))
}
var _D11 = _E11;
function _E11(_vG, _B11) {
_z11(_vG, _B11, "scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes");
}
var _F11 = _G11;
function _G11(_vG) {
_D11(_vG, "_self")
}
var _H11 = _I11;
function _I11(_J11, _K11) {}
var _L11 = _M11;
function _M11(_J11, _N11) {}
var _O11 = null;
var _P11 = null;
var _Q11 = null;
var _R11 = _S11;
function _S11(_my, _T11, _U11, _V11) {}
var _W11 = (performance.now) ? function () {
return performance.now() * 1000
} : function () {
var _jb = new Date().getTime() * 1000;
return _jb - _u01
};
var _9D = _W11;
var _X11 = _Y11;
function _Y11(_ba, _ca, _7l, _8l, _Z11) {
_ba = yyGetInt32(_ba);
_ca = yyGetInt32(_ca);
_7l = yyGetInt32(_7l);
_8l = yyGetInt32(_8l);
_Z11 = yyGetInt32(_Z11);
var __11 = _021();
__11.x = _ba;
__11.y = _ca;
__11._k2 = _7l;
__11._l2 = _8l;
__11.key = _Z11;
__11._8b = _ba + _7l;
__11._9b = _ca + _8l;
__11.button = __11._N9 = __11._O9 = 0;
__11._121 = _221;
return (__11.index + 1);
}
var _321 = _421;
function _421(_el) {
_el = yyGetInt32(_el);
if (_el < 0) return;
var index = _el - 1;
if ((index < 0) || (index >= _521.length)) {
debug("Invalid index when deleting virtual key")
}
_621(_el - 1)
}
function _721() {
_821 = [];
for (var _gb = 0; _gb < _521.length; ++_gb) {
var _921 = _521[_gb];
if ((_921._121 & _a21) != 0) _821[_821.length] = _921
}
}
var _b21 = _c21;
function _c21(_el) {
_el = yyGetInt32(_el);
if (_el < 0) return;
_el--;
if (!_521[_el]) return;
_521[_el]._121 |= _a21;
_721()
}
var _d21 = _e21;
function _e21(_el) {
_el = yyGetInt32(_el);
if (_el < 0) return;
_el--;
if (!_521[_el]) return;
_521[_el]._121 &= ~_a21;
_721()
}
var _f21 = _g21;
function _g21() {
return 0
}
var _h21 = _i21;
function _i21() {
return 0
}
var _j21 = _k21;
function _k21() {
return 0
}
var _l21 = _m21;
function _m21() {
_py("device_ios_get_imagename()")
}
var _n21 = _o21;
function _o21() {
_py("device_ios_get_image()")
}
var _p21 = _q21;
function _q21() {
_py("openfeint_start()")
}
var _r21 = _s21;
function _s21(_TM, _OD) {
_py("achievement_map_achievement()")
}
var _t21 = _u21;
function _u21(_TM, _OD, _v21) {
_py("achievement_map_leaderboard()")
}
var _w21 = _x21;
function _x21(_TM, _OD, _v21) {
_py("openfeint_send_challenge()")
}
var _y21 = _z21;
function _z21(_TM) {
_py("openfeint_send_invite()")
}
var _A21 = _B21;
function _B21(_TM, _OD, _v21) {
_py("openfeint_send_social()")
}
var _C21 = _D21;
function _D21(_TM) {
_py("openfeint_set_url()")
}
var _E21 = _F21;
function _F21() {
_py("openfeint_accept_challenge()");
return ""
}
var _G21 = _H21;
function _H21() {
_py("achievement_is_online()");
return false
}
var _I21 = _J21;
function _J21(_TM, _OD) {
_py("openfeint_send_result()")
}
var _K21 = _L21;
function _L21() {
return false
}
function _M21() {
_u01 = new Date().getTime() * 1000;
var _jb = 0;
for (var _i2 = 0; _i2 < 12; _i2++) {
_yx[_i2] = _jb;
_jb += _xx[_i2]
}
_v01 = 0;
_w01 = 1;
_x01 = 2;
_y01 = 3;
_z01 = 4;
_A01 = 5;
_B01 = 0;
_C01 = 1;
_D01 = 2;
_E01 = 0;
_F01 = 1
}
function _N21() {
var _jb = setTimeout(function () {
for (var _O21 in _sa._u1) {
if (!_sa._u1.hasOwnProperty(_O21)) continue;
_sa._aL(_O21);
break
}
_N21()
}, 1000)
}
var _P21 = _Q21;
function _Q21() {
return document.domain
}
var _R21 = _S21;
function _S21(_T21, _2I) {
_T21 = yyGetInt32(_T21);
_2I = yyGetInt32(_2I);
if (_T21 == 0) {
return _YH(_2I)
} else {
if (_Ck[_T21] && (_2I <= 1)) {
return _Ck[_T21]._Vi
}
}
return 0
}
var _U21 = _V21;
function _V21(_T21, _2I) {
_T21 = yyGetInt32(_T21);
_2I = yyGetInt32(_2I);
if (_T21 == 0) {
return __H(_2I)
} else {
if (_Ck[_T21] && (_2I <= 1)) {
return _Ck[_T21]._Qi
}
}
return 0
}
var _W21 = _X21;
function _X21(_T21, _2I) {
_T21 = yyGetInt32(_T21);
_2I = yyGetInt32(_2I);
if (_T21 == 0) {
return _0I(_2I)
} else {
if (_Ck[_T21] && (_2I <= 1)) {
return _Ck[_T21]._Ui
}
}
return 0
}
var _Y21 = _Z21;
function _Z21(_T21) {
_T21 = yyGetInt32(_T21);
if (_T21 == 0) {
return _N4._n01
} else if (_Ck[_T21]) {
return _Ck[_T21].x
}
return 0
}
var __21 = _031;
function _031(_T21) {
_T21 = yyGetInt32(_T21);
if (_T21 == 0 && _131[0]) {
return _131[0].x
} else if (_Ck[_T21]) {
return _Ck[_T21].x
}
return 0
}
var _231 = _331;
function _331(_T21) {
_T21 = yyGetInt32(_T21);
if (_T21 == 0) {
return _N4._r01
} else if (_Ck[_T21]) {
return _Ck[_T21].y
}
return 0
}
var _431 = _531;
function _531(_T21) {
_T21 = yyGetInt32(_T21);
if (_T21 == 0 && _131[0]) {
return _131[0].y
} else if (_Ck[_T21]) {
return _Ck[_T21].y
}
return 0
}
var _631 = _731;
function _731() {
return _831
}
var _931 = _a31;
function _a31() {
return _b31
};
function _RC(_l9) {
_l9 = yyGetInt32(_l9);
if (_l9 >= 100000) _l9 -= 100000;
if (_1y._I7[yyGetInt32(_l9)] != undefined) {
return 1
}
return 0
}
function _SC(_l9) {
if (typeof _l9 == "function") {
var _i9 = _l9.name;
if (_i9.startsWith("bound ")) {
_i9 = _i9.substr(6)
}
if (_1y._H7.indexOf(_i9) >= 0) {
return _i9
}
return ""
} else {
_l9 = yyGetInt32(_l9);
if (_l9 >= 100000) {
_l9 -= 100000;
if ((_1y._I7[_l9] != undefined) && (_1y._H7[_l9] != undefined)) {
var name = _1y._H7[_l9];
if (name.startsWith("gml_Script_")) name = name.substr(11);
return name
}
} else {
_c31();
if ((_l9 >= 0) && (_l9 < _d31.length)) {
return _d31[_l9].name
}
}
}
return ""
}
function _e31() {
var _JH = 0;
var _KH = 0;
var _f31 = 0;
var _g31 = 0;
canvas = document.getElementById(_Cy);
var _h31 = _i31;
var _j31 = _k31;
if (_l31 && _m31) {
var _k2 = _n31;
var _l2 = _o31;
var _ip, _Gb, _Fb;
_ip = _k2 / _l2;
_Gb = _h31 / _ip;
if (_Gb < _j31) {
_ip = _l2 / _k2;
_Gb = _h31 * _ip;
_KH = (_j31 - _Gb) / 2;
_Fb = _h31;
_Gb += _KH
} else {
_ip = _k2 / _l2;
_Fb = _j31 * _ip;
_JH = (_h31 - _Fb) / 2;
_Gb = _j31;
_Fb += _JH
}
_f31 = _Fb;
_g31 = _Gb
} else {
_f31 = _h31;
_g31 = _j31;
}
_p31.x = _JH;
_p31.y = _KH;
_p31._k2 = _f31 - _JH;
_p31._l2 = _g31 - _KH
}(function () {
'use strict';
Function.prototype._q31 = function (parent) {
this.prototype.parent = parent;
for (var x in parent.prototype) {
if (!this.prototype[x]) this.prototype[x] = parent.prototype[x]
}
};
Function.prototype._r31 = function (parent) {
return this._q31(parent);
};
Array.prototype._s31 = function (first, _0y, _t31) {
if (typeof (first) === 'undefined') first = 0;
if (typeof (_0y) === 'undefined') _0y = this.length - first;
if (typeof (_t31) === 'undefined') _t31 = function (_a9, _99) {
return _a9 < _99
};
var left = first,
_u31 = [],
_Bl = 0;
for (;;) {
for (; left + 1 < _0y; _0y++) {
var _v31 = this[left + Math.floor(Math.random() * (_0y - left))];
_u31[_Bl++] = _0y;
for (var right = left - 1;;) {
while (_t31(this[++right], _v31)) {}
while (_t31(_v31, this[--_0y])) {}
if (right >= _0y) break;
var _yE = this[right];
this[right] = this[_0y];
this[_0y] = _yE;
}
}
if (_Bl === 0) break;
left = _0y;
_0y = _u31[--_Bl]
}
return this
};
Array.prototype._w31 = function (_x31, length) {
if (typeof (length) === 'undefined') length = this.length;
var _gb = 0;
for (var _j2 = 0; _j2 < length; ++_j2) {
if (_x31(this[_j2])) continue;
if (_j2 === _gb) {
++_gb;
continue
}
this[_gb++] = this[_j2]
}
return _gb
};
Array.prototype._y31 = function (first, _c2, _Ji, _t31) {
if (typeof (_t31) === 'undefined') _t31 = function (_a9, _99) {
return _a9 < _99
};
var _Jc = _c2 - first;
while (_Jc > 0) {
var _z31 = Math.floor(_Jc / 2);
var _A31 = first + _z31;
if (_t31(this[_A31],
_Ji)) {
first = ++_A31;
_Jc -= _z31 + 1
} else _Jc = _z31
}
return first
};
Array.prototype._B31 = function (first, _c2, _Ji, _t31) {
if (typeof (_t31) === 'undefined') _t31 = function (_a9, _99) {
return _a9 < _99
};
var _Jc = _c2 - first;
while (_Jc > 0) {
var _z31 = Math.floor(_Jc / 2);
var _A31 = first + _z31;
if (!_t31(_Ji, this[_A31])) {
first = ++_A31;
_Jc -= _z31 + 1
} else _Jc = _z31
}
return first
};
Array.prototype.rotate = function (first, _C31, _c2) {
var _3m = _C31;
while (first != _3m) {
var _D31 = this[first];
this[first] = this[_3m];
this[_3m] = _D31;
++first;
++_3m;
if (_3m === _c2) _3m = _C31;
else if (first === _C31) _C31 = _3m;
}
};
var _E31 = (function () {
var _F31 = function () {
return +new Date()
};
if (typeof (performance) === 'undefined') window['performance'] = {
now: _F31
};
if (!window['performance'].now) window['performance'].now = _F31;
function _G31(name, parent) {
this.name = name;
this.parent = parent;
this._H31 = {};
this._HU = 0;
this._I31 = 0;
this._J31 = 0;
this._K31 = !1;
this._L31 = 0
}
_G31.prototype = {
start: function () {
this._HU = performance.now();
this._K31 = !0
},
stop: function (_M31) {
if (!this._K31) return;
this._K31 = !1;
this._I31 += performance.now() - this._HU;
if (_M31) this.start();
for (var x in this._H31) this._H31[x].stop()
},
_M31: function (_N31) {
if (!_N31) {
this._K31 = !0;
this._J31 += this._I31;
this.start()
}
this._I31 = 0;
for (var x in this._H31) this._H31[x]._M31(!0)
}
};
var _O31 = [];
var _j8 = new _G31("root");
function _P31(name, parent) {
if (!_O31) throw new Error("late profile creation not allowed");
var _wy = new _G31(name, parent || 'root');
_O31.push(_wy);
return _wy
}
function _Q31(_R31) {
_R31._L31--;
delete _R31._H31[_R31.name]
}
function _S31(_dm, _R31) {
if (_dm.name === _R31.parent) return _dm;
for (var x in _dm._H31) {
var _3b;
if (_3b = _S31(_dm._H31[x],
_R31)) return _3b
}
return null
}
function init() {
while (_O31.length) {
var _gE = _O31.pop();
if (!(_gE.parentNode = _S31(_j8, _gE))) _O31._T31(_gE);
else {
_gE.parentNode._H31[_gE.name] = _gE;
_gE.parentNode._L31++
}
}
_O31 = null
}
function _U31() {
_j8._M31(!0)
}
var _i9 = {
_P31: _P31,
_Q31: _Q31,
init: init,
_M31: _U31,
_V31: _j8
};
return _i9
}());
function _W31(_X31) {
if (!_X31) {
console.log("Assertion failed! Pls debug.");
debugger
}
}
var _Y31 = Number.MAX_VALUE;
var _Z31 = 2.2204460492503131e-016;
var __31 = Math.PI; /// @file
var _041 = 2;
var _141 = 8;
var _241 = 0.1;
var _341 = 2.0;
var _441 = 0.005;
var _541 = (2.0 / 180.0 * __31);
var _641 = (2.0 * _441);
var _741 = 8;
var _841 = 32;
var _941 = 1.0;
var _a41 = 0.2;
var _b41 = (8.0 / 180.0 * __31);
var _c41 = 2.0;
var _d41 = (_c41 * _c41);
var _e41 = (0.5 * __31);
var _f41 = (_e41 * _e41);
var _g41 = 0.2;
var _h41 = 0.75;
var _i41 = 0.5;
var _j41 = 0.01;
var _k41 = (2.0 / 180.0 * __31);
var _l41 = (-1);
var _m41 = 0.75;
var _n41 = 1.0;
var _o41 = 5.0;
var _p41 = 2;
var _q41 = (_p41 * _p41);
var _r41 = 256;
function _s41(_t41, _u41, _v41) {
this._w41 = _t41;
this._x41 = _u41;
this._y41 = _v41;
}
_s41.prototype = {
toString: function () {
return this._w41 + '.' + this._x41 + '.' + this._y41
}
};
var _z41 = new _s41(2, 3, 1);
function _A41(x) {
return isFinite(x) && !isNaN(x)
}
var _B41 = Math.sqrt;
var _C41 = Math.atan2;
var _D41 = Math.sin;
var _E41 = Math.cos;
var _F41 = Math.floor;
var _G41 = Math.ceil;
var _H41 = _B41;
var _I41 = _C41;
function _J41(x) {
return 1.0 / _B41(x)
}
function _K41(x, y) {
if (typeof (x) !== 'undefined') {
this.x = x;
this.y = y
} else this.x = this.y = 0
}
_K41.prototype = {
_X7: function () {
return new _K41(this.x, this.y)
},
_L41: function () {
this.x = 0.0;
this.y = 0.0;
return this
},
_Yl: function (_M41, _N41) {
this.x = _M41;
this.y = _N41;
return this
},
_mH: function (_gb) {
this.x = _gb.x;
this.y = _gb.y;
return this
},
_O41: function () {
var _O9 = new _K41();
_O9._Yl(-this.x, -this.y);
return _O9
},
_P41: function (_i2) {
switch (_i2) {
case 0:
return this.x;
case 1:
return this.y
}
},
_Q41: function (_i2, _O9) {
switch (_i2) {
case 0:
return this.x = _O9;
case 1:
return this.y = _O9
}
},
_Vj: function (_O9) {
this.x += _O9.x;
this.y += _O9.y;
return this
},
_R41: function (_O9) {
this.x -= _O9.x;
this.y -= _O9.y;
return this
},
Multiply: function (_a9) {
this.x *= _a9;
this.y *= _a9;
return this
},
Length: function () {
return _H41(this.x * this.x + this.y * this.y)
},
_S41: function () {
return this.x * this.x + this.y * this.y
},
_T41: function () {
var length = this.Length();
if (length < _Z31) {
return 0.0
}
var _U41 = 1.0 / length;
this.x *= _U41;
this.y *= _U41;
return length
},
_V41: function () {
return _A41(this.x) && _A41(this.y)
},
_W41: function () {
return new _K41(-this.y, this.x)
},
_X41: function (out) {
var _xn = out || [];
_xn[0] = this.x;
_xn[1] = this.y;
return _xn
},
_Y41: function (data) {
this.x = data[0];
this.y = data[1]
}
};
_K41._Vj = function (_a9, _99) {
return new _K41(_a9.x + _99.x, _a9.y + _99.y)
};
_K41._R41 = function (_a9, _99) {
return new _K41(_a9.x - _99.x,
_a9.y - _99.y)
};
_K41._Z41 = function (_a9, _99) {
return _a9.x == _99.x && _a9.y == _99.y
};
_K41.Multiply = function (_wy, _a9) {
return new _K41(_wy * _a9.x, _wy * _a9.y)
};
_K41._O41 = function (_a9) {
return new _K41(-_a9.x, -_a9.y)
};
function __41(x, y, _2g) {
if (typeof (x) !== 'undefined') {
this.x = x;
this.y = y;
this._2g = _2g
}
}
__41.prototype = {
_X7: function () {
return new __41(this.x, this.y, this._2g)
},
_L41: function () {
this.x = 0.0;
this.y = 0.0;
this._2g = 0.0;
},
_Yl: function (_M41, _N41, _051) {
this.x = _M41;
this.y = _N41;
this._2g = _051
},
_O41: function () {
var _O9 = new __41();
_O9._Yl(-this.x, -this.y, -this._2g);
return _O9
},
_Vj: function (_O9) {
this.x += _O9.x;
this.y += _O9.y;
this._2g += _O9._2g
},
_R41: function (_O9) {
this.x -= _O9.x;
this.y -= _O9.y;
this._2g -= _O9._2g
},
Multiply: function (_wy) {
this.x *= _wy;
this.y *= _wy;
this._2g *= _wy
},
x: 0,
y: 0,
_2g: 0
};
__41.Multiply = function (_wy, _a9) {
return new __41(_wy * _a9.x, _wy * _a9.y, _wy * _a9._2g)
};
__41._Vj = function (_a9, _99) {
return new __41(_a9.x + _99.x, _a9.y + _99.y, _a9._2g + _99._2g)
};
__41._R41 = function (_a9, _99) {
return new __41(_a9.x - _99.x, _a9.y - _99.y, _a9._2g - _99._2g)
};
function _151(_251, _351) {
this._bB = _251 ? _251._X7() : new _K41();
this._cG = _351 ? _351._X7() : new _K41()
}
_151.prototype = {
_Yl: function (_251, _351) {
this._bB._mH(_251);
this._cG._mH(_351)
},
_mH: function (_Pv) {
this._bB._mH(_Pv._bB);
this._cG._mH(_Pv._cG)
},
_451: function () {
this._bB.x = 1.0;
this._cG.x = 0.0;
this._bB.y = 0.0;
this._cG.y = 1.0
},
_L41: function () {
this._bB.x = 0.0;
this._cG.x = 0.0;
this._bB.y = 0.0;
this._cG.y = 0.0
},
_551: function () {
var _a9 = this._bB.x,
_99 = this._cG.x,
_j2 = this._bB.y,
_Xn = this._cG.y;
var _651 = new _151();
var _751 = _a9 * _Xn - _99 * _j2;
if (_751 != 0.0) {
_751 = 1.0 / _751
}
_651._bB.x = _751 * _Xn;
_651._cG.x = -_751 * _99;
_651._bB.y = -_751 * _j2;
_651._cG.y = _751 * _a9;
return _651
},
_851: function (_99) {
var _951 = this._bB.x,
_a51 = this._cG.x,
_b51 = this._bB.y,
_c51 = this._cG.y;
var _751 = _951 * _c51 - _a51 * _b51;
if (_751 != 0.0) {
_751 = 1.0 / _751
}
var x = new _K41();
x.x = _751 * (_c51 * _99.x - _a51 * _99.y);
x.y = _751 * (_951 * _99.y - _b51 * _99.x);
return x
}
};
_151._Vj = function (_X31, _651) {
return new _151(_K41._Vj(_X31._bB, _651._bB), _K41._Vj(_X31._cG, _651._cG))
};
function _d51(_251, _351, _e51) {
this._bB = _251 ? _251._X7() : new __41();
this._cG = _351 ? _351._X7() : new __41();
this._f51 = _e51 ? _e51._X7() : new __41()
}
_d51.prototype = {
_L41: function () {
this._bB._L41();
this._cG._L41();
this._f51._L41()
},
_g51: function (_99) {
var _751 = _h51(this._bB, _i51(this._cG, this._f51));
if (_751 != 0.0) {
_751 = 1.0 / _751
}
var x = new __41();
x.x = _751 * _h51(_99, _i51(this._cG, this._f51));
x.y = _751 * _h51(this._bB, _i51(_99, this._f51));
x._2g = _751 * _h51(this._bB, _i51(this._cG, _99));
return x
},
_j51: function (_99) {
var _951 = this._bB.x,
_a51 = this._cG.x,
_b51 = this._bB.y,
_c51 = this._cG.y;
var _751 = _951 * _c51 - _a51 * _b51;
if (_751 != 0.0) {
_751 = 1.0 / _751
}
var x = new _K41();
x.x = _751 * (_c51 * _99.x - _a51 * _99.y);
x.y = _751 * (_951 * _99.y - _b51 * _99.x);
return x
},
_k51: function (_l51) {
var _a9 = this._bB.x,
_99 = this._cG.x,
_j2 = this._bB.y,
_Xn = this._cG.y;
var _751 = _a9 * _Xn - _99 * _j2;
if (_751 != 0.0) {
_751 = 1.0 / _751
}
_l51._bB.x = _751 * _Xn;
_l51._cG.x = -_751 * _99;
_l51._bB._2g = 0.0;
_l51._bB.y = -_751 * _j2;
_l51._cG.y = _751 * _a9;
_l51._cG._2g = 0.0;
_l51._f51.x = 0.0;
_l51._f51.y = 0.0;
_l51._f51._2g = 0.0
},
_m51: function (_l51) {
var _751 = _h51(this._bB, _i51(this._cG, this._f51));
if (_751 != 0.0) {
_751 = 1.0 / _751
}
var _951 = this._bB.x,
_a51 = this._cG.x,
_n51 = this._f51.x;
var _c51 = this._cG.y,
_o51 = this._f51.y;
var _p51 = this._f51._2g;
_l51._bB.x = _751 * (_c51 * _p51 - _o51 * _o51);
_l51._bB.y = _751 * (_n51 * _o51 - _a51 * _p51);
_l51._bB._2g = _751 * (_a51 * _o51 - _n51 * _c51);
_l51._cG.x = _l51._bB.y;
_l51._cG.y = _751 * (_951 * _p51 - _n51 * _n51);
_l51._cG._2g = _751 * (_n51 * _a51 - _951 * _o51);
_l51._f51.x = _l51._bB._2g;
_l51._f51.y = _l51._cG._2g;
_l51._f51._2g = _751 * (_951 * _c51 - _a51 * _a51)
}
};
function _q51(angle, _j2) {
if (typeof (_j2) !== 'undefined') {
this._wy = angle;
this._j2 = _j2
} else if (typeof (angle) !== 'undefined') this._Yl(angle)
}
_q51.prototype = {
_X7: function () {
return new _q51(this._wy, this._j2)
},
_mH: function (_gb) {
this._wy = _gb._wy;
this._j2 = _gb._j2
},
_Yl: function (x) {
this._wy = _D41(x);
this._j2 = _E41(x)
},
_451: function () {
this._wy = 0.0;
this._j2 = 1.0
},
_r51: function () {
return _I41(this._wy, this._j2)
},
_s51: function () {
return new _K41(this._j2, this._wy)
},
_t51: function () {
return new _K41(-this._wy, this._j2)
},
_wy: 0,
_j2: 1
};
function _u51(position, rotation) {
this._gE = new _K41();
this._qC = new _q51();
if (position) {
this._gE._mH(position);
this._qC._mH(rotation)
}
}
_u51.prototype = {
_X7: function () {
var _v51 = new _u51(this._gE, this._qC);
return _v51
},
_mH: function (_v51) {
this._gE._mH(_v51._gE);
this._qC._mH(_v51._qC)
},
_451: function () {
this._gE._L41();
this._qC._451()
},
_Yl: function (position, angle) {
this._gE._mH(position);
this._qC._Yl(angle)
}
};
function _w51() {
this._x51 = new _K41();
this._y51 = new _K41();
this._j2 = new _K41()
}
_w51.prototype = {
_mH: function (_z51) {
this._x51._mH(_z51._x51);
this._y51._mH(_z51._y51);
this._j2._mH(_z51._j2);
this._a9 = _z51._a9;
this._A51 = _z51._A51;
this._B51 = _z51._B51
},
_X7: function () {
var _z51 = new _w51();
_z51._x51._mH(this._x51);
_z51._y51._mH(this._y51);
_z51._j2._mH(this._j2);
_z51._a9 = this._a9;
_z51._A51 = this._A51;
_z51._B51 = this._B51;
return _z51
}, /// @param beta is a factor in [0,1], where 0 indicates alpha0.
_C51: function (_v51, _D51) {
_v51._gE.x = ((1.0 - _D51) * this._y51.x) + (_D51 * this._j2.x);
_v51._gE.y = ((1.0 - _D51) * this._y51.y) + (_D51 * this._j2.y);
var angle = (1.0 - _D51) * this._A51 + _D51 * this._a9;
_v51._qC._Yl(angle);
_v51._gE.x -= _v51._qC._j2 * this._x51.x - _v51._qC._wy * this._x51.y;
_v51._gE.y -= _v51._qC._wy * this._x51.x + _v51._qC._j2 * this._x51.y
}, /// @param alpha the new initial time.
_E51: function (alpha) {
_W31(this._B51 < 1.0);
var _D51 = (alpha - this._B51) / (1.0 - this._B51);
this._y51._Vj(_K41.Multiply(_D51, _K41._R41(this._j2, this._y51)));
this._A51 += _D51 * (this._a9 - this._A51);
this._B51 = alpha
},
_T41: function () {
var _F51 = 2.0 * __31;
var _Xn = _F51 * _F41(this._A51 / _F51);
this._A51 -= _Xn;
this._a9 -= _Xn
},
_A51: 0,
_a9: 0,
_B51: 0
};
function _G51(_a9, _99) {
return _a9.x * _99.x + _a9.y * _99.y
}
function _H51(_a9, _99) {
return _a9.x * _99.y - _a9.y * _99.x
}
function _I51(_a9, _wy) {
return new _K41(_wy * _a9.y, -_wy * _a9.x)
}
function _J51(_wy, _a9) {
return new _K41(-_wy * _a9.y, _wy * _a9.x)
}
function _K51(_X31, _O9) {
return new _K41(_X31._bB.x * _O9.x + _X31._cG.x * _O9.y, _X31._bB.y * _O9.x + _X31._cG.y * _O9.y)
}
function _L51(_X31, _O9) {
return new _K41(_G51(_O9, _X31._bB), _G51(_O9, _X31._cG))
}
function _M51(_a9, _99) {
var _j2 = _K41._R41(_a9, _99);
return _j2.Length();
}
function _N51(_a9, _99) {
var _j2 = _K41._R41(_a9, _99);
return _G51(_j2, _j2)
}
function _h51(_a9, _99) {
return _a9.x * _99.x + _a9.y * _99.y + _a9._2g * _99._2g
}
function _i51(_a9, _99) {
return new __41(_a9.y * _99._2g - _a9._2g * _99.y, _a9._2g * _99.x - _a9.x * _99._2g, _a9.x * _99.y - _a9.y * _99.x)
}
function _O51(_X31, _651) {
return new _151(_K51(_X31, _651._bB), _K51(_X31, _651._cG))
}
function _P51(_X31, _651) {
var _251 = new _K41(_G51(_X31._bB, _651._bB), _G51(_X31._cG, _651._bB));
var _351 = new _K41(_G51(_X31._bB, _651._cG), _G51(_X31._cG, _651._cG));
return new _151(_251, _351)
}
function _Q51(_X31, _O9) {
return __41._Vj(__41._Vj(__41.Multiply(_O9.x, _X31._bB), __41.Multiply(_O9.y, _X31._cG)), __41.Multiply(_O9._2g,
_X31._f51))
}
function _R51(_X31, _O9) {
return new _K41(_X31._bB.x * _O9.x + _X31._cG.x * _O9.y, _X31._bB.y * _O9.x + _X31._cG.y * _O9.y)
}
function _S51(_qC, _79) {
var _T51 = new _q51();
_T51._wy = _qC._wy * _79._j2 + _qC._j2 * _79._wy;
_T51._j2 = _qC._j2 * _79._j2 - _qC._wy * _79._wy;
return _T51
}
function _U51(_qC, _79) {
var _T51 = new _q51();
_T51._wy = _qC._j2 * _79._wy - _qC._wy * _79._j2;
_T51._j2 = _qC._j2 * _79._j2 + _qC._wy * _79._wy;
return _T51;
}
function _V51(_qC, _O9) {
return new _K41(_qC._j2 * _O9.x - _qC._wy * _O9.y, _qC._wy * _O9.x + _qC._j2 * _O9.y)
}
function _W51(_qC, _O9) {
return new _K41(_qC._j2 * _O9.x + _qC._wy * _O9.y, -_qC._wy * _O9.x + _qC._j2 * _O9.y)
}
function _X51(_Y51, _O9) {
return new _K41((_Y51._qC._j2 * _O9.x - _Y51._qC._wy * _O9.y) + _Y51._gE.x, (_Y51._qC._wy * _O9.x + _Y51._qC._j2 * _O9.y) + _Y51._gE.y)
}
function _Z51(_Y51, _O9) {
var _Ln = _O9.x - _Y51._gE.x;
var _Mn = _O9.y - _Y51._gE.y;
var x = (_Y51._qC._j2 * _Ln + _Y51._qC._wy * _Mn);
var y = (-_Y51._qC._wy * _Ln + _Y51._qC._j2 * _Mn);
return new _K41(x, y)
}
function __51(_X31, _651) {
var _061 = new _u51();
_061._qC = _S51(_X31._qC, _651._qC);
_061._gE = _K41._Vj(_V51(_X31._qC, _651._gE),
_X31._gE);
return _061
}
function _161(_X31, _651) {
var _061 = new _u51();
_061._qC = _U51(_X31._qC, _651._qC);
var _261 = _651._gE.x - _X31._gE.x;
var _361 = _651._gE.y - _X31._gE.y;
_061._gE.x = _X31._qC._j2 * _261 + _X31._qC._wy * _361;
_061._gE.y = -_X31._qC._wy * _261 + _X31._qC._j2 * _361;
return _061
}
var _461 = Math.abs;
function _561(_a9) {
return new _K41(_461(_a9.x), _461(_a9.y))
}
function _661(_X31) {
return new _151(_561(_X31._bB), _561(_X31._cG))
}
var _761 = Math.min;
function _861(_a9, _99) {
return new _K41(_761(_a9.x, _99.x), _761(_a9.y, _99.y))
}
var _961 = Math.max;
function _a61(_a9, _99) {
return new _K41(_961(_a9.x, _99.x), _961(_a9.y, _99.y))
}
function _b61(_a9, _9Z, _c61) {
return _961(_9Z, _761(_a9, _c61))
}
function _d61(_a9, _9Z, _c61) {
return _a61(_9Z, _861(_a9, _c61))
}
function _e61(x) {
x |= (x >> 1);
x |= (x >> 2);
x |= (x >> 4);
x |= (x >> 8);
x |= (x >> 16);
return x + 1
}
function _f61(x) {
var result = x > 0 && (x & (x - 1)) == 0;
return result
}
var _g61 = 32767;
function _h61(_i61, _8Z) {
var _79 = Math.random();
if (typeof (_i61) !== 'undefined') _79 = (_8Z - _i61) * _79 + _i61;
else _79 = 2.0 * _79 - 1.0;
return _79
}
function _j61(_79, _89, _99) {
this._79 = _79 || 0;
this._89 = _89 || 0;
this._99 = _99 || 0
}
_j61.prototype = {
_Yl: function (_79, _89, _99) {
this._79 = _79;
this._89 = _89;
this._99 = _99
}
};
function _k61() {}
_k61.prototype = {
_l61: function (_121) {
this._m61 = _121
},
_n61: function () {
return this._m61
},
_o61: function (_121) {
this._m61 |= _121
},
_p61: function (_121) {
this._m61 &= ~_121
},
_q61: function (_121) {
this._m61 ^= _121
},
_r61: function (vertices, vertexCount, color) {},
_s61: function (vertices, vertexCount, color) {},
_t61: function (_u61, _v61, color) {},
_w61: function (_u61, _v61, _0o, color) {},
_x61: function (__n,
_y61, color) {}, /// @param xf a transform.
_z61: function (_v51) {},
_A61: function (_B61, _v61, _C61, _Jc) {},
_m61: 0
};
_k61._D61 = 1;
_k61._E61 = 2;
_k61._F61 = 4;
_k61._G61 = 8;
_k61._H61 = 16;
_k61._I61 = 32;
_k61._J61 = 64;
_k61._K61 = 128;
_k61._L61 = 256;
_k61._M61 = 512;
_k61._N61 = 1024;
if (typeof (performance) === 'undefined') {
window.performance = {
now: function () {
return +new Date()
}
}
}
function _O61() {
this._8D()
}
_O61.prototype = {
_8D: function () {
this._P61 = performance.now()
},
_Q61: function () {
return performance.now() - this._P61
}
};
function _R61() {
this._S61 = 0;
this._u61 = new _K41();
this._T61 = 0
}
/*
* A shape.
* @constructor
* @returns {b2Shape}
*/
function _U61() {
this._VH = 0;
this._V61 = 0
}
_U61.prototype = {
_X7: function () {}, /// @return the shape type.
_W61: function () {
return this._VH
},
_X61: function () {}, /// @param xf the shape world transform.
/// @param p a point in world coordinates.
_Y61: function (_v51, _gE) {}, /// @param output the ray-cast results.
/// @param input the ray-cast input parameters.
/// @param transform the transform to be applied to the shape.
/// @param childIndex the child shape index
_Z61: function (_cC,
_aC, transform, __61) {}, /// @param aabb returns the axis aligned box.
/// @param xf the world transform of the shape.
/// @param childIndex the child shape
_071: function (_171, _v51, __61) {}, /// @param massData returns the mass data for this shape.
/// @param density the density in kilograms per meter squared.
_271: function (_371, _471) {}, /// @param xf the shape world transform.
/// @param p a point in world coordinates.
/// @param distance returns the distance from the current shape.
/// @param normal returns the direction in which the distance increases.
_571: function (_v51,
_gE, _671, _771, __61) {},
_X41: function (out) {
var _xn = out || {};
_xn['m_type'] = this._VH;
_xn['m_radius'] = this._V61;
return _xn
},
_Y41: function (data) {
this._V61 = data['m_radius']
}
};
_U61._871 = 0;
_U61._971 = 1;
_U61._a71 = 2;
_U61._b71 = 3;
_U61._c71 = 4;
function _d71() {
this.parent.call(this);
this._VH = _U61._871;
this._V61 = 0;
this._e71 = new _K41();
Object.seal(this)
}
_d71.prototype = {
_X7: function () {
var _f71 = new _d71();
_f71._V61 = this._V61;
_f71._e71 = this._e71._X7();
return _f71
}, /// @see b2Shape::GetChildCount
_X61: function () {
return 1
},
_Y61: function (transform,
_gE) {
var _u61 = _K41._Vj(transform._gE, _V51(transform._qC, this._e71));
var _Xn = _K41._R41(_gE, _u61);
return _G51(_Xn, _Xn) <= this._V61 * this._V61
},
_Z61: function (_cC, _aC, transform, __61) {
var position = _K41._Vj(transform._gE, _V51(transform._qC, this._e71));
var _wy = _K41._R41(_aC.__n, position);
var _99 = _G51(_wy, _wy) - this._V61 * this._V61;
var _79 = _K41._R41(_aC._y61, _aC.__n);
var _j2 = _G51(_wy, _79);
var _YD = _G51(_79, _79);
var _g71 = _j2 * _j2 - _YD * _99;
if (_g71 < 0.0 || _YD < _Z31) {
return !1
}
var _a9 = -(_j2 + _H41(_g71));
if (0.0 <= _a9 && _a9 <= _aC._h71 * _YD) {
_a9 /= _YD;
_cC._i71 = _a9;
_cC._771 = _K41._Vj(_wy, _K41.Multiply(_a9, _79));
_cC._771._T41();
return !0
}
return !1
}, /// @see b2Shape::ComputeAABB
_071: function (_171, transform, __61) {
var _Ln = transform._gE.x + (transform._qC._j2 * this._e71.x - transform._qC._wy * this._e71.y);
var _Mn = transform._gE.y + (transform._qC._wy * this._e71.x + transform._qC._j2 * this._e71.y);
_171._j71.x = _Ln - this._V61;
_171._j71.y = _Mn - this._V61;
_171._k71.x = _Ln + this._V61;
_171._k71.y = _Mn + this._V61
}, /// @see b2Shape::ComputeMass
_271: function (_371, _471) {
_371._S61 = _471 * __31 * this._V61 * this._V61;
_371._u61 = this._e71;
_371._T61 = _371._S61 * (0.5 * this._V61 * this._V61 + _G51(this._e71, this._e71))
},
_l71: function (_Xn) {
return 0
},
_m71: function (_Xn) {
return this._e71
},
_vi: function () {
return 1
},
_n71: function (index) {
_W31(index == 0);
return this._e71
},
_571: function (transform, _gE, _671, _771, __61) {
var _u61 = _K41._Vj(transform._gE, _V51(transform._qC, this._e71));
var _Xn = _K41._R41(_gE, _u61);
var _o71 = _Xn.Length();
_671[0] = _o71 - this._V61;
_771._mH(_K41.Multiply(1 / _o71, _Xn))
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['m_p'] = this._e71._X41();
return _xn
},
_Y41: function (data) {
this.parent.prototype._Y41.call(this, data);
this._e71._Y41(data['m_p'])
}
};
_d71._q31(_U61);
function _p71() {
this.parent.call(this);
this._VH = _U61._971;
this._V61 = _641;
this._q71 = new _K41();
this._r71 = new _K41();
this._s71 = new _K41();
this._t71 = new _K41();
this._u71 = !1;
this._v71 = !1;
Object.seal(this)
}
_p71.prototype = {
_Yl: function (_sf, _Q9) {
this._r71._mH(_sf);
this._s71._mH(_Q9);
this._u71 = !1;
this._v71 = !1
},
_X7: function () {
var _f71 = new _p71();
_f71._q71 = this._q71._X7();
_f71._r71 = this._r71._X7();
_f71._s71 = this._s71._X7();
_f71._t71 = this._t71._X7();
_f71._u71 = this._u71;
_f71._v71 = this._v71;
return _f71
}, /// @see b2Shape::GetChildCount
_X61: function () {
return 1
}, /// @see b2Shape::TestPoint
_Y61: function (transform, _gE) {
return !1
},
_Z61: function (_cC, _aC, _v51, __61) {
var __n = _W51(_v51._qC, _K41._R41(_aC.__n, _v51._gE));
var _y61 = _W51(_v51._qC, _K41._R41(_aC._y61, _v51._gE));
var _Xn = _K41._R41(_y61, __n);
var _sf = this._r71;
var _Q9 = this._s71;
var e = _K41._R41(_Q9, _sf);
var _771 = new _K41(e.y, -e.x);
_771._T41();
var _w71 = _G51(_771, _K41._R41(_sf, __n));
var _x71 = _G51(_771, _Xn);
if (_x71 == 0.0) {
return !1
}
var _jb = _w71 / _x71;
if (_jb < 0.0 || _aC._h71 < _jb) {
return !1
}
var _qC = _K41._Vj(__n, _K41.Multiply(_jb, _Xn));
var _79 = _K41._R41(_Q9, _sf);
var _YD = _G51(_79, _79);
if (_YD == 0.0) {
return !1
}
var _wy = _G51(_K41._R41(_qC, _sf), _79) / _YD;
if (_wy < 0.0 || 1.0 < _wy) {
return !1
}
_cC._i71 = _jb;
if (_w71 > 0.0) {
_cC._771 = _V51(_v51._qC, _771)._O41()
} else {
_cC._771 = _V51(_v51._qC, _771)
}
return !0
}, /// @see b2Shape::ComputeAABB
_071: function (_171,
_v51, __61) {
var _Ff = (_v51._qC._j2 * this._r71.x - _v51._qC._wy * this._r71.y) + _v51._gE.x;
var _Gf = (_v51._qC._wy * this._r71.x + _v51._qC._j2 * this._r71.y) + _v51._gE.y;
var _Hf = (_v51._qC._j2 * this._s71.x - _v51._qC._wy * this._s71.y) + _v51._gE.x;
var _If = (_v51._qC._wy * this._s71.x + _v51._qC._j2 * this._s71.y) + _v51._gE.y;
var _y71 = _761(_Ff, _Hf);
var _z71 = _761(_Gf, _If);
var _A71 = _961(_Ff, _Hf);
var _B71 = _961(_Gf, _If);
_171._j71.x = _y71 - this._V61;
_171._j71.y = _z71 - this._V61;
_171._k71.x = _A71 + this._V61;
_171._k71.y = _B71 + this._V61
}, /// @see b2Shape::ComputeMass
_271: function (_371,
_471) {
_371._S61 = 0.0;
_371._u61 = _K41.Multiply(0.5, _K41._Vj(this._r71, this._s71));
_371._T61 = 0.0
},
_571: function (_v51, _gE, _671, _771, __61) {
var _sf = _X51(_v51, this._r71);
var _Q9 = _X51(_v51, this._s71);
var _Xn = _K41._R41(_gE, _sf);
var _wy = _K41._R41(_Q9, _sf);
var _C71 = _G51(_Xn, _wy);
if (_C71 > 0) {
var _5w = _G51(_wy, _wy);
if (_C71 > _5w) {
_Xn._mH(_K41._R41(_gE, _Q9))
} else {
_Xn._R41(_K41.Multiply(_C71 / _5w, _wy))
}
}
var _o71 = _Xn.Length();
_671[0] = _o71;
_771._mH(_o71 > 0 ? _K41.Multiply(1 / _o71, _Xn) : new _K41(0, 0))
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['m_vertex1'] = this._r71._X41();
_xn['m_vertex2'] = this._s71._X41();
_xn['m_hasVertex0'] = this._u71;
if (this._u71) _xn['m_vertex0'] = this._q71._X41();
_xn['m_hasVertex3'] = this._v71;
if (this._v71) _xn['m_vertex3'] = this._t71._X41();
return _xn
},
_Y41: function (data) {
this.parent.prototype._Y41.call(this, data);
this._r71._Y41(data['m_vertex1']);
this._s71._Y41(data['m_vertex2']);
this._u71 = data['m_hasVertex0'];
if (this._u71) this._q71._Y41(data['m_vertex0']);
this._v71 = data['m_hasVertex3'];
if (this._v71) this._t71._Y41(data['m_vertex3'])
}
};
_p71._q31(_U61);
function _D71() {
this.parent.call(this);
this._VH = _U61._b71;
this._V61 = _641;
this._E71 = null;
this._F71 = 0;
this._G71 = new _K41();
this._H71 = new _K41();
this._I71 = !1;
this._J71 = !1;
Object.seal(this)
}
_D71._K71 = new _p71();
_D71.prototype = { /// @param vertices an array of vertices, these are copied
/// @param count the vertex count
_L71: function (vertices, _Jc) {
_W31(this._E71 == null && this._F71 == 0);
_W31(_Jc >= 3);
for (var _i2 = 1; _i2 < _Jc; ++_i2) {
var _sf = vertices[_i2 - 1];
var _Q9 = vertices[_i2];
_W31(_N51(_sf, _Q9) > _441 * _441)
}
this._F71 = _Jc + 1;
this._E71 = new Array(this._F71);
for (var _i2 = 0; _i2 < _Jc; ++_i2) this._E71[_i2] = vertices[_i2]._X7();
this._E71[_Jc] = this._E71[0]._X7();
this._G71._mH(this._E71[this._F71 - 2]);
this._H71._mH(this._E71[1]);
this._I71 = !0;
this._J71 = !0
}, /// @param vertices an array of vertices, these are copied
/// @param count the vertex count
_M71: function (vertices, _Jc) {
_W31(this._E71 == null && this._F71 == 0);
_W31(_Jc >= 2);
for (var _i2 = 1; _i2 < _Jc; ++_i2) {
var _sf = vertices[_i2 - 1];
var _Q9 = vertices[_i2];
_W31(_N51(_sf, _Q9) > _441 * _441)
}
this._F71 = _Jc;
this._E71 = new Array(_Jc);
for (var _i2 = 0; _i2 < _Jc; ++_i2) this._E71[_i2] = vertices[_i2]._X7();
this._I71 = !1;
this._J71 = !1;
this._G71._L41();
this._H71._L41()
},
_N71: function (_O71) {
this._G71._mH(_O71);
this._I71 = !0
},
_P71: function (_Q71) {
this._H71._mH(_Q71);
this._J71 = !0
},
_X7: function () {
var _f71 = new _D71();
_f71._F71 = this._F71;
_f71._E71 = new Array(this._F71);
for (var _i2 = 0; _i2 < this._F71; ++_i2) _f71._E71[_i2] = this._E71[_i2]._X7();
_f71._G71 = this._G71._X7();
_f71._H71 = this._H71._X7();
_f71._I71 = this._I71;
_f71._J71 = this._J71;
return _f71
}, /// @see b2Shape::GetChildCount
_X61: function () {
return this._F71 - 1
},
_R71: function (_S71, index) {
_W31(0 <= index && index < this._F71 - 1);
_S71._VH = _U61._971;
_S71._V61 = this._V61;
_S71._r71 = this._E71[index + 0];
_S71._s71 = this._E71[index + 1];
if (index > 0) {
_S71._q71 = this._E71[index - 1];
_S71._u71 = !0
} else {
_S71._q71 = this._G71;
_S71._u71 = this._I71
}
if (index < this._F71 - 2) {
_S71._t71 = this._E71[index + 2];
_S71._v71 = !0
} else {
_S71._t71 = this._H71;
_S71._v71 = this._J71;
}
}, /// @see b2Shape::TestPoint
_Y61: function (transform,
_gE) {
return !1
},
_Z61: function (_cC, _aC, _v51, __61) {
_W31(__61 < this._F71);
var _T71 = __61;
var _U71 = __61 + 1;
if (_U71 == this._F71) {
_U71 = 0
}
_D71._K71._r71 = this._E71[_T71]._X7();
_D71._K71._s71 = this._E71[_U71]._X7();
return _D71._K71._Z61(_cC, _aC, _v51, 0)
}, /// @see b2Shape::ComputeAABB
_071: function (_171, _v51, __61) {
_W31(__61 < this._F71);
var _T71 = __61;
var _U71 = __61 + 1;
if (_U71 == this._F71) {
_U71 = 0
}
var _Ff = (_v51._qC._j2 * this._E71[_T71].x - _v51._qC._wy * this._E71[_T71].y) + _v51._gE.x;
var _Gf = (_v51._qC._wy * this._E71[_T71].x + _v51._qC._j2 * this._E71[_T71].y) + _v51._gE.y;
var _Hf = (_v51._qC._j2 * this._E71[_U71].x - _v51._qC._wy * this._E71[_U71].y) + _v51._gE.x;
var _If = (_v51._qC._wy * this._E71[_U71].x + _v51._qC._j2 * this._E71[_U71].y) + _v51._gE.y;
_171._j71.x = _761(_Ff, _Hf);
_171._j71.y = _761(_Gf, _If);
_171._k71.x = _961(_Ff, _Hf);
_171._k71.y = _961(_Gf, _If)
}, /// @see b2Shape::ComputeMass
_271: function (_371, _471) {
_371._S61 = 0.0;
_371._u61._L41();
_371._T61 = 0.0
},
_571: function (_v51, _gE, _671, _771, __61) {
this._R71(_D71._K71, __61);
_D71._K71._571(_v51, _gE, _671, _771, 0)
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['m_count'] = this._F71;
_xn['m_vertices'] = [];
for (var _i2 = 0; _i2 < this._F71; ++_i2) _xn['m_vertices'].push(this._E71[_i2]._X41());
_xn['m_hasPrevVertex'] = this._I71;
if (this._I71) _xn['m_prevVertex'] = this._G71._X41();
_xn['m_hasNextVertex'] = this._J71;
if (this._J71) _xn['m_nextVertex'] = this._H71._X41();
return _xn
},
_Y41: function (data) {
this.parent.prototype._Y41.call(this, data);
this._F71 = data['m_count'];
this._E71 = [];
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
this._E71[_i2] = new _K41();
this._E71[_i2]._Y41(data['m_vertices'][_i2])
}
this._I71 = data['m_hasPrevVertex'];
if (this._I71) this._G71._Y41(data['m_prevVertex']);
this._J71 = data['m_hasNextVertex'];
if (this._J71) this._H71._Y41(data['m_nextVertex'])
}
};
_D71._q31(_U61);
function _V71() {
this.parent.call(this);
this._VH = _U61._a71;
this._V61 = _641;
this._F71 = 0;
this._W71 = new _K41();
this._E71 = new Array(_141);
this._X71 = new Array(_141);
Object.seal(this)
}
_V71.prototype = {
_X7: function () {
var _f71 = new _V71();
_f71._F71 = this._F71;
_f71._W71 = this._W71._X7();
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
_f71._E71[_i2] = this._E71[_i2]._X7();
_f71._X71[_i2] = this._X71[_i2]._X7()
}
return _f71
}, /// @see b2Shape::GetChildCount
_X61: function () {
return 1
}, /// @warning the points may be re-ordered, even if they form a convex polygon
/// @warning collinear points are handled but not removed. Collinear points
_Yl: function (vertices, _Jc) {
_W31(3 <= _Jc && _Jc <= _141);
if (_Jc < 3) {
this._Y71(1.0, 1.0);
return
}
var _3b = _761(_Jc, _141);
var _Z71 = new Array(_141);
var __71 = 0;
for (var _i2 = 0; _i2 < _3b; ++_i2) {
var _O9 = vertices[_i2];
var _081 = !0;
for (var _nb = 0; _nb < __71; ++_nb) {
if (_N51(_O9, _Z71[_nb]) < 0.5 * _441) {
_081 = !1;
break
}
}
if (_081) {
_Z71[__71++] = _O9._X7()
}
}
_3b = __71;
if (_3b < 3) {
_W31(!1);
this._Y71(1.0, 1.0);
return
}
var _181 = 0;
var _bf = _Z71[0].x;
for (_i2 = 1; _i2 < _3b; ++_i2) {
var x = _Z71[_i2].x;
if (x > _bf || (x == _bf && _Z71[_i2].y < _Z71[_181].y)) {
_181 = _i2;
_bf = x
}
}
var hull = new Array(_141);
var _5b = 0;
var _281 = _181;
for (;;) {
hull[_5b] = _281;
var _381 = 0;
for (_nb = 1; _nb < _3b; ++_nb) {
if (_381 == _281) {
_381 = _nb;
continue
}
var _79 = _K41._R41(_Z71[_381], _Z71[hull[_5b]]);
var _O9 = _K41._R41(_Z71[_nb],
_Z71[hull[_5b]]);
var _j2 = _H51(_79, _O9);
if (_j2 < 0.0) {
_381 = _nb
}
if (_j2 == 0.0 && _O9._S41() > _79._S41()) {
_381 = _nb
}
}++_5b;
_281 = _381;
if (_381 == _181) {
break
}
}
this._F71 = _5b;
for (_i2 = 0; _i2 < _5b; ++_i2) {
this._E71[_i2] = _Z71[hull[_i2]]._X7()
}
for (_i2 = 0; _i2 < _5b; ++_i2) {
var _T71 = _i2;
var _U71 = _i2 + 1 < _5b ? _i2 + 1 : 0;
var _S71 = _K41._R41(this._E71[_U71], this._E71[_T71]);
_W31(_S71._S41() > _Z31 * _Z31);
this._X71[_i2] = _I51(_S71, 1.0)._X7();
this._X71[_i2]._T41()
}
this._W71 = _V71._481(this._E71, _5b)
}, /// @param hx the half-width.
/// @param hy the half-height.
_Y71: function (_581,
_681, _u61, angle) {
this._F71 = 4;
this._E71[0] = new _K41(-_581, -_681);
this._E71[1] = new _K41(_581, -_681);
this._E71[2] = new _K41(_581, _681);
this._E71[3] = new _K41(-_581, _681);
this._X71[0] = new _K41(0.0, -1.0);
this._X71[1] = new _K41(1.0, 0.0);
this._X71[2] = new _K41(0.0, 1.0);
this._X71[3] = new _K41(-1.0, 0.0);
if (!_u61) return;
this._W71._mH(_u61);
var _v51 = new _u51();
_v51._gE = _u61;
_v51._qC._Yl(angle);
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
this._E71[_i2]._mH(_X51(_v51, this._E71[_i2]));
this._X71[_i2]._mH(_V51(_v51._qC, this._X71[_i2]))
}
}, /// @see b2Shape::TestPoint
_Y61: function (_v51, _gE) {
var _781 = _W51(_v51._qC, _K41._R41(_gE, _v51._gE));
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _881 = _G51(this._X71[_i2], _K41._R41(_781, this._E71[_i2]));
if (_881 > 0.0) {
return !1
}
}
return !0
},
_Z61: function (_cC, _aC, _v51, __61) {
var __n = _W51(_v51._qC, _K41._R41(_aC.__n, _v51._gE));
var _y61 = _W51(_v51._qC, _K41._R41(_aC._y61, _v51._gE));
var _Xn = _K41._R41(_y61, __n);
var _5N = 0.0,
_981 = _aC._h71;
var index = -1;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _w71 = _G51(this._X71[_i2], _K41._R41(this._E71[_i2],
__n));
var _x71 = _G51(this._X71[_i2], _Xn);
if (_x71 == 0.0) {
if (_w71 < 0.0) {
return !1
}
} else {
if (_x71 < 0.0 && _w71 < _5N * _x71) {
_5N = _w71 / _x71;
index = _i2
} else if (_x71 > 0.0 && _w71 < _981 * _x71) {
_981 = _w71 / _x71
}
}
if (_981 < _5N) {
return !1
}
}
_W31(0.0 <= _5N && _5N <= _aC._h71);
if (index >= 0) {
_cC._i71 = _5N;
_cC._771 = _V51(_v51._qC, this._X71[index]);
return !0
}
return !1
}, /// @see b2Shape::ComputeAABB
_071: function (_171, _v51, __61) {
var _y71 = (_v51._qC._j2 * this._E71[0].x - _v51._qC._wy * this._E71[0].y) + _v51._gE.x;
var _z71 = (_v51._qC._wy * this._E71[0].x + _v51._qC._j2 * this._E71[0].y) + _v51._gE.y;
var _A71 = _y71;
var _B71 = _z71;
for (var _i2 = 1; _i2 < this._F71; ++_i2) {
var _a81 = (_v51._qC._j2 * this._E71[_i2].x - _v51._qC._wy * this._E71[_i2].y) + _v51._gE.x;
var _b81 = (_v51._qC._wy * this._E71[_i2].x + _v51._qC._j2 * this._E71[_i2].y) + _v51._gE.y;
_y71 = _761(_y71, _a81);
_z71 = _761(_z71, _b81);
_A71 = _961(_A71, _a81);
_B71 = _961(_B71, _b81)
}
_171._j71.x = _y71 - this._V61;
_171._j71.y = _z71 - this._V61;
_171._k71.x = _A71 + this._V61;
_171._k71.y = _B71 + this._V61
}, /// @see b2Shape::ComputeMass
_271: function (_371, _471) {
_W31(this._F71 >= 3);
var _u61 = new _K41(0.0,
0.0);
var _c81 = 0.0;
var _T61 = 0.0;
var _wy = new _K41(0.0, 0.0);
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
_wy._Vj(this._E71[_i2])
}
_wy.Multiply(1.0 / this._F71);
var _d81 = 1.0 / 3.0;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _e81 = _K41._R41(this._E71[_i2], _wy);
var _f81 = _i2 + 1 < this._F71 ? _K41._R41(this._E71[_i2 + 1], _wy) : _K41._R41(this._E71[0], _wy);
var _g81 = _H51(_e81, _f81);
var _h81 = 0.5 * _g81;
_c81 += _h81;
_u61._Vj(_K41.Multiply(_h81 * _d81, _K41._Vj(_e81, _f81)));
var _i81 = _e81.x,
_j81 = _e81.y;
var _k81 = _f81.x,
_l81 = _f81.y;
var _m81 = _i81 * _i81 + _k81 * _i81 + _k81 * _k81;
var _n81 = _j81 * _j81 + _l81 * _j81 + _l81 * _l81;
_T61 += (0.25 * _d81 * _g81) * (_m81 + _n81)
}
_371._S61 = _471 * _c81;
_W31(_c81 > _Z31);
_u61.Multiply(1.0 / _c81);
_371._u61 = _K41._Vj(_u61, _wy);
_371._T61 = _471 * _T61;
_371._T61 += _371._S61 * (_G51(_371._u61, _371._u61) - _G51(_u61, _u61))
},
_vi: function () {
return this._F71
},
_n71: function (index) {
_W31(0 <= index && index < this._F71);
return this._E71[index]
}, /// @returns true if valid
_o81: function () {
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _T71 = _i2;
var _U71 = _i2 < this._F71 - 1 ? _T71 + 1 : 0;
var _gE = this._E71[_T71];
var e = _K41._R41(this._E71[_U71], _gE);
for (var _nb = 0; _nb < this._F71; ++_nb) {
if (_nb == _T71 || _nb == _U71) {
continue
}
var _O9 = _K41._R41(this._E71[_nb], _gE);
var _j2 = _H51(e, _O9);
if (_j2 < 0.0) {
return !1
}
}
}
return !0
},
_571: function (_v51, _gE, _p81, _771, __61) {
var _781 = _W51(_v51._qC, _K41._R41(_gE, _v51._gE));
var maxDistance = -Number.MAX_VALUE;
var _q81 = _781;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _881 = _G51(this._X71[_i2], _K41._R41(_781, this._E71[_i2]));
if (_881 > maxDistance) {
maxDistance = _881;
_q81 = this._X71[_i2]
}
}
if (maxDistance > 0) {
var _r81 = _q81;
var _s81 = maxDistance * maxDistance;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _671 = _K41._R41(_781, this._E71[_i2]);
var _t81 = _671._S41();
if (_s81 > _t81) {
_r81 = _671;
_s81 = _t81
}
}
_p81[0] = _H41(_s81);
_771._mH(_V51(_v51._qC, _r81));
_771._T41()
} else {
_p81[0] = maxDistance;
_771._mH(_V51(_v51._qC, _q81))
}
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['m_count'] = this._F71;
_xn['m_centroid'] = this._W71._X41();
_xn['m_vertices'] = [];
_xn['m_normals'] = [];
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
_xn['m_vertices'].push(this._E71[_i2]._X41());
_xn['m_normals'].push(this._X71[_i2]._X41());
}
return _xn
},
_Y41: function (data) {
this.parent.prototype._Y41.call(this, data);
this._F71 = data['m_count'];
this._W71._Y41(data['m_centroid']);
this._E71 = [];
this._X71 = [];
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
this._E71[_i2] = new _K41();
this._E71[_i2]._Y41(data['m_vertices'][_i2]);
this._X71[_i2] = new _K41();
this._X71[_i2]._Y41(data['m_normals'][_i2])
}
}
};
_V71._481 = function (_u81, _Jc) {
_W31(_Jc >= 3);
var _j2 = new _K41();
var _c81 = 0.0;
var _v81 = new _K41(0.0, 0.0);
var _w81 = 1.0 / 3.0;
for (var _i2 = 0; _i2 < _Jc; ++_i2) {
var __n = _v81;
var _y61 = _u81[_i2];
var _x81 = _i2 + 1 < _Jc ? _u81[_i2 + 1] : _u81[0];
var _e81 = _K41._R41(_y61, __n);
var _f81 = _K41._R41(_x81, __n);
var _g81 = _H51(_e81, _f81);
var _h81 = 0.5 * _g81;
_c81 += _h81;
_j2._Vj(_K41.Multiply(_h81, _K41.Multiply(_w81, _K41._Vj(_K41._Vj(__n, _y61), _x81))))
}
_W31(_c81 > _Z31);
_j2.Multiply(1.0 / _c81);
return _j2
};
_V71._q31(_U61);
function _y81() {
this._z81 = 0;
this._A81 = 0
}
function _B81(_C81, _D81) {
if (_C81._z81 == _D81._z81) {
return _C81._A81 - _D81._A81
}
return _C81._z81 - _D81._z81
}
function _E81() {
this._F81 = new _G81();
this._H81 = 0;
this._I81 = 0;
this._J81 = 0;
this._K81 = [];
this._L81 = 0;
this._M81 = [];
}
_E81.prototype = {
_N81: function (_171, _O81) {
var _P81 = this._F81._N81(_171, _O81);
++this._I81;
this._Q81(_P81);
return _P81
},
_R81: function (_P81) {
this._S81(_P81);
--this._I81;
this._F81._R81(_P81)
},
_T81: function (_P81, _171, _U81) {
var buffer = this._F81._T81(_P81, _171, _U81);
if (buffer) {
this._Q81(_P81)
}
},
_V81: function (_P81) {
this._Q81(_P81)
},
_W81: function (_P81) {
return this._F81._W81(_P81)
},
_X81: function (_P81) {
return this._F81._X81(_P81)
},
_iT: function (_z81,
_A81) {
var _Y81 = this._F81._W81(_z81);
var _Z81 = this._F81._W81(_A81);
return __81(_Y81, _Z81)
},
_091: function () {
return this._I81
},
_191: function (_291) {
this._J81 = 0;
this._K81.length = 0;
for (var _i2 = 0; _i2 < this._L81; ++_i2) {
this._H81 = this._M81[_i2];
if (this._H81 == _E81._391) {
continue
}
var _491 = this._F81._W81(this._H81);
this._F81._591(this, _491)
}
this._L81 = 0;
this._K81.sort(_B81);
var _i2 = 0;
while (_i2 < this._J81) {
var _691 = this._K81[_i2];
var _791 = this._F81._X81(_691._z81);
var _891 = this._F81._X81(_691._A81);
_291._991(_791, _891);
++_i2;
while (_i2 < this._J81) {
var _a91 = this._K81[_i2];
if (_a91._z81 != _691._z81 || _a91._A81 != _691._A81) {
break
}++_i2
}
}
},
_591: function (_291, _171) {
this._F81._591(_291, _171)
}, /// @param input the ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).
/// @param callback a callback class that is called for each proxy that is hit by the ray.
_Z61: function (_291, _aC) {
this._F81._Z61(_291, _aC)
},
_b91: function () {
return this._F81._hP()
},
_c91: function () {
return this._F81._d91()
},
_e91: function () {
return this._F81._f91()
}, /// @param newOrigin the new origin with respect to the old origin
_g91: function (_h91) {
this._F81._g91(_h91)
},
_Q81: function (_P81) {
this._M81[this._L81] = _P81;
++this._L81
},
_S81: function (_P81) {
for (var _i2 = 0; _i2 < this._L81; ++_i2) {
if (this._M81[_i2] == _P81) {
this._M81[_i2] = _E81._391
}
}
},
_i91: function (_P81) {
if (_P81 == this._H81) {
return !0
}
this._K81[this._J81] = new _y81();
this._K81[this._J81]._z81 = _761(_P81, this._H81);
this._K81[this._J81]._A81 = _961(_P81, this._H81);
++this._J81;
return !0
}
};
_E81._391 = -1;
function _j91() {
this._E71 = null;
this._F71 = 0;
this._V61 = 0
}
_j91.prototype = {
_mH: function (_gb) {
this._E71 = _gb._E71;
this._F71 = _gb._F71;
this._V61 = _gb._V61
},
_Yl: function (_f71, index) {
switch (_f71._W61()) {
case _U61._871: {
var _k91 = _f71;
this._E71 = [_k91._e71];
this._F71 = 1;
this._V61 = _k91._V61
}
break;
case _U61._a71: {
var _Sa = _f71;
this._E71 = _Sa._E71;
this._F71 = _Sa._F71;
this._V61 = _Sa._V61
}
break;
case _U61._b71: {
var _l91 = _f71;
_W31(0 <= index && index < _l91._F71);
this._E71 = [_l91._E71[index]];
if (index + 1 < _l91._F71) {
this._E71[1] = _l91._E71[index + 1]
} else {
this._E71[1] = _l91._E71[0]
}
this._F71 = 2;
this._V61 = _l91._V61
}
break;
case _U61._971: {
var _S71 = _f71;
this._E71 = [_S71._r71, _S71._s71];
this._F71 = 2;
this._V61 = _S71._V61
}
break;
default:
_W31(!1)
}
},
_l71: function (_of, _pf) {
var _m91 = 0;
var _n91 = this._E71[0].x * _of + this._E71[0].y * _pf;
for (var _i2 = 1; _i2 < this._F71; ++_i2) {
var value = this._E71[_i2].x * _of + this._E71[_i2].y * _pf;
if (value > _n91) {
_m91 = _i2;
_n91 = value
}
}
return _m91
},
_m71: function (_of, _pf) {
return this._E71[this._l71(_of, _pf)]
},
_vi: function () {
return this._F71
},
_n71: function (index) {
_W31(0 <= index && index < this._F71);
return this._E71[index]
}
};
function _o91() {
this._p91 = 0;
this._Jc = 0;
this._q91 = [0, 0, 0];
this._r91 = [0, 0, 0]
};
function _s91() {
this._t91 = new _j91();
this._u91 = new _j91();
this._v91 = new _u51();
this._w91 = new _u51();
this._x91 = !1
};
function _y91() {
this._z91 = new _K41();
this._A91 = new _K41();
this._671 = 0;
this._B91 = 0
};
function _C91() {
this._D91 = new _K41();
this._E91 = new _K41();
this._k2 = new _K41();
this._a9 = 0;
this._q91 = 0;
this._r91 = 0
}
_C91.prototype = {
_mH: function (_gb) {
this._D91.x = _gb._D91.x;
this._D91.y = _gb._D91.y;
this._E91.x = _gb._E91.x;
this._E91.y = _gb._E91.y;
this._k2.x = _gb._k2.x;
this._k2.y = _gb._k2.y;
this._a9 = _gb._a9;
this._q91 = _gb._q91;
this._r91 = _gb._r91
}
};
function _F91() {
this._G91 = [new _C91(), new _C91(), new _C91()];
this._F71 = 0
}
_F91.prototype = {
_H91: function (_Ic, _t91, _v91, _u91, _w91) {
_W31(_Ic._Jc <= 3);
this._F71 = _Ic._Jc;
var vertices = this._G91;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _O9 = vertices[_i2];
_O9._q91 = _Ic._q91[_i2];
_O9._r91 = _Ic._r91[_i2];
var _I91 = _t91._n71(_O9._q91);
var _J91 = _u91._n71(_O9._r91);
_O9._D91.x = (_v91._qC._j2 * _I91.x - _v91._qC._wy * _I91.y) + _v91._gE.x;
_O9._D91.y = (_v91._qC._wy * _I91.x + _v91._qC._j2 * _I91.y) + _v91._gE.y;
_O9._E91.x = (_w91._qC._j2 * _J91.x - _w91._qC._wy * _J91.y) + _w91._gE.x;
_O9._E91.y = (_w91._qC._wy * _J91.x + _w91._qC._j2 * _J91.y) + _w91._gE.y;
_O9._k2.x = _O9._E91.x - _O9._D91.x;
_O9._k2.y = _O9._E91.y - _O9._D91.y;
_O9._a9 = 0.0
}
if (this._F71 > 1) {
var _K91 = _Ic._p91;
var _L91 = this._M91();
if (_L91 < 0.5 * _K91 || 2.0 * _K91 < _L91 || _L91 < _Z31) {
this._F71 = 0
}
}
if (this._F71 == 0) {
var _O9 = vertices[0];
_O9._q91 = 0;
_O9._r91 = 0;
var _I91 = _t91._n71(0);
var _J91 = _u91._n71(0);
_O9._D91.x = (_v91._qC._j2 * _I91.x - _v91._qC._wy * _I91.y) + _v91._gE.x;
_O9._D91.y = (_v91._qC._wy * _I91.x + _v91._qC._j2 * _I91.y) + _v91._gE.y;
_O9._E91.x = (_w91._qC._j2 * _J91.x - _w91._qC._wy * _J91.y) + _w91._gE.x;
_O9._E91.y = (_w91._qC._wy * _J91.x + _w91._qC._j2 * _J91.y) + _w91._gE.y;
_O9._k2.x = _O9._E91.x - _O9._D91.x;
_O9._k2.y = _O9._E91.y - _O9._D91.y;
_O9._a9 = 1.0;
this._F71 = 1
}
},
_N91: function (_Ic) {
_Ic._p91 = this._M91();
_Ic._Jc = this._F71;
var vertices = this._G91;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
_Ic._q91[_i2] = vertices[_i2]._q91;
_Ic._r91[_i2] = vertices[_i2]._r91
}
},
_O91: function (_gE) {
switch (this._F71) {
case 1:
_gE.x = -this._G91[0]._k2.x;
_gE.y = -this._G91[0]._k2.y;
break;
case 2: {
var _P91 = this._G91[1]._k2.x - this._G91[0]._k2.x;
var _Q91 = this._G91[1]._k2.y - this._G91[0]._k2.y;
var _R91 = _P91 * -this._G91[0]._k2.y - _Q91 * -this._G91[0]._k2.x;
if (_R91 > 0.0) {
_gE.x = -1.0 * _Q91;
_gE.y = 1.0 * _P91
} else {
_gE.x = 1.0 * _Q91;
_gE.y = -1.0 * _P91
}
}
break;
default:
_W31(!1);
_gE.x = _gE.y = 0;
break
}
},
_S91: function (_gE) {
switch (this._F71) {
case 1:
_gE.x = this._G91[0]._k2.x;
_gE.y = this._G91[0]._k2.y;
break;
case 2:
_gE.x = (this._G91[0]._a9 * this._G91[0]._k2.x) + (this._G91[1]._a9 * this._G91[1]._k2.x);
_gE.y = (this._G91[0]._a9 * this._G91[0]._k2.y) + (this._G91[1]._a9 * this._G91[1]._k2.y);
break;
case 3:
_gE.x = _gE.y = 0;
break;
default:
_W31(!1);
_gE.x = _gE.y = 0;
break
}
},
_T91: function (_U91, _V91) {
switch (this._F71) {
case 1:
_U91.x = this._G91[0]._D91.x;
_U91.y = this._G91[0]._D91.y;
_V91.x = this._G91[0]._E91.x;
_V91.y = this._G91[0]._E91.y;
break;
case 2:
_U91.x = (this._G91[0]._a9 * this._G91[0]._D91.x) + (this._G91[1]._a9 * this._G91[1]._D91.x);
_U91.y = (this._G91[0]._a9 * this._G91[0]._D91.y) + (this._G91[1]._a9 * this._G91[1]._D91.y);
_V91.x = (this._G91[0]._a9 * this._G91[0]._E91.x) + (this._G91[1]._a9 * this._G91[1]._E91.x);
_V91.y = (this._G91[0]._a9 * this._G91[0]._E91.y) + (this._G91[1]._a9 * this._G91[1]._E91.y);
break;
case 3:
_U91.x = (this._G91[0]._a9 * this._G91[0]._D91.x) + (this._G91[1]._a9 * this._G91[1]._D91.x) + (this._G91[2]._a9 * this._G91[2]._D91.x);
_U91.y = (this._G91[0]._a9 * this._G91[0]._D91.y) + (this._G91[1]._a9 * this._G91[1]._D91.y) + (this._G91[2]._a9 * this._G91[2]._D91.y);
_V91.x = _U91.x;
_V91.y = _U91.y;
break;
default:
_W31(!1);
break
}
},
_M91: function () {
switch (this._F71) {
case 1:
return 0.0;
case 2:
return _M51(this._G91[0]._k2, this._G91[1]._k2);
case 3:
return (this._G91[1]._k2.x - this._G91[0]._k2.x) * (this._G91[2]._k2.y - this._G91[0]._k2.y) - (this._G91[1]._k2.y - this._G91[0]._k2.y) * (this._G91[2]._k2.x - this._G91[0]._k2.x);
default:
_W31(!1);
return 0.0
}
},
_W91: function () {
var _X91 = this._G91[0]._k2;
var _Y91 = this._G91[1]._k2;
var _P91 = _Y91.x - _X91.x;
var _Q91 = _Y91.y - _X91.y;
var _Z91 = -(_X91.x * _P91 + _X91.y * _Q91);
if (_Z91 <= 0.0) {
this._G91[0]._a9 = 1.0;
this._F71 = 1;
return
}
var __91 = _Y91.x * _P91 + _Y91.y * _Q91;
if (__91 <= 0.0) {
this._G91[1]._a9 = 1.0;
this._F71 = 1;
this._G91[0]._mH(this._G91[1]);
return
}
var _0a1 = 1.0 / (__91 + _Z91);
this._G91[0]._a9 = __91 * _0a1;
this._G91[1]._a9 = _Z91 * _0a1;
this._F71 = 2
},
_1a1: function () {
var _X91 = this._G91[0]._k2;
var _Y91 = this._G91[1]._k2;
var _2a1 = this._G91[2]._k2;
var _P91 = _Y91.x - _X91.x;
var _Q91 = _Y91.y - _X91.y;
var _3a1 = _X91.x * _P91 + _X91.y * _Q91;
var _4a1 = _Y91.x * _P91 + _Y91.y * _Q91;
var __91 = _4a1;
var _Z91 = -_3a1;
var _5a1 = _2a1.x - _X91.x;
var _6a1 = _2a1.y - _X91.y;
var _7a1 = _X91.x * _5a1 + _X91.y * _6a1;
var _8a1 = _2a1.x * _5a1 + _2a1.y * _6a1;
var _9a1 = _8a1;
var _aa1 = -_7a1;
var _ba1 = _2a1.x - _Y91.x;
var _ca1 = _2a1.y - _Y91.y;
var _da1 = _Y91.x * _ba1 + _Y91.y * _ca1;
var _ea1 = _2a1.x * _ba1 + _2a1.y * _ca1;
var _fa1 = _ea1;
var _ga1 = -_da1;
var _ha1 = _P91 * _6a1 - _Q91 * _5a1;
var _ia1 = _ha1 * (_Y91.x * _2a1.y - _Y91.y * _2a1.x);
var _ja1 = _ha1 * (_2a1.x * _X91.y - _2a1.y * _X91.x);
var _ka1 = _ha1 * (_X91.x * _Y91.y - _X91.y * _Y91.x);
if (_Z91 <= 0.0 && _aa1 <= 0.0) {
this._G91[0]._a9 = 1.0;
this._F71 = 1;
return
}
if (__91 > 0.0 && _Z91 > 0.0 && _ka1 <= 0.0) {
var _0a1 = 1.0 / (__91 + _Z91);
this._G91[0]._a9 = __91 * _0a1;
this._G91[1]._a9 = _Z91 * _0a1;
this._F71 = 2;
return
}
if (_9a1 > 0.0 && _aa1 > 0.0 && _ja1 <= 0.0) {
var _la1 = 1.0 / (_9a1 + _aa1);
this._G91[0]._a9 = _9a1 * _la1;
this._G91[2]._a9 = _aa1 * _la1;
this._F71 = 2;
this._G91[1]._mH(this._G91[2]);
return
}
if (__91 <= 0.0 && _ga1 <= 0.0) {
this._G91[1]._a9 = 1.0;
this._F71 = 1;
this._G91[0]._mH(this._G91[1]);
return;
}
if (_9a1 <= 0.0 && _fa1 <= 0.0) {
this._G91[2]._a9 = 1.0;
this._F71 = 1;
this._G91[0]._mH(this._G91[2]);
return
}
if (_fa1 > 0.0 && _ga1 > 0.0 && _ia1 <= 0.0) {
var _ma1 = 1.0 / (_fa1 + _ga1);
this._G91[1]._a9 = _fa1 * _ma1;
this._G91[2]._a9 = _ga1 * _ma1;
this._F71 = 2;
this._G91[0]._mH(this._G91[2]);
return
}
var _na1 = 1.0 / (_ia1 + _ja1 + _ka1);
this._G91[0]._a9 = _ia1 * _na1;
this._G91[1]._a9 = _ja1 * _na1;
this._G91[2]._a9 = _ka1 * _na1;
this._F71 = 3
}
};
var _oa1 = new _F91();
var _pa1 = new _K41();
var _qa1 = new _K41();
function _ra1(_cC, _Ic, _aC) {
++_ra1._sa1;
var _t91 = _aC._t91;
var _u91 = _aC._u91;
var _v91 = _aC._v91;
var _w91 = _aC._w91;
_oa1._H91(_Ic, _t91, _v91, _u91, _w91);
var vertices = _oa1._G91;
var _ta1 = 20;
var _ua1 = [0, 0, 0],
_va1 = [0, 0, 0];
var _wa1 = 0;
var _xa1 = _Y31;
var _ya1 = _xa1;
var _za1 = 0;
while (_za1 < _ta1) {
_wa1 = _oa1._F71;
for (var _i2 = 0; _i2 < _wa1; ++_i2) {
_ua1[_i2] = vertices[_i2]._q91;
_va1[_i2] = vertices[_i2]._r91
}
switch (_oa1._F71) {
case 1:
break;
case 2:
_oa1._W91();
break;
case 3:
_oa1._1a1();
break;
default:
_W31(!1)
}
if (_oa1._F71 == 3) {
break
}
_oa1._S91(_qa1);
_ya1 = _qa1._S41();
_xa1 = _ya1;
_oa1._O91(_qa1);
if (_qa1._S41() < _Z31 * _Z31) {
break
}
var _Aa1 = vertices[_oa1._F71];
_Aa1._q91 = _t91._l71(_v91._qC._j2 * -_qa1.x + _v91._qC._wy * -_qa1.y, -_v91._qC._wy * -_qa1.x + _v91._qC._j2 * -_qa1.y);
var _Ba1 = _t91._n71(_Aa1._q91);
_Aa1._D91.x = (_v91._qC._j2 * _Ba1.x - _v91._qC._wy * _Ba1.y) + _v91._gE.x;
_Aa1._D91.y = (_v91._qC._wy * _Ba1.x + _v91._qC._j2 * _Ba1.y) + _v91._gE.y;
_Aa1._r91 = _u91._l71(_w91._qC._j2 * _qa1.x + _w91._qC._wy * _qa1.y,
-_w91._qC._wy * _qa1.x + _w91._qC._j2 * _qa1.y);
var _Ca1 = _u91._n71(_Aa1._r91);
_Aa1._E91.x = (_w91._qC._j2 * _Ca1.x - _w91._qC._wy * _Ca1.y) + _w91._gE.x;
_Aa1._E91.y = (_w91._qC._wy * _Ca1.x + _w91._qC._j2 * _Ca1.y) + _w91._gE.y;
_Aa1._k2.x = _Aa1._E91.x - _Aa1._D91.x;
_Aa1._k2.y = _Aa1._E91.y - _Aa1._D91.y;
++_za1;
++_ra1._Da1;
var _Ea1 = !1;
for (var _i2 = 0; _i2 < _wa1; ++_i2) {
if (_Aa1._q91 == _ua1[_i2] && _Aa1._r91 == _va1[_i2]) {
_Ea1 = !0;
break
}
}
if (_Ea1) {
break
}++_oa1._F71
}
_ra1._Fa1 = _961(_ra1._Fa1, _za1);
_oa1._T91(_cC._z91, _cC._A91);
_cC._671 = _M51(_cC._z91,
_cC._A91);
_cC._B91 = _za1;
_oa1._N91(_Ic);
if (_aC._x91) {
var _Ga1 = _t91._V61;
var _Ha1 = _u91._V61;
if (_cC._671 > _Ga1 + _Ha1 && _cC._671 > _Z31) {
_cC._671 -= _Ga1 + _Ha1;
_pa1.x = _cC._A91.x - _cC._z91.x;
_pa1.y = _cC._A91.y - _cC._z91.y;
_pa1._T41();
_cC._z91.x += (_Ga1 * _pa1.x);
_cC._z91.y += (_Ga1 * _pa1.y);
_cC._A91.x -= (_Ha1 * _pa1.x);
_cC._A91.y -= (_Ha1 * _pa1.y)
} else {
var _Ln = (0.5 * (_cC._z91.x + _cC._A91.x));
var _Mn = (0.5 * (_cC._z91.y + _cC._A91.y));
_cC._z91.x = _Ln;
_cC._z91.y = _Mn;
_cC._A91.x = _Ln;
_cC._A91.y = _Mn;
_cC._671 = 0.0
}
}
}
_ra1._sa1 = 0;
_ra1._Da1 = 0;
_ra1._Fa1 = 0;
var _Ia1 = 255;
function _Ja1() {}
_Ja1.prototype = {
_q91: 0,
_r91: 0,
_Ka1: 0,
_La1: 0,
_8D: function () {
this._q91 = this._r91 = this._Ka1 = this._La1 = 0
},
_ta: function () {
return this._q91 | (this._r91 << 8) | (this._Ka1 << 16) | (this._La1 << 24);
},
_mH: function (__l) {
this._q91 = __l._q91;
this._r91 = __l._r91;
this._Ka1 = __l._Ka1;
this._La1 = __l._La1
}
};
_Ja1._Ma1 = 0;
_Ja1._Na1 = 1;
function _Oa1() {
this._Pa1 = new _K41();
this._Qa1 = 0;
this._Ra1 = 0;
this.id = new _Ja1()
};
_Oa1.prototype = {
_X7: function () {
var _Sa1 = new _Oa1();
_Sa1._Pa1.x = this._Pa1.x;
_Sa1._Pa1.y = this._Pa1.y;
_Sa1._Qa1 = this._Qa1;
_Sa1._Ra1 = this._Ra1;
_Sa1.id._mH(this.id);
return _Sa1
}
};
function _Ta1() {
this._Ua1 = new Array(_041);
this._Va1 = new _K41();
this._Pa1 = new _K41();
this.type = 0;
this._Wa1 = 0
};
_Ta1.prototype = {
_X7: function () {
var _Xa1 = new _Ta1();
_Xa1._Wa1 = this._Wa1;
_Xa1.type = this.type;
_Xa1._Pa1.x = this._Pa1.x;
_Xa1._Pa1.y = this._Pa1.y;
_Xa1._Va1.x = this._Va1.x;
_Xa1._Va1.y = this._Va1.y;
for (var _i2 = 0; _i2 < this._Wa1; ++_i2) _Xa1._Ua1[_i2] = this._Ua1[_i2]._X7();
return _Xa1
},
_mH: function (_Xa1) {
this._Wa1 = _Xa1._Wa1;
this.type = _Xa1.type;
this._Pa1.x = _Xa1._Pa1.x;
this._Pa1.y = _Xa1._Pa1.y;
this._Va1.x = _Xa1._Va1.x;
this._Va1.y = _Xa1._Va1.y;
for (var _i2 = 0; _i2 < this._Wa1; ++_i2) this._Ua1[_i2] = _Xa1._Ua1[_i2]._X7()
}
};
_Ta1._Ya1 = 0;
_Ta1._Za1 = 1;
_Ta1.__a1 = 2;
_Ta1._0b1 = 0;
_Ta1._1b1 = 1;
_Ta1._2b1 = 2;
_Ta1._3b1 = 3;
function _4b1() {
this._771 = new _K41();
this._Ua1 = new Array(_041);
this._5b1 = new Array(_041)
}
_4b1.prototype = {
_6b1: function (_Xa1, _7b1, _8b1, _9b1, _ab1) {
if (_Xa1._Wa1 == 0) {
return
}
switch (_Xa1.type) {
case _Ta1._Ya1: {
this._771.x = 1;
this._771.y = 0;
var _bb1 = (_7b1._qC._j2 * _Xa1._Pa1.x - _7b1._qC._wy * _Xa1._Pa1.y) + _7b1._gE.x;
var _cb1 = (_7b1._qC._wy * _Xa1._Pa1.x + _7b1._qC._j2 * _Xa1._Pa1.y) + _7b1._gE.y;
var _db1 = (_9b1._qC._j2 * _Xa1._Ua1[0]._Pa1.x - _9b1._qC._wy * _Xa1._Ua1[0]._Pa1.y) + _9b1._gE.x;
var _eb1 = (_9b1._qC._wy * _Xa1._Ua1[0]._Pa1.x + _9b1._qC._j2 * _Xa1._Ua1[0]._Pa1.y) + _9b1._gE.y;
var _Dn = _bb1 - _db1;
var _En = _cb1 - _eb1;
if ((_Dn * _Dn + _En * _En) > _Z31 * _Z31) {
this._771.x = _db1 - _bb1;
this._771.y = _eb1 - _cb1;
this._771._T41()
}
var _fb1 = _bb1 + (_8b1 * this._771.x);
var _gb1 = _cb1 + (_8b1 * this._771.y);
var _hb1 = _db1 - (_ab1 * this._771.x);
var _ib1 = _eb1 - (_ab1 * this._771.y);
this._Ua1[0] = new _K41(0.5 * (_fb1 + _hb1), 0.5 * (_gb1 + _ib1));
this._5b1[0] = (_hb1 - _fb1) * this._771.x + (_ib1 - _gb1) * this._771.y
}
break;
case _Ta1._Za1: {
this._771.x = _7b1._qC._j2 * _Xa1._Va1.x - _7b1._qC._wy * _Xa1._Va1.y;
this._771.y = _7b1._qC._wy * _Xa1._Va1.x + _7b1._qC._j2 * _Xa1._Va1.y;
var _jb1 = (_7b1._qC._j2 * _Xa1._Pa1.x - _7b1._qC._wy * _Xa1._Pa1.y) + _7b1._gE.x;
var _kb1 = (_7b1._qC._wy * _Xa1._Pa1.x + _7b1._qC._j2 * _Xa1._Pa1.y) + _7b1._gE.y;
for (var _i2 = 0; _i2 < _Xa1._Wa1; ++_i2) {
var _lb1 = (_9b1._qC._j2 * _Xa1._Ua1[_i2]._Pa1.x - _9b1._qC._wy * _Xa1._Ua1[_i2]._Pa1.y) + _9b1._gE.x;
var _mb1 = (_9b1._qC._wy * _Xa1._Ua1[_i2]._Pa1.x + _9b1._qC._j2 * _Xa1._Ua1[_i2]._Pa1.y) + _9b1._gE.y;
var _Xn = (_lb1 - _jb1) * this._771.x + (_mb1 - _kb1) * this._771.y;
var _fb1 = _lb1 + ((_8b1 - _Xn) * this._771.x);
var _gb1 = _mb1 + ((_8b1 - _Xn) * this._771.y);
var _hb1 = (_lb1 - (_ab1 * this._771.x));
var _ib1 = (_mb1 - (_ab1 * this._771.y));
this._Ua1[_i2] = new _K41(0.5 * (_fb1 + _hb1), 0.5 * (_gb1 + _ib1));
this._5b1[_i2] = (_hb1 - _fb1) * this._771.x + (_ib1 - _gb1) * this._771.y
}
}
break;
case _Ta1.__a1: {
this._771.x = _9b1._qC._j2 * _Xa1._Va1.x - _9b1._qC._wy * _Xa1._Va1.y;
this._771.y = _9b1._qC._wy * _Xa1._Va1.x + _9b1._qC._j2 * _Xa1._Va1.y;
var _jb1 = (_9b1._qC._j2 * _Xa1._Pa1.x - _9b1._qC._wy * _Xa1._Pa1.y) + _9b1._gE.x;
var _kb1 = (_9b1._qC._wy * _Xa1._Pa1.x + _9b1._qC._j2 * _Xa1._Pa1.y) + _9b1._gE.y;
for (var _i2 = 0; _i2 < _Xa1._Wa1; ++_i2) {
var _lb1 = (_7b1._qC._j2 * _Xa1._Ua1[_i2]._Pa1.x - _7b1._qC._wy * _Xa1._Ua1[_i2]._Pa1.y) + _7b1._gE.x;
var _mb1 = (_7b1._qC._wy * _Xa1._Ua1[_i2]._Pa1.x + _7b1._qC._j2 * _Xa1._Ua1[_i2]._Pa1.y) + _7b1._gE.y;
var _Xn = (_lb1 - _jb1) * this._771.x + (_mb1 - _kb1) * this._771.y;
var _hb1 = _lb1 + ((_ab1 - _Xn) * this._771.x);
var _ib1 = _mb1 + ((_ab1 - _Xn) * this._771.y);
var _fb1 = (_lb1 - (_8b1 * this._771.x));
var _gb1 = (_mb1 - (_8b1 * this._771.y));
this._Ua1[_i2] = new _K41(0.5 * (_fb1 + _hb1), 0.5 * (_gb1 + _ib1));
this._5b1[_i2] = (_fb1 - _hb1) * this._771.x + (_gb1 - _ib1) * this._771.y
}
this._771.x = -this._771.x;
this._771.y = -this._771.y
}
break
}
}
};
function _nb1(_ob1, _pb1, _qb1, _rb1) {
for (var _i2 = 0; _i2 < _041; ++_i2) {
_ob1[_i2] = _Ta1._0b1;
_pb1[_i2] = _Ta1._0b1
}
for (var _i2 = 0; _i2 < _qb1._Wa1; ++_i2) {
var id = _qb1._Ua1[_i2].id;
_ob1[_i2] = _Ta1._3b1;
for (var _nb = 0; _nb < _rb1._Wa1; ++_nb) {
if (_rb1._Ua1[_nb].id._ta() == id._ta()) {
_ob1[_i2] = _Ta1._2b1;
break
}
}
}
for (var _i2 = 0; _i2 < _rb1._Wa1; ++_i2) {
var id = _rb1._Ua1[_i2].id;
_pb1[_i2] = _Ta1._1b1;
for (var _nb = 0; _nb < _qb1._Wa1; ++_nb) {
if (_qb1._Ua1[_nb].id._ta() == id._ta()) {
_pb1[_i2] = _Ta1._2b1;
break
}
}
}
}
function _sb1() {
this._O9 = new _K41();
this.id = new _Ja1()
};
function _tb1() {
this.__n = new _K41(), this._y61 = new _K41();
this._h71 = 0
};
function _ub1() {
this._771 = new _K41();
this._i71 = 0
};
function _vb1() {
this._j71 = new _K41();
this._k71 = new _K41()
}
_vb1.prototype = {
_mH: function (_wb1) {
this._j71.x = _wb1._j71.x;
this._j71.y = _wb1._j71.y;
this._k71.x = _wb1._k71.x;
this._k71.y = _wb1._k71.y
},
_X7: function () {
var _xb1 = new _vb1();
_xb1._j71.x = this._j71.x;
_xb1._j71.y = this._j71.y;
_xb1._k71.x = this._k71.x;
_xb1._k71.y = this._k71.y;
return _xb1
},
_V41: function () {
return (this._k71.x - this._j71.x) >= 0.0 && (this._k71.y - this._j71.y) >= 0.0 && this._j71._V41() && this._k71._V41();
},
_yb1: function () {
return new _K41(0.5 * (this._j71.x + this._k71.x), 0.5 * (this._j71.y + this._k71.y))
},
_zb1: function () {
return new _K41(0.5 * (this._k71.x - this._j71.x), 0.5 * (this._k71.y - this._j71.y))
},
_Ab1: function () {
return 2.0 * ((this._k71.x - this._j71.x) + (this._k71.y - this._j71.y))
},
_Bb1: function (_Cb1, _Db1) {
if (_Db1) {
this._j71.x = _761(_Cb1._j71.x, _Db1._j71.x);
this._j71.y = _761(_Cb1._j71.y, _Db1._j71.y);
this._k71.x = _961(_Cb1._k71.x, _Db1._k71.x);
this._k71.y = _961(_Cb1._k71.y, _Db1._k71.y)
} else {
this._j71.x = _761(this._j71.x, _Cb1._j71.x);
this._j71.y = _761(this._j71.y, _Cb1._j71.y);
this._k71.x = _961(this._k71.x, _Cb1._k71.x);
this._k71.y = _961(this._k71.y, _Cb1._k71.y)
}
},
_Eb1: function (_171) {
return this._j71.x <= _171._j71.x && this._j71.y <= _171._j71.y && _171._k71.x <= this._k71.x && _171._k71.y <= this._k71.y
},
_Z61: function (_cC, _aC) {
var _Fb1 = -_Y31;
var _Gb1 = _Y31;
var _gE = _aC.__n;
var _Xn = _K41._R41(_aC._y61, _aC.__n);
var _Hb1 = _561(_Xn);
var _771 = new _K41();
for (var _i2 = 0; _i2 < 2; ++_i2) {
if (_Hb1._P41(_i2) < _Z31) {
if (_gE._P41(_i2) < this._j71._P41(_i2) || this._k71._P41(_i2) < _gE._P41(_i2)) {
return !1
}
} else {
var _Ib1 = 1.0 / _Xn._P41(_i2);
var _Jb1 = (this._j71._P41(_i2) - _gE._P41(_i2)) * _Ib1;
var _Kb1 = (this._k71._P41(_i2) - _gE._P41(_i2)) * _Ib1;
var _wy = -1.0;
if (_Jb1 > _Kb1) {
var _yE = _Kb1;
_Kb1 = _Jb1;
_Jb1 = _yE;
_wy = 1.0
}
if (_Jb1 > _Fb1) {
_771.x = _771.y = 0;
_771._Q41(_i2,
_wy);
_Fb1 = _Jb1
}
_Gb1 = _761(_Gb1, _Kb1);
if (_Fb1 > _Gb1) {
return !1
}
}
}
if (_Fb1 < 0.0 || _aC._h71 < _Fb1) {
return !1
}
_cC._i71 = _Fb1;
_cC._771.x = _771.x;
_cC._771.y = _771.y;
return !0
}
};
function _Lb1(_Xa1, _Mb1, _7b1, _Nb1, _9b1) {
_Xa1._Wa1 = 0;
var _U91 = _X51(_7b1, _Mb1._e71);
var _V91 = _X51(_9b1, _Nb1._e71);
var _of = _V91.x - _U91.x;
var _pf = _V91.y - _U91.y;
var _Ob1 = _of * _of + _pf * _pf;
var _Ga1 = _Mb1._V61,
_Ha1 = _Nb1._V61;
var _v61 = _Ga1 + _Ha1;
if (_Ob1 > _v61 * _v61) {
return
}
_Xa1.type = _Ta1._Ya1;
_Xa1._Pa1.x = _Mb1._e71.x;
_Xa1._Pa1.y = _Mb1._e71.y;
_Xa1._Va1.x = _Xa1._Va1.y = 0;
_Xa1._Wa1 = 1;
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y;
_Xa1._Ua1[0].id._8D()
}
function _Pb1(_Xa1, _Qb1, _7b1, _Nb1, _9b1) {
_Xa1._Wa1 = 0;
var _j2 = _X51(_9b1, _Nb1._e71);
var _Rb1 = _Z51(_7b1, _j2);
var _Sb1 = 0;
var _Tb1 = -_Y31;
var _v61 = _Qb1._V61 + _Nb1._V61;
var vertexCount = _Qb1._F71;
var vertices = _Qb1._E71;
var _Ub1 = _Qb1._X71;
for (var _i2 = 0; _i2 < vertexCount; ++_i2) {
var _wy = _Ub1[_i2].x * (_Rb1.x - vertices[_i2].x) + _Ub1[_i2].y * (_Rb1.y - vertices[_i2].y);
if (_wy > _v61) {
return
}
if (_wy > _Tb1) {
_Tb1 = _wy;
_Sb1 = _i2
}
}
var _Vb1 = _Sb1;
var _Wb1 = _Vb1 + 1 < vertexCount ? _Vb1 + 1 : 0;
var _sf = vertices[_Vb1];
var _Q9 = vertices[_Wb1];
if (_Tb1 < _Z31) {
_Xa1._Wa1 = 1;
_Xa1.type = _Ta1._Za1;
_Xa1._Va1.x = _Ub1[_Sb1].x;
_Xa1._Va1.y = _Ub1[_Sb1].y;
_Xa1._Pa1.x = 0.5 * (_sf.x + _Q9.x);
_Xa1._Pa1.y = 0.5 * (_sf.y + _Q9.y);
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y;
_Xa1._Ua1[0].id._8D();
return
}
var _Xb1 = (_Rb1.x - _sf.x) * (_Q9.x - _sf.x) + (_Rb1.y - _sf.y) * (_Q9.y - _sf.y);
var _P9 = (_Rb1.x - _Q9.x) * (_sf.x - _Q9.x) + (_Rb1.y - _Q9.y) * (_sf.y - _Q9.y);
if (_Xb1 <= 0.0) {
if (_N51(_Rb1, _sf) > _v61 * _v61) {
return
}
_Xa1._Wa1 = 1;
_Xa1.type = _Ta1._Za1;
_Xa1._Va1.x = _Rb1.x - _sf.x;
_Xa1._Va1.y = _Rb1.y - _sf.y;
_Xa1._Va1._T41();
_Xa1._Pa1.x = _sf.x;
_Xa1._Pa1.y = _sf.y;
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y;
_Xa1._Ua1[0].id._8D()
} else if (_P9 <= 0.0) {
if (_N51(_Rb1, _Q9) > _v61 * _v61) {
return
}
_Xa1._Wa1 = 1;
_Xa1.type = _Ta1._Za1;
_Xa1._Va1.x = _Rb1.x - _Q9.x;
_Xa1._Va1.y = _Rb1.y - _Q9.y;
_Xa1._Va1._T41();
_Xa1._Pa1.x = _Q9.x;
_Xa1._Pa1.y = _Q9.y;
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y;
_Xa1._Ua1[0].id._8D()
} else {
var _Yb1 = 0.5 * (_sf.x + _Q9.x);
var _Zb1 = 0.5 * (_sf.y + _Q9.y);
var __b1 = (_Rb1.x - _Yb1) * _Ub1[_Vb1].x + (_Rb1.y - _Zb1) * _Ub1[_Vb1].y;
if (__b1 > _v61) {
return
}
_Xa1._Wa1 = 1;
_Xa1.type = _Ta1._Za1;
_Xa1._Va1.x = _Ub1[_Vb1].x;
_Xa1._Va1.y = _Ub1[_Vb1].y;
_Xa1._Pa1.x = _Yb1;
_Xa1._Pa1.y = _Zb1;
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y;
_Xa1._Ua1[0].id._8D()
}
}
function _0c1(_1c1, _2c1, _3c1, _4c1, _5c1) {
var _6c1 = _2c1._F71;
var _7c1 = _4c1._F71;
var _8c1 = _2c1._X71;
var _9c1 = _2c1._E71;
var _ac1 = _4c1._E71;
var _v51 = _161(_5c1, _3c1);
var _m91 = 0;
var _bc1 = -_Y31;
for (var _i2 = 0; _i2 < _6c1; ++_i2) {
var _9g = _v51._qC._j2 * _8c1[_i2].x - _v51._qC._wy * _8c1[_i2].y;
var _ag = _v51._qC._wy * _8c1[_i2].x + _v51._qC._j2 * _8c1[_i2].y;
var _Ff = (_v51._qC._j2 * _9c1[_i2].x - _v51._qC._wy * _9c1[_i2].y) + _v51._gE.x;
var _Gf = (_v51._qC._wy * _9c1[_i2].x + _v51._qC._j2 * _9c1[_i2].y) + _v51._gE.y;
var _cc1 = _Y31;
for (var _nb = 0; _nb < _7c1; ++_nb) {
var _dc1 = _9g * (_ac1[_nb].x - _Ff) + _ag * (_ac1[_nb].y - _Gf);
if (_dc1 < _cc1) {
_cc1 = _dc1
}
}
if (_cc1 > _bc1) {
_bc1 = _cc1;
_m91 = _i2
}
}
_1c1[0] = _m91;
return _bc1
}
function _ec1(_j2, _2c1, _3c1, _fc1, _4c1, _5c1) {
var _gc1 = _2c1._X71;
var _7c1 = _4c1._F71;
var _hc1 = _4c1._E71;
var _ic1 = _4c1._X71;
_W31(0 <= _fc1 && _fc1 < _2c1._F71);
var _jc1 = _3c1._qC._j2 * _gc1[_fc1].x - _3c1._qC._wy * _gc1[_fc1].y;
var _kc1 = _3c1._qC._wy * _gc1[_fc1].x + _3c1._qC._j2 * _gc1[_fc1].y;
var _lc1 = _5c1._qC._j2 * _jc1 + _5c1._qC._wy * _kc1;
var _mc1 = -_5c1._qC._wy * _jc1 + _5c1._qC._j2 * _kc1;
var index = 0;
var _nc1 = _Y31;
for (var _i2 = 0; _i2 < _7c1; ++_i2) {
var _881 = _lc1 * _ic1[_i2].x + _mc1 * _ic1[_i2].y;
if (_881 < _nc1) {
_nc1 = _881;
index = _i2
}
}
var _T71 = index;
var _U71 = _T71 + 1 < _7c1 ? _T71 + 1 : 0;
_j2[0]._O9.x = (_5c1._qC._j2 * _hc1[_T71].x - _5c1._qC._wy * _hc1[_T71].y) + _5c1._gE.x;
_j2[0]._O9.y = (_5c1._qC._wy * _hc1[_T71].x + _5c1._qC._j2 * _hc1[_T71].y) + _5c1._gE.y;
_j2[0].id._q91 = _fc1;
_j2[0].id._r91 = _T71;
_j2[0].id._Ka1 = _Ja1._Na1;
_j2[0].id._La1 = _Ja1._Ma1;
_j2[1]._O9.x = (_5c1._qC._j2 * _hc1[_U71].x - _5c1._qC._wy * _hc1[_U71].y) + _5c1._gE.x;
_j2[1]._O9.y = (_5c1._qC._wy * _hc1[_U71].x + _5c1._qC._j2 * _hc1[_U71].y) + _5c1._gE.y;
_j2[1].id._q91 = _fc1;
_j2[1].id._r91 = _U71;
_j2[1].id._Ka1 = _Ja1._Na1;
_j2[1].id._La1 = _Ja1._Ma1
}
function _oc1(_Xa1, _pc1, _7b1, _qc1, _9b1) {
_Xa1._Wa1 = 0;
var _rc1 = _pc1._V61 + _qc1._V61;
var _sc1 = [0];
var _tc1 = _0c1(_sc1, _pc1, _7b1, _qc1, _9b1);
if (_tc1 > _rc1) return;
var _uc1 = [0];
var _vc1 = _0c1(_uc1, _qc1, _9b1, _pc1, _7b1);
if (_vc1 > _rc1) return;
var _2c1;
var _4c1;
var _3c1, _5c1;
var _fc1 = 0;
var _wc1 = 0;
var _xc1 = 0.1 * _441;
if (_vc1 > _tc1 + _xc1) {
_2c1 = _qc1;
_4c1 = _pc1;
_3c1 = _9b1;
_5c1 = _7b1;
_fc1 = _uc1[0];
_Xa1.type = _Ta1.__a1;
_wc1 = 1
} else {
_2c1 = _pc1;
_4c1 = _qc1;
_3c1 = _7b1;
_5c1 = _9b1;
_fc1 = _sc1[0];
_Xa1.type = _Ta1._Za1;
_wc1 = 0
}
_ec1(_oc1._yc1, _2c1, _3c1, _fc1, _4c1, _5c1);
var _6c1 = _2c1._F71;
var _zc1 = _2c1._E71;
var _Ac1 = _fc1;
var _Bc1 = _fc1 + 1 < _6c1 ? _fc1 + 1 : 0;
var _Cc1 = _zc1[_Ac1];
var _Dc1 = _zc1[_Bc1];
_oc1._Ec1.x = _Dc1.x - _Cc1.x;
_oc1._Ec1.y = _Dc1.y - _Cc1.y;
_oc1._Ec1._T41();
var _Fc1 = 1.0 * _oc1._Ec1.y;
var _Gc1 = -1.0 * _oc1._Ec1.x;
var _jb1 = 0.5 * (_Cc1.x + _Dc1.x);
var _kb1 = 0.5 * (_Cc1.y + _Dc1.y);
var _Hc1 = _3c1._qC._j2 * _oc1._Ec1.x - _3c1._qC._wy * _oc1._Ec1.y;
var _Ic1 = _3c1._qC._wy * _oc1._Ec1.x + _3c1._qC._j2 * _oc1._Ec1.y;
var _Jc1 = 1.0 * _Ic1;
var _Kc1 = -1.0 * _Hc1;
_Cc1 = _X51(_3c1,
_Cc1);
_Dc1 = _X51(_3c1, _Dc1);
var _Lc1 = _Jc1 * _Cc1.x + _Kc1 * _Cc1.y;
var _Mc1 = -(_Hc1 * _Cc1.x + _Ic1 * _Cc1.y) + _rc1;
var _Nc1 = (_Hc1 * _Dc1.x + _Ic1 * _Dc1.y) + _rc1;
var _Oc1 = new Array(2);
var _Pc1 = new Array(2);
var _Qc1;
_Qc1 = _Rc1(_Oc1, _oc1._yc1, -_Hc1, -_Ic1, _Mc1, _Ac1);
if (_Qc1 < 2) return;
_Qc1 = _Rc1(_Pc1, _Oc1, _Hc1, _Ic1, _Nc1, _Bc1);
if (_Qc1 < 2) {
return
}
_Xa1._Va1.x = _Fc1;
_Xa1._Va1.y = _Gc1;
_Xa1._Pa1.x = _jb1;
_Xa1._Pa1.y = _kb1;
var _Wa1 = 0;
for (var _i2 = 0; _i2 < _041; ++_i2) {
var _Tb1 = (_Jc1 * _Pc1[_i2]._O9.x + _Kc1 * _Pc1[_i2]._O9.y) - _Lc1;
if (_Tb1 <= _rc1) {
var _Sc1 = _Xa1._Ua1[_Wa1] = new _Oa1();
_Sc1._Pa1._mH(_Z51(_5c1, _Pc1[_i2]._O9));
_Sc1.id._mH(_Pc1[_i2].id);
if (_wc1) {
var _Tc1 = new _Ja1();
_Tc1._mH(_Sc1.id);
_Sc1.id._q91 = _Tc1._r91;
_Sc1.id._r91 = _Tc1._q91;
_Sc1.id._Ka1 = _Tc1._La1;
_Sc1.id._La1 = _Tc1._Ka1
}++_Wa1
}
}
_Xa1._Wa1 = _Wa1
}
_oc1._Ec1 = new _K41();
_oc1._yc1 = [new _sb1(), new _sb1()];
function _Uc1(_Xa1, _sc1, _7b1, _Nb1, _9b1) {
_Xa1._Wa1 = 0;
var _Vc1 = _Z51(_7b1, _X51(_9b1, _Nb1._e71));
var _X31 = _sc1._r71,
_651 = _sc1._s71;
var _bB = _651.x - _X31.x;
var _cG = _651.y - _X31.y;
var _N9 = _bB * (_651.x - _Vc1.x) + _cG * (_651.y - _Vc1.y);
var _O9 = _bB * (_Vc1.x - _X31.x) + _cG * (_Vc1.y - _X31.y);
var _v61 = _sc1._V61 + _Nb1._V61;
var _Tc1 = new _Ja1();
_Tc1._r91 = 0;
_Tc1._La1 = _Ja1._Ma1;
if (_O9 <= 0.0) {
var _Wc1 = _X31;
var _of = _Vc1.x - _Wc1.x;
var _pf = _Vc1.y - _Wc1.y;
var _vF = _of * _of + _pf * _pf;
if (_vF > _v61 * _v61) {
return
}
if (_sc1._u71) {
var _Xc1 = _sc1._q71;
var _Yc1 = _X31;
var _Zc1 = _Yc1.x - _Xc1.x;
var __c1 = _Yc1.y - _Xc1.y;
var _Xb1 = _Zc1 * (_Yc1.x - _Vc1.x) + __c1 * (_Yc1.y - _Vc1.y);
if (_Xb1 > 0.0) {
return;
}
}
_Tc1._q91 = 0;
_Tc1._Ka1 = _Ja1._Ma1;
_Xa1._Wa1 = 1;
_Xa1.type = _Ta1._Ya1;
_Xa1._Va1.x = _Xa1._Va1.y = 0;
_Xa1._Pa1.x = _Wc1.x;
_Xa1._Pa1.y = _Wc1.y;
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0].id._mH(_Tc1);
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y;
return
}
if (_N9 <= 0.0) {
var _Wc1 = _651;
var _of = _Vc1.x - _Wc1.x;
var _pf = _Vc1.y - _Wc1.y;
var _vF = _of * _of + _pf * _pf;
if (_vF > _v61 * _v61) {
return
}
if (_sc1._v71) {
var _0d1 = _sc1._t71;
var _1d1 = _651;
var _2d1 = _0d1.x - _1d1.x;
var _3d1 = _0d1.y - _1d1.y;
var _Q9 = _2d1 * (_Vc1.x - _1d1.x) + _3d1 * (_Vc1.y - _1d1.y);
if (_Q9 > 0.0) {
return
}
}
_Tc1._q91 = 1;
_Tc1._Ka1 = _Ja1._Ma1;
_Xa1._Wa1 = 1;
_Xa1.type = _Ta1._Ya1;
_Xa1._Va1.x = _Xa1._Va1.y = 0;
_Xa1._Pa1.x = _Wc1.x;
_Xa1._Pa1.y = _Wc1.y;
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0].id._mH(_Tc1);
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y;
return
}
var _4d1 = _bB * _bB + _cG * _cG;
_W31(_4d1 > 0.0);
var _5d1 = (1.0 / _4d1) * ((_N9 * _X31.x) + (_O9 * _651.x));
var _6d1 = (1.0 / _4d1) * ((_N9 * _X31.y) + (_O9 * _651.y));
var _of = _Vc1.x - _5d1;
var _pf = _Vc1.y - _6d1;
var _vF = _of * _of + _pf * _pf;
if (_vF > _v61 * _v61) {
return
}
var _9g = -_cG;
var _ag = _bB;
if (_9g * (_Vc1.x - _X31.x) + _ag * (_Vc1.y - _X31.y) < 0.0) {
_9g = -_9g;
_ag = -_ag
}
_Tc1._q91 = 0;
_Tc1._Ka1 = _Ja1._Na1;
_Xa1._Wa1 = 1;
_Xa1.type = _Ta1._Za1;
_Xa1._Va1.x = _9g;
_Xa1._Va1.y = _ag;
_Xa1._Va1._T41();
_Xa1._Pa1.x = _X31.x;
_Xa1._Pa1.y = _X31.y;
_Xa1._Ua1[0] = new _Oa1();
_Xa1._Ua1[0].id._mH(_Tc1);
_Xa1._Ua1[0]._Pa1.x = _Nb1._e71.x;
_Xa1._Ua1[0]._Pa1.y = _Nb1._e71.y
}
function _7d1() {
this.type = 0;
this.index = 0;
this._Tb1 = 0
}
_7d1._8d1 = 0;
_7d1._9d1 = 1;
_7d1._ad1 = 2;
function _bd1() {
this.vertices = new Array(_141);
this._Ub1 = new Array(_141);
this._Jc = 0
};
function _cd1() {
this._T71 = 0, this._U71 = 0;
this._sf = new _K41(), this._Q9 = new _K41();
this._771 = new _K41();
this._dd1 = new _K41();
this._Mc1 = 0;
this._ed1 = new _K41();
this._Nc1 = 0
};
function _fd1() {
this._gd1 = new _bd1();
this._hd1 = new _u51();
this._id1 = new _K41();
this._jd1 = new _K41(), this._kd1 = new _K41(), this._ld1 = new _K41(), this._md1 = new _K41();
this._nd1 = new _K41(), this._od1 = new _K41(), this._pd1 = new _K41();
this._qd1 = new _K41();
this._rd1 = 0, this._sd1 = 0;
this._td1 = new _K41(), this._ud1 = new _K41();
this._V61 = 0;
this._vd1 = !1;
}
_fd1._wd1 = new _K41();
_fd1._xd1 = new _K41();
_fd1._yd1 = new _K41();
_fd1.prototype = {
_zd1: function (_Xa1, _sc1, _7b1, _Ad1, _9b1) {
this._hd1._mH(_161(_7b1, _9b1));
this._id1.x = (this._hd1._qC._j2 * _Ad1._W71.x - this._hd1._qC._wy * _Ad1._W71.y) + this._hd1._gE.x;
this._id1.y = (this._hd1._qC._wy * _Ad1._W71.x + this._hd1._qC._j2 * _Ad1._W71.y) + this._hd1._gE.y;
this._jd1.x = _sc1._q71.x;
this._jd1.y = _sc1._q71.y;
this._kd1.x = _sc1._r71.x;
this._kd1.y = _sc1._r71.y;
this._ld1.x = _sc1._s71.x;
this._ld1.y = _sc1._s71.y;
this._md1.x = _sc1._t71.x;
this._md1.y = _sc1._t71.y;
var _Bd1 = _sc1._u71;
var _Cd1 = _sc1._v71;
_fd1._wd1.x = this._ld1.x - this._kd1.x;
_fd1._wd1.y = this._ld1.y - this._kd1.y;
_fd1._wd1._T41();
this._od1.x = _fd1._wd1.y;
this._od1.y = -_fd1._wd1.x;
var _Dd1 = this._od1.x * (this._id1.x - this._kd1.x) + this._od1.y * (this._id1.y - this._kd1.y);
var _Ed1 = 0.0,
_Fd1 = 0.0;
var _Gd1 = !1,
_Hd1 = !1;
if (_Bd1) {
_fd1._xd1.x = this._kd1.x - this._jd1.x;
_fd1._xd1.y = this._kd1.y - this._jd1.y;
_fd1._xd1._T41();
this._nd1.x = _fd1._xd1.y;
this._nd1.y = -_fd1._xd1.x;
_Gd1 = (_fd1._xd1.x * _fd1._wd1.y - _fd1._xd1.y * _fd1._wd1.x) >= 0;
_Ed1 = this._nd1.x * (this._id1.x - this._jd1.x) + this._nd1.y * (this._id1.y - this._jd1.y)
}
if (_Cd1) {
_fd1._yd1.x = this._md1.x - this._ld1.x;
_fd1._yd1.y = this._md1.y - this._ld1.y;
_fd1._yd1._T41();
this._pd1.x = _fd1._yd1.y;
this._pd1.y = -_fd1._yd1.x;
_Hd1 = (_fd1._wd1.x * _fd1._yd1.y - _fd1._wd1.y * _fd1._yd1.x) > 0.0;
_Fd1 = this._pd1.x * (this._id1.x - this._ld1.x) + this._pd1.y * (this._id1.y - this._ld1.y)
}
if (_Bd1 && _Cd1) {
if (_Gd1 && _Hd1) {
this._vd1 = _Ed1 >= 0.0 || _Dd1 >= 0.0 || _Fd1 >= 0.0;
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = this._nd1.x;
this._td1.y = this._nd1.y;
this._ud1.x = this._pd1.x;
this._ud1.y = this._pd1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = -this._od1.x;
this._td1.y = -this._od1.y;
this._ud1.x = -this._od1.x;
this._ud1.y = -this._od1.y
}
} else if (_Gd1) {
this._vd1 = _Ed1 >= 0.0 || (_Dd1 >= 0.0 && _Fd1 >= 0.0);
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = this._nd1.x;
this._td1.y = this._nd1.y;
this._ud1.x = this._od1.x;
this._ud1.y = this._od1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = -this._pd1.x;
this._td1.y = -this._pd1.y;
this._ud1.x = -this._od1.x;
this._ud1.y = -this._od1.y
}
} else if (_Hd1) {
this._vd1 = _Fd1 >= 0.0 || (_Ed1 >= 0.0 && _Dd1 >= 0.0);
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = this._od1.x;
this._td1.y = this._od1.y;
this._ud1.x = this._pd1.x;
this._ud1.y = this._pd1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = -this._od1.x;
this._td1.y = -this._od1.y;
this._ud1.x = -this._nd1.x;
this._ud1.y = -this._nd1.y
}
} else {
this._vd1 = _Ed1 >= 0.0 && _Dd1 >= 0.0 && _Fd1 >= 0.0;
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = this._od1.x;
this._td1.y = this._od1.y;
this._ud1.x = this._od1.x;
this._ud1.y = this._od1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = -this._pd1.x;
this._td1.y = -this._pd1.y;
this._ud1.x = -this._nd1.x;
this._ud1.y = -this._nd1.y
}
}
} else if (_Bd1) {
if (_Gd1) {
this._vd1 = _Ed1 >= 0.0 || _Dd1 >= 0.0;
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = this._nd1.x;
this._td1.y = this._nd1.y;
this._ud1.x = -this._od1.x;
this._ud1.y = -this._od1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = this._od1.x;
this._td1.y = this._od1.y;
this._ud1.x = -this._od1.x;
this._ud1.y = -this._od1.y
}
} else {
this._vd1 = _Ed1 >= 0.0 && _Dd1 >= 0.0;
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = this._od1.x;
this._td1.y = this._od1.y;
this._ud1.x = -this._od1.x;
this._ud1.y = -this._od1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = this._od1.x;
this._td1.y = this._od1.y;
this._ud1.x = -this._nd1.x;
this._ud1.y = -this._nd1.y
}
}
} else if (_Cd1) {
if (_Hd1) {
this._vd1 = _Dd1 >= 0.0 || _Fd1 >= 0.0;
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = -this._od1.x;
this._td1.y = -this._od1.y;
this._ud1.x = this._pd1.x;
this._ud1.y = this._pd1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = -this._od1.x;
this._td1.y = -this._od1.y;
this._ud1.x = this._od1.x;
this._ud1.y = this._od1.y
}
} else {
this._vd1 = _Dd1 >= 0.0 && _Fd1 >= 0.0;
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = -this._od1.x;
this._td1.y = -this._od1.y;
this._ud1.x = this._od1.x;
this._ud1.y = this._od1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = -this._pd1.x;
this._td1.y = -this._pd1.y;
this._ud1.x = this._od1.x;
this._ud1.y = this._od1.y
}
}
} else {
this._vd1 = _Dd1 >= 0.0;
if (this._vd1) {
this._qd1.x = this._od1.x;
this._qd1.y = this._od1.y;
this._td1.x = -this._od1.x;
this._td1.y = -this._od1.y;
this._ud1.x = -this._od1.x;
this._ud1.y = -this._od1.y
} else {
this._qd1.x = -this._od1.x;
this._qd1.y = -this._od1.y;
this._td1.x = this._od1.x;
this._td1.y = this._od1.y;
this._ud1.x = this._od1.x;
this._ud1.y = this._od1.y
}
}
this._gd1._Jc = _Ad1._F71;
for (var _i2 = 0; _i2 < _Ad1._F71; ++_i2) {
this._gd1.vertices[_i2] = _X51(this._hd1, _Ad1._E71[_i2]);
this._gd1._Ub1[_i2] = _V51(this._hd1._qC, _Ad1._X71[_i2])
}
this._V61 = 2.0 * _641;
_Xa1._Wa1 = 0;
var _Id1 = this._Jd1();
if (_Id1.type == _7d1._8d1) {
return
}
if (_Id1._Tb1 > this._V61) {
return
}
var _Kd1 = this._Ld1();
if (_Kd1.type != _7d1._8d1 && _Kd1._Tb1 > this._V61) {
return
}
var _Md1 = 0.98;
var _Nd1 = 0.001;
var _Od1 = new _7d1();
if (_Kd1.type == _7d1._8d1) {
_Od1 = _Id1
} else if (_Kd1._Tb1 > _Md1 * _Id1._Tb1 + _Nd1) {
_Od1 = _Kd1
} else {
_Od1 = _Id1
}
var _381 = new Array(2);
var _Pd1 = new _cd1();
if (_Od1.type == _7d1._9d1) {
_Xa1.type = _Ta1._Za1;
var _m91 = 0;
var _n91 = this._qd1.x * this._gd1._Ub1[0].x + this._qd1.y * this._gd1._Ub1[0].y;
for (var _i2 = 1; _i2 < this._gd1._Jc; ++_i2) {
var value = this._qd1.x * this._gd1._Ub1[_i2].x + this._qd1.y * this._gd1._Ub1[_i2].y;
if (value < _n91) {
_n91 = value;
_m91 = _i2
}
}
var _T71 = _m91;
var _U71 = _T71 + 1 < this._gd1._Jc ? _T71 + 1 : 0;
_381[0] = new _sb1();
_381[0]._O9.x = this._gd1.vertices[_T71].x;
_381[0]._O9.y = this._gd1.vertices[_T71].y;
_381[0].id._q91 = 0;
_381[0].id._r91 = _T71;
_381[0].id._Ka1 = _Ja1._Na1;
_381[0].id._La1 = _Ja1._Ma1;
_381[1] = new _sb1();
_381[1]._O9.x = this._gd1.vertices[_U71].x;
_381[1]._O9.y = this._gd1.vertices[_U71].y;
_381[1].id._q91 = 0;
_381[1].id._r91 = _U71;
_381[1].id._Ka1 = _Ja1._Na1;
_381[1].id._La1 = _Ja1._Ma1;
if (this._vd1) {
_Pd1._T71 = 0;
_Pd1._U71 = 1;
_Pd1._sf.x = this._kd1.x;
_Pd1._sf.y = this._kd1.y;
_Pd1._Q9.x = this._ld1.x;
_Pd1._Q9.y = this._ld1.y;
_Pd1._771.x = this._od1.x;
_Pd1._771.y = this._od1.y
} else {
_Pd1._T71 = 1;
_Pd1._U71 = 0;
_Pd1._sf.x = this._ld1.x;
_Pd1._sf.y = this._ld1.y;
_Pd1._Q9.x = this._kd1.x;
_Pd1._Q9.y = this._kd1.y;
_Pd1._771.x = -this._od1.x;
_Pd1._771.y = -this._od1.y
}
} else {
_Xa1.type = _Ta1.__a1;
_381[0] = new _sb1();
_381[0]._O9 = this._kd1;
_381[0].id._q91 = 0;
_381[0].id._r91 = _Od1.index;
_381[0].id._Ka1 = _Ja1._Ma1;
_381[0].id._La1 = _Ja1._Na1;
_381[1] = new _sb1();
_381[1]._O9 = this._ld1;
_381[1].id._q91 = 0;
_381[1].id._r91 = _Od1.index;
_381[1].id._Ka1 = _Ja1._Ma1;
_381[1].id._La1 = _Ja1._Na1;
_Pd1._T71 = _Od1.index;
_Pd1._U71 = _Pd1._T71 + 1 < this._gd1._Jc ? _Pd1._T71 + 1 : 0;
_Pd1._sf.x = this._gd1.vertices[_Pd1._T71].x;
_Pd1._sf.y = this._gd1.vertices[_Pd1._T71].y;
_Pd1._Q9.x = this._gd1.vertices[_Pd1._U71].x;
_Pd1._Q9.y = this._gd1.vertices[_Pd1._U71].y;
_Pd1._771.x = this._gd1._Ub1[_Pd1._T71].x;
_Pd1._771.y = this._gd1._Ub1[_Pd1._T71].y
}
_Pd1._dd1.x = _Pd1._771.y;
_Pd1._dd1.y = -_Pd1._771.x;
_Pd1._ed1.x = -_Pd1._dd1.x;
_Pd1._ed1.y = -_Pd1._dd1.y;
_Pd1._Mc1 = _Pd1._dd1.x * _Pd1._sf.x + _Pd1._dd1.y * _Pd1._sf.y;
_Pd1._Nc1 = _Pd1._ed1.x * _Pd1._Q9.x + _Pd1._ed1.y * _Pd1._Q9.y;
var _Oc1 = new Array(2);
var _Pc1 = new Array(2);
var _Qc1;
_Qc1 = _Rc1(_Oc1, _381, _Pd1._dd1.x, _Pd1._dd1.y, _Pd1._Mc1, _Pd1._T71);
if (_Qc1 < _041) {
return
}
_Qc1 = _Rc1(_Pc1, _Oc1, _Pd1._ed1.x, _Pd1._ed1.y, _Pd1._Nc1, _Pd1._U71);
if (_Qc1 < _041) {
return
}
if (_Od1.type == _7d1._9d1) {
_Xa1._Va1.x = _Pd1._771.x;
_Xa1._Va1.y = _Pd1._771.y;
_Xa1._Pa1.x = _Pd1._sf.x;
_Xa1._Pa1.y = _Pd1._sf.y
} else {
_Xa1._Va1.x = _Ad1._X71[_Pd1._T71].x;
_Xa1._Va1.y = _Ad1._X71[_Pd1._T71].y;
_Xa1._Pa1.x = _Ad1._E71[_Pd1._T71].x;
_Xa1._Pa1.y = _Ad1._E71[_Pd1._T71].y
}
var _Wa1 = 0;
for (var _i2 = 0; _i2 < _041; ++_i2) {
var _Tb1 = _Pd1._771.x * (_Pc1[_i2]._O9.x - _Pd1._sf.x) + _Pd1._771.y * (_Pc1[_i2]._O9.y - _Pd1._sf.y);
if (_Tb1 <= this._V61) {
var _Sc1 = _Xa1._Ua1[_Wa1] = new _Oa1();
if (_Od1.type == _7d1._9d1) {
_Sc1._Pa1._mH(_Z51(this._hd1, _Pc1[_i2]._O9));
_Sc1.id._mH(_Pc1[_i2].id)
} else {
_Sc1._Pa1.x = _Pc1[_i2]._O9.x;
_Sc1._Pa1.y = _Pc1[_i2]._O9.y;
_Sc1.id._Ka1 = _Pc1[_i2].id._La1;
_Sc1.id._La1 = _Pc1[_i2].id._Ka1;
_Sc1.id._q91 = _Pc1[_i2].id._r91;
_Sc1.id._r91 = _Pc1[_i2].id._q91
}++_Wa1
}
}
_Xa1._Wa1 = _Wa1
},
_Jd1: function () {
var _0o = new _7d1();
_0o.type = _7d1._9d1;
_0o.index = this._vd1 ? 0 : 1;
_0o._Tb1 = Number.MAX_VALUE;
for (var _i2 = 0; _i2 < this._gd1._Jc; ++_i2) {
var _wy = this._qd1.x * (this._gd1.vertices[_i2].x - this._kd1.x) + this._qd1.y * (this._gd1.vertices[_i2].y - this._kd1.y);
if (_wy < _0o._Tb1) {
_0o._Tb1 = _wy
}
}
return _0o
},
_Ld1: function () {
var _0o = new _7d1();
_0o.type = _7d1._8d1;
_0o.index = -1;
_0o._Tb1 = -Number.MAX_VALUE;
var _Qd1 = -this._qd1.y;
var _Rd1 = this._qd1.x;
for (var _i2 = 0; _i2 < this._gd1._Jc;
++_i2) {
var _9g = -this._gd1._Ub1[_i2].x;
var _ag = -this._gd1._Ub1[_i2].y;
var _4w = _9g * (this._gd1.vertices[_i2].x - this._kd1.x) + _ag * (this._gd1.vertices[_i2].y - this._kd1.y);
var _5w = _9g * (this._gd1.vertices[_i2].x - this._ld1.x) + _ag * (this._gd1.vertices[_i2].y - this._ld1.y);
var _wy = _761(_4w, _5w);
if (_wy > this._V61) {
_0o.type = _7d1._ad1;
_0o.index = _i2;
_0o._Tb1 = _wy;
return _0o
}
if (_9g * _Qd1 + _ag * _Rd1 >= 0.0) {
if ((_9g - this._ud1.x) * this._qd1.x + (_ag - this._ud1.y) * this._qd1.y < -_541) {
continue
}
} else {
if ((_9g - this._td1.x) * this._qd1.x + (_ag - this._td1.y) * this._qd1.y < -_541) {
continue
}
}
if (_wy > _0o._Tb1) {
_0o.type = _7d1._ad1;
_0o.index = _i2;
_0o._Tb1 = _wy
}
}
return _0o
}
};
_fd1._Sd1 = 0;
_fd1._Td1 = 1;
_fd1._Ud1 = 2;
function _Vd1(_Xa1, _sc1, _7b1, _Ad1, _9b1) {
_Vd1._Wd1._zd1(_Xa1, _sc1, _7b1, _Ad1, _9b1)
}
_Vd1._Wd1 = new _fd1();
function _Rc1(_Xd1, _Yd1, _Jc1, _Kc1, offset, _Zd1) {
var __d1 = 0;
var _0e1 = (_Jc1 * _Yd1[0]._O9.x + _Kc1 * _Yd1[0]._O9.y) - offset;
var _1e1 = (_Jc1 * _Yd1[1]._O9.x + _Kc1 * _Yd1[1]._O9.y) - offset;
if (_0e1 <= 0.0) _Xd1[__d1++] = _Yd1[0];
if (_1e1 <= 0.0) _Xd1[__d1++] = _Yd1[1];
if (_0e1 * _1e1 < 0.0) {
var _2e1 = _0e1 / (_0e1 - _1e1);
_Xd1[__d1] = new _sb1();
_Xd1[__d1]._O9.x = _Yd1[0]._O9.x + (_2e1 * (_Yd1[1]._O9.x - _Yd1[0]._O9.x));
_Xd1[__d1]._O9.y = _Yd1[0]._O9.y + (_2e1 * (_Yd1[1]._O9.y - _Yd1[0]._O9.y));
_Xd1[__d1].id._q91 = _Zd1;
_Xd1[__d1].id._r91 = _Yd1[0].id._r91;
_Xd1[__d1].id._Ka1 = _Ja1._Ma1;
_Xd1[__d1].id._La1 = _Ja1._Na1;
++__d1
}
return __d1
}
function _3e1(_4e1, _q91, _5e1, _r91, _7b1, _9b1) {
_3e1._aC._t91._Yl(_4e1, _q91);
_3e1._aC._u91._Yl(_5e1, _r91);
_3e1._aC._v91 = _7b1;
_3e1._aC._w91 = _9b1;
_3e1._aC._x91 = !0;
_3e1._Ic._Jc = 0;
_ra1(_3e1._cC, _3e1._Ic, _3e1._aC);
return _3e1._cC._671 < 10.0 * _Z31
}
_3e1._aC = new _s91();
_3e1._Ic = new _o91();
_3e1._cC = new _y91();
function __81(_a9, _99) {
return !((_99._j71.x - _a9._k71.x) > 0.0 || (_99._j71.y - _a9._k71.y) > 0.0 || (_a9._j71.x - _99._k71.x) > 0.0 || (_a9._j71.y - _99._k71.y) > 0.0)
}
var _6e1 = -1;
function _7e1() {
this._171 = new _vb1();
this._O81 = null;
this.parent = 0;
this._8e1 = this._9e1 = this.height = 0;
}
_7e1.prototype = {
_ae1: function () {
return this._8e1 == _6e1
}
};
function _G81() {
this._be1 = _6e1;
this._ce1 = 16;
this._de1 = 0;
this._ee1 = new Array(this._ce1);
for (var _i2 = 0; _i2 < this._ce1 - 1; ++_i2) {
this._ee1[_i2] = new _7e1();
this._ee1[_i2].parent = _i2 + 1;
this._ee1[_i2].height = -1
}
this._ee1[this._ce1 - 1] = new _7e1();
this._ee1[this._ce1 - 1].parent = _6e1;
this._ee1[this._ce1 - 1].height = -1;
this._fe1 = 0;
this._ge1 = 0;
this._he1 = 0
}
_G81._ie1 = new _K41(_241, _241);
_G81.prototype = {
_N81: function (_171, _O81) {
var _P81 = this._je1();
this._ee1[_P81]._171._j71._mH(_K41._R41(_171._j71, _G81._ie1));
this._ee1[_P81]._171._k71._mH(_K41._Vj(_171._k71, _G81._ie1));
this._ee1[_P81]._O81 = _O81;
this._ee1[_P81].height = 0;
this._ke1(_P81);
return _P81
},
_R81: function (_P81) {
_W31(0 <= _P81 && _P81 < this._ce1);
_W31(this._ee1[_P81]._ae1());
this._le1(_P81);
this._me1(_P81)
}, /// @return true if the proxy was re-inserted.
_T81: function (_P81, _171, _U81) {
_W31(0 <= _P81 && _P81 < this._ce1);
_W31(this._ee1[_P81]._ae1());
if (this._ee1[_P81]._171._Eb1(_171)) {
return !1
}
this._le1(_P81);
this._ee1[_P81]._171._mH(_171);
this._ee1[_P81]._171._j71._R41(_G81._ie1);
this._ee1[_P81]._171._k71._Vj(_G81._ie1);
var _Xn = _K41.Multiply(_341, _U81);
if (_Xn.x < 0.0) {
this._ee1[_P81]._171._j71.x += _Xn.x
} else {
this._ee1[_P81]._171._k71.x += _Xn.x
}
if (_Xn.y < 0.0) {
this._ee1[_P81]._171._j71.y += _Xn.y
} else {
this._ee1[_P81]._171._k71.y += _Xn.y
}
this._ke1(_P81);
return !0
}, /// @return the proxy user data or 0 if the id is invalid.
_X81: function (_P81) {
_W31(0 <= _P81 && _P81 < this._ce1);
return this._ee1[_P81]._O81
},
_W81: function (_P81) {
_W31(0 <= _P81 && _P81 < this._ce1);
return this._ee1[_P81]._171;
},
_591: function (_291, _171) {
var _u31 = [];
_u31.push(this._be1);
while (_u31.length > 0) {
var _ne1 = _u31.pop();
if (_ne1 == _6e1) {
continue
}
var _dm = this._ee1[_ne1];
if (__81(_dm._171, _171)) {
if (_dm._ae1()) {
var _oe1 = _291._i91(_ne1);
if (_oe1 == !1) {
return
}
} else {
_u31.push(_dm._8e1);
_u31.push(_dm._9e1)
}
}
}
}, /// @param input the ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).
/// @param callback a callback class that is called for each proxy that is hit by the ray.
_Z61: function (_291, _aC) {
var __n = _aC.__n;
var _y61 = _aC._y61;
var _79 = _K41._R41(_y61, __n);
_W31(_79._S41() > 0.0);
_79._T41();
var _O9 = _J51(1.0, _79);
var _pe1 = _561(_O9);
var _h71 = _aC._h71;
var _qe1 = new _vb1(); {
var _jb = _K41._Vj(__n,
_K41.Multiply(_h71, _K41._R41(_y61, __n)));
_qe1._j71._mH(_861(__n, _jb));
_qe1._k71._mH(_a61(__n, _jb))
}
var _u31 = [];
_u31.push(this._be1);
while (_u31.length > 0) {
var _ne1 = _u31.pop();
if (_ne1 == _6e1) {
continue
}
var _dm = this._ee1[_ne1];
if (__81(_dm._171, _qe1) == !1) {
continue
}
var _j2 = _dm._171._yb1();
var _l2 = _dm._171._zb1();
var _Tb1 = _461(_G51(_O9, _K41._R41(__n, _j2))) - _G51(_pe1, _l2);
if (_Tb1 > 0.0) {
continue
}
if (_dm._ae1()) {
var _re1 = new _tb1();
_re1.__n._mH(_aC.__n);
_re1._y61._mH(_aC._y61);
_re1._h71 = _h71;
var value = _291._se1(_re1, _ne1);
if (value == 0.0) {
return
}
if (value > 0.0) {
_h71 = value;
var _Kb1 = _K41._Vj(__n, _K41.Multiply(_h71, _K41._R41(_y61, __n)));
_qe1._j71._mH(_861(__n, _Kb1));
_qe1._k71._mH(_a61(__n, _Kb1))
}
} else {
_u31.push(_dm._8e1);
_u31.push(_dm._9e1)
}
}
},
_o81: function () {
this._te1(this._be1);
this._ue1(this._be1);
var _ve1 = 0;
var _we1 = this._fe1;
while (_we1 != _6e1) {
_W31(0 <= _we1 && _we1 < this._ce1);
_we1 = this._ee1[_we1].parent;
++_ve1
}
_W31(this._hP() == this._xe1());
_W31(this._de1 + _ve1 == this._ce1)
},
_hP: function () {
if (this._be1 == _6e1) {
return 0
}
return this._ee1[this._be1].height
},
_d91: function () {
var _ye1 = 0;
for (var _i2 = 0; _i2 < this._ce1; ++_i2) {
var _dm = this._ee1[_i2];
if (_dm.height <= 1) {
continue
}
_W31(_dm._ae1() == !1);
var _8e1 = _dm._8e1;
var _9e1 = _dm._9e1;
var _ze1 = _461(this._ee1[_9e1].height - this._ee1[_8e1].height);
_ye1 = _961(_ye1, _ze1)
}
return _ye1
},
_f91: function () {
if (this._be1 == _6e1) {
return 0.0
}
var _j8 = this._ee1[this._be1];
var _Ae1 = _j8._171._Ab1();
var _Be1 = 0.0;
for (var _i2 = 0; _i2 < this._ce1; ++_i2) {
var _dm = this._ee1[_i2];
if (_dm.height < 0) {
continue
}
_Be1 += _dm._171._Ab1()
}
return _Be1 / _Ae1
},
_Ce1: function () {
var _De1 = new Array(this._de1);
var _Jc = 0;
for (var _i2 = 0; _i2 < this._ce1; ++_i2) {
if (this._ee1[_i2].height < 0) {
continue
}
if (this._ee1[_i2]._ae1()) {
this._ee1[_i2].parent = _6e1;
_De1[_Jc] = _i2;
++_Jc
} else {
this._me1(_i2)
}
}
while (_Jc > 1) {
var _Ee1 = _Y31;
var _Fe1 = -1,
_Ge1 = -1;
for (_i2 = 0; _i2 < _Jc; ++_i2) {
var _He1 = this._ee1[_De1[_i2]]._171;
for (var _nb = _i2 + 1; _nb < _Jc; ++_nb) {
var _Ie1 = this._ee1[_De1[_nb]]._171;
var _99 = new _vb1();
_99._Bb1(_He1, _Ie1);
var _Je1 = _99._Ab1();
if (_Je1 < _Ee1) {
_Fe1 = _i2;
_Ge1 = _nb;
_Ee1 = _Je1
}
}
}
var _Ke1 = _De1[_Fe1];
var _Le1 = _De1[_Ge1];
var _8e1 = this._ee1[_Ke1];
var _9e1 = this._ee1[_Le1];
var _Me1 = this._je1();
var parent = this._ee1[_Me1];
parent._8e1 = _Ke1;
parent._9e1 = _Le1;
parent.height = 1 + _961(_8e1.height, _9e1.height);
parent._171._Bb1(_8e1._171, _9e1._171);
parent.parent = _6e1;
_8e1.parent = _Me1;
_9e1.parent = _Me1;
_De1[_Ge1] = _De1[_Jc - 1];
_De1[_Fe1] = _Me1;
--_Jc
}
this._be1 = _De1[0];
this._o81()
}, /// @param newOrigin the new origin with respect to the old origin
_g91: function (_h91) {
for (var _i2 = 0; _i2 < this._ce1; ++_i2) {
this._ee1[_i2]._171._j71._R41(_h91);
this._ee1[_i2]._171._k71._R41(_h91)
}
},
_je1: function () {
if (this._fe1 == _6e1) {
_W31(this._de1 == this._ce1);
var _Ne1 = this._ee1;
this._ce1 *= 2;
this._ee1 = _Ne1.concat(new Array(this._ce1 - this._de1));
for (var _i2 = this._de1; _i2 < this._ce1 - 1; ++_i2) {
this._ee1[_i2] = new _7e1();
this._ee1[_i2].parent = _i2 + 1;
this._ee1[_i2].height = -1
}
this._ee1[this._ce1 - 1] = new _7e1();
this._ee1[this._ce1 - 1].parent = _6e1;
this._ee1[this._ce1 - 1].height = -1;
this._fe1 = this._de1
}
var _ne1 = this._fe1;
this._fe1 = this._ee1[_ne1].parent;
this._ee1[_ne1].parent = _6e1;
this._ee1[_ne1]._8e1 = _6e1;
this._ee1[_ne1]._9e1 = _6e1;
this._ee1[_ne1].height = 0;
this._ee1[_ne1]._O81 = null;
++this._de1;
return _ne1
},
_me1: function (_ne1) {
_W31(0 <= _ne1 && _ne1 < this._ce1);
_W31(0 < this._de1);
this._ee1[_ne1].parent = this._fe1;
this._ee1[_ne1].height = -1;
this._fe1 = _ne1;
--this._de1
},
_ke1: function (_Oe1) {
++this._he1;
if (this._be1 == _6e1) {
this._be1 = _Oe1;
this._ee1[this._be1].parent = _6e1;
return
}
var _Pe1 = this._ee1[_Oe1]._171;
var index = this._be1;
while (this._ee1[index]._ae1() == !1) {
var _8e1 = this._ee1[index]._8e1;
var _9e1 = this._ee1[index]._9e1;
var _c81 = this._ee1[index]._171._Ab1();
var _Qe1 = new _vb1();
_Qe1._Bb1(this._ee1[index]._171, _Pe1);
var _Re1 = _Qe1._Ab1();
var _Je1 = 2.0 * _Re1;
var _Se1 = 2.0 * (_Re1 - _c81);
var _Te1;
var _171;
if (this._ee1[_8e1]._ae1()) {
_171 = new _vb1();
_171._Bb1(_Pe1, this._ee1[_8e1]._171);
_Te1 = _171._Ab1() + _Se1
} else {
_171 = new _vb1();
_171._Bb1(_Pe1, this._ee1[_8e1]._171);
var _Ue1 = this._ee1[_8e1]._171._Ab1();
var _Ve1 = _171._Ab1();
_Te1 = (_Ve1 - _Ue1) + _Se1
}
var _We1;
if (this._ee1[_9e1]._ae1()) {
_171 = new _vb1();
_171._Bb1(_Pe1, this._ee1[_9e1]._171);
_We1 = _171._Ab1() + _Se1
} else {
_171 = new _vb1();
_171._Bb1(_Pe1,
this._ee1[_9e1]._171);
var _Ue1 = this._ee1[_9e1]._171._Ab1();
var _Ve1 = _171._Ab1();
_We1 = _Ve1 - _Ue1 + _Se1
}
if (_Je1 < _Te1 && _Je1 < _We1) {
break
}
if (_Te1 < _We1) {
index = _8e1
} else {
index = _9e1
}
}
var _Xe1 = index;
var _Ye1 = this._ee1[_Xe1].parent;
var _Ze1 = this._je1();
this._ee1[_Ze1].parent = _Ye1;
this._ee1[_Ze1]._O81 = null;
this._ee1[_Ze1]._171._Bb1(_Pe1, this._ee1[_Xe1]._171);
this._ee1[_Ze1].height = this._ee1[_Xe1].height + 1;
if (_Ye1 != _6e1) {
if (this._ee1[_Ye1]._8e1 == _Xe1) {
this._ee1[_Ye1]._8e1 = _Ze1
} else {
this._ee1[_Ye1]._9e1 = _Ze1
}
this._ee1[_Ze1]._8e1 = _Xe1;
this._ee1[_Ze1]._9e1 = _Oe1;
this._ee1[_Xe1].parent = _Ze1;
this._ee1[_Oe1].parent = _Ze1
} else {
this._ee1[_Ze1]._8e1 = _Xe1;
this._ee1[_Ze1]._9e1 = _Oe1;
this._ee1[_Xe1].parent = _Ze1;
this._ee1[_Oe1].parent = _Ze1;
this._be1 = _Ze1
}
index = this._ee1[_Oe1].parent;
while (index != _6e1) {
index = this.__e1(index);
var _8e1 = this._ee1[index]._8e1;
var _9e1 = this._ee1[index]._9e1;
_W31(_8e1 != _6e1);
_W31(_9e1 != _6e1);
this._ee1[index].height = 1 + _961(this._ee1[_8e1].height, this._ee1[_9e1].height);
this._ee1[index]._171._Bb1(this._ee1[_8e1]._171,
this._ee1[_9e1]._171);
index = this._ee1[index].parent
}
},
_le1: function (_Oe1) {
if (_Oe1 == this._be1) {
this._be1 = _6e1;
return
}
var parent = this._ee1[_Oe1].parent;
var _0f1 = this._ee1[parent].parent;
var _Xe1;
if (this._ee1[parent]._8e1 == _Oe1) {
_Xe1 = this._ee1[parent]._9e1
} else {
_Xe1 = this._ee1[parent]._8e1
}
if (_0f1 != _6e1) {
if (this._ee1[_0f1]._8e1 == parent) {
this._ee1[_0f1]._8e1 = _Xe1
} else {
this._ee1[_0f1]._9e1 = _Xe1
}
this._ee1[_Xe1].parent = _0f1;
this._me1(parent);
var index = _0f1;
while (index != _6e1) {
index = this.__e1(index);
var _8e1 = this._ee1[index]._8e1;
var _9e1 = this._ee1[index]._9e1;
this._ee1[index]._171._Bb1(this._ee1[_8e1]._171, this._ee1[_9e1]._171);
this._ee1[index].height = 1 + _961(this._ee1[_8e1].height, this._ee1[_9e1].height);
index = this._ee1[index].parent
}
} else {
this._be1 = _Xe1;
this._ee1[_Xe1].parent = _6e1;
this._me1(parent)
}
},
__e1: function (_1f1) {
_W31(_1f1 != _6e1);
var _X31 = this._ee1[_1f1];
if (_X31._ae1() || _X31.height < 2) {
return _1f1
}
var _2f1 = _X31._8e1;
var _3f1 = _X31._9e1;
_W31(0 <= _2f1 && _2f1 < this._ce1);
_W31(0 <= _3f1 && _3f1 < this._ce1);
var _651 = this._ee1[_2f1];
var _061 = this._ee1[_3f1];
var _ze1 = _061.height - _651.height;
if (_ze1 > 1) {
var _4f1 = _061._8e1;
var _5f1 = _061._9e1;
var _6f1 = this._ee1[_4f1];
var _7f1 = this._ee1[_5f1];
_W31(0 <= _4f1 && _4f1 < this._ce1);
_W31(0 <= _5f1 && _5f1 < this._ce1);
_061._8e1 = _1f1;
_061.parent = _X31.parent;
_X31.parent = _3f1;
if (_061.parent != _6e1) {
if (this._ee1[_061.parent]._8e1 == _1f1) {
this._ee1[_061.parent]._8e1 = _3f1
} else {
_W31(this._ee1[_061.parent]._9e1 == _1f1);
this._ee1[_061.parent]._9e1 = _3f1
}
} else {
this._be1 = _3f1
}
if (_6f1.height > _7f1.height) {
_061._9e1 = _4f1;
_X31._9e1 = _5f1;
_7f1.parent = _1f1;
_X31._171._Bb1(_651._171, _7f1._171);
_061._171._Bb1(_X31._171, _6f1._171);
_X31.height = 1 + _961(_651.height, _7f1.height);
_061.height = 1 + _961(_X31.height, _6f1.height)
} else {
_061._9e1 = _5f1;
_X31._9e1 = _4f1;
_6f1.parent = _1f1;
_X31._171._Bb1(_651._171, _6f1._171);
_061._171._Bb1(_X31._171, _7f1._171);
_X31.height = 1 + _961(_651.height, _6f1.height);
_061.height = 1 + _961(_X31.height, _7f1.height)
}
return _3f1
}
if (_ze1 < -1) {
var _8f1 = _651._8e1;
var _9f1 = _651._9e1;
var _g81 = this._ee1[_8f1];
var _af1 = this._ee1[_9f1];
_W31(0 <= _8f1 && _8f1 < this._ce1);
_W31(0 <= _9f1 && _9f1 < this._ce1);
_651._8e1 = _1f1;
_651.parent = _X31.parent;
_X31.parent = _2f1;
if (_651.parent != _6e1) {
if (this._ee1[_651.parent]._8e1 == _1f1) {
this._ee1[_651.parent]._8e1 = _2f1
} else {
_W31(this._ee1[_651.parent]._9e1 == _1f1);
this._ee1[_651.parent]._9e1 = _2f1
}
} else {
this._be1 = _2f1
}
if (_g81.height > _af1.height) {
_651._9e1 = _8f1;
_X31._8e1 = _9f1;
_af1.parent = _1f1;
_X31._171._Bb1(_061._171, _af1._171);
_651._171._Bb1(_X31._171, _g81._171);
_X31.height = 1 + _961(_061.height, _af1.height);
_651.height = 1 + _961(_X31.height,
_g81.height)
} else {
_651._9e1 = _9f1;
_X31._8e1 = _8f1;
_g81.parent = _1f1;
_X31._171._Bb1(_061._171, _g81._171);
_651._171._Bb1(_X31._171, _af1._171);
_X31.height = 1 + _961(_061.height, _g81.height);
_651.height = 1 + _961(_X31.height, _af1.height)
}
return _2f1
}
return _1f1
},
_xe1: function (_ne1) {
if (typeof (_ne1) === 'undefined') _ne1 = this._be1;
_W31(0 <= _ne1 && _ne1 < this._ce1);
var _dm = this._ee1[_ne1];
if (_dm._ae1()) {
return 0
}
var _bf1 = this._xe1(_dm._8e1);
var _cf1 = this._xe1(_dm._9e1);
return 1 + _961(_bf1, _cf1)
},
_te1: function (index) {
if (index == _6e1) {
return
}
if (index == this._be1) {
_W31(this._ee1[index].parent == _6e1)
}
var _dm = this._ee1[index];
var _8e1 = _dm._8e1;
var _9e1 = _dm._9e1;
if (_dm._ae1()) {
_W31(_8e1 == _6e1);
_W31(_9e1 == _6e1);
_W31(_dm.height == 0);
return
}
_W31(0 <= _8e1 && _8e1 < this._ce1);
_W31(0 <= _9e1 && _9e1 < this._ce1);
_W31(this._ee1[_8e1].parent == index);
_W31(this._ee1[_9e1].parent == index);
this._te1(_8e1);
this._te1(_9e1)
},
_ue1: function (index) {
if (index == _6e1) {
return
}
var _dm = this._ee1[index];
var _8e1 = _dm._8e1;
var _9e1 = _dm._9e1;
if (_dm._ae1()) {
_W31(_8e1 == _6e1);
_W31(_9e1 == _6e1);
_W31(_dm.height == 0);
return
}
_W31(0 <= _8e1 && _8e1 < this._ce1);
_W31(0 <= _9e1 && _9e1 < this._ce1);
var _bf1 = this._ee1[_8e1].height;
var _cf1 = this._ee1[_9e1].height;
var height;
height = 1 + _961(_bf1, _cf1);
_W31(_dm.height == height);
var _171 = new _vb1();
_171._Bb1(this._ee1[_8e1]._171, this._ee1[_9e1]._171);
_W31(_K41._Z41(_171._j71, _dm._171._j71));
_W31(_K41._Z41(_171._k71, _dm._171._k71));
this._ue1(_8e1);
this._ue1(_9e1)
}
};
function _df1() {
this._t91 = new _j91();
this._u91 = new _j91();
this._ef1 = new _w51();
this._ff1 = new _w51();
this._gf1 = 0
};
function _hf1() {
this.state = 0;
this._jb = 0
};
_hf1._8d1 = 0;
_hf1._if1 = 1;
_hf1._jf1 = 2;
_hf1._kf1 = 3;
_hf1._lf1 = 4;
function _mf1() {
this._nf1 = null;
this._of1 = null;
this._pf1 = null;
this._qf1 = null;
this._VH = 0;
this._rf1 = new _K41();
this._sf1 = new _K41()
}
var _tf1 = new _u51();
var _uf1 = new _u51();
_mf1.prototype = {
_6b1: function (_Ic, _t91, _ef1, _u91, _ff1, _Jb1) {
this._nf1 = _t91;
this._of1 = _u91;
var _Jc = _Ic._Jc;
_W31(0 < _Jc && _Jc < 3);
this._pf1 = _ef1;
this._qf1 = _ff1;
this._pf1._C51(_tf1, _Jb1);
this._qf1._C51(_uf1, _Jb1);
if (_Jc == 1) {
this._VH = _mf1._vf1;
var _wf1 = this._nf1._n71(_Ic._q91[0]);
var _xf1 = this._of1._n71(_Ic._r91[0]);
var _bb1 = (_tf1._qC._j2 * _wf1.x - _tf1._qC._wy * _wf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * _wf1.x + _tf1._qC._j2 * _wf1.y) + _tf1._gE.y;
var _db1 = (_uf1._qC._j2 * _xf1.x - _uf1._qC._wy * _xf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * _xf1.x + _uf1._qC._j2 * _xf1.y) + _uf1._gE.y;
this._sf1.x = _db1 - _bb1;
this._sf1.y = _eb1 - _cb1;
var _wy = this._sf1._T41();
return _wy
} else if (_Ic._q91[0] == _Ic._q91[1]) {
this._VH = _mf1.__a1;
var _yf1 = _u91._n71(_Ic._r91[0]);
var _zf1 = _u91._n71(_Ic._r91[1]);
this._sf1.x = 1.0 * (_zf1.y - _yf1.y);
this._sf1.y = -1.0 * (_zf1.x - _yf1.x);
this._sf1._T41();
var _Jc1 = _uf1._qC._j2 * this._sf1.x - _uf1._qC._wy * this._sf1.y;
var _Kc1 = _uf1._qC._wy * this._sf1.x + _uf1._qC._j2 * this._sf1.y;
this._rf1.x = 0.5 * (_yf1.x + _zf1.x);
this._rf1.y = 0.5 * (_yf1.y + _zf1.y);
var _db1 = (_uf1._qC._j2 * this._rf1.x - _uf1._qC._wy * this._rf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * this._rf1.x + _uf1._qC._j2 * this._rf1.y) + _uf1._gE.y;
var _wf1 = _t91._n71(_Ic._q91[0]);
var _bb1 = (_tf1._qC._j2 * _wf1.x - _tf1._qC._wy * _wf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * _wf1.x + _tf1._qC._j2 * _wf1.y) + _tf1._gE.y;
var _wy = (_bb1 - _db1) * _Jc1 + (_cb1 - _eb1) * _Kc1;
if (_wy < 0.0) {
this._sf1.x = -this._sf1.x;
this._sf1.y = -this._sf1.y;
_wy = -_wy
}
return _wy
} else {
this._VH = _mf1._Za1;
var _Af1 = this._nf1._n71(_Ic._q91[0]);
var _Bf1 = this._nf1._n71(_Ic._q91[1]);
this._sf1.x = 1.0 * (_Bf1.y - _Af1.y);
this._sf1.y = -1.0 * (_Bf1.x - _Af1.x);
this._sf1._T41();
var _Jc1 = _tf1._qC._j2 * this._sf1.x - _tf1._qC._wy * this._sf1.y;
var _Kc1 = _tf1._qC._wy * this._sf1.x + _tf1._qC._j2 * this._sf1.y;
this._rf1.x = 0.5 * (_Af1.x + _Bf1.x);
this._rf1.y = 0.5 * (_Af1.y + _Bf1.y);
var _bb1 = (_tf1._qC._j2 * this._rf1.x - _tf1._qC._wy * this._rf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * this._rf1.x + _tf1._qC._j2 * this._rf1.y) + _tf1._gE.y;
var _xf1 = this._of1._n71(_Ic._r91[0]);
var _db1 = (_uf1._qC._j2 * _xf1.x - _uf1._qC._wy * _xf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * _xf1.x + _uf1._qC._j2 * _xf1.y) + _uf1._gE.y;
var _wy = (_db1 - _bb1) * _Jc1 + (_eb1 - _cb1) * _Kc1;
if (_wy < 0.0) {
this._sf1.x = -this._sf1.x;
this._sf1.y = -this._sf1.y;
_wy = -_wy
}
return _wy
}
},
_Cf1: function (_Gd, _jb) {
this._pf1._C51(_tf1, _jb);
this._qf1._C51(_uf1, _jb);
switch (this._VH) {
case _mf1._vf1: {
var _Df1 = _tf1._qC._j2 * this._sf1.x + _tf1._qC._wy * this._sf1.y;
var _Ef1 = -_tf1._qC._wy * this._sf1.x + _tf1._qC._j2 * this._sf1.y;
var _Ff1 = _uf1._qC._j2 * -this._sf1.x + _uf1._qC._wy * -this._sf1.y;
var _Gf1 = -_uf1._qC._wy * -this._sf1.x + _uf1._qC._j2 * -this._sf1.y;
_Gd[0] = this._nf1._l71(_Df1, _Ef1);
_Gd[1] = this._of1._l71(_Ff1, _Gf1);
var _wf1 = this._nf1._n71(_Gd[0]);
var _xf1 = this._of1._n71(_Gd[1]);
var _bb1 = (_tf1._qC._j2 * _wf1.x - _tf1._qC._wy * _wf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * _wf1.x + _tf1._qC._j2 * _wf1.y) + _tf1._gE.y;
var _db1 = (_uf1._qC._j2 * _xf1.x - _uf1._qC._wy * _xf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * _xf1.x + _uf1._qC._j2 * _xf1.y) + _uf1._gE.y;
return (_db1 - _bb1) * this._sf1.x + (_eb1 - _cb1) * this._sf1.y
}
case _mf1._Za1: {
var _Jc1 = _tf1._qC._j2 * this._sf1.x - _tf1._qC._wy * this._sf1.y;
var _Kc1 = _tf1._qC._wy * this._sf1.x + _tf1._qC._j2 * this._sf1.y;
var _bb1 = (_tf1._qC._j2 * this._rf1.x - _tf1._qC._wy * this._rf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * this._rf1.x + _tf1._qC._j2 * this._rf1.y) + _tf1._gE.y;
var _Ff1 = _uf1._qC._j2 * -_Jc1 + _uf1._qC._wy * -_Kc1;
var _Gf1 = -_uf1._qC._wy * -_Jc1 + _uf1._qC._j2 * -_Kc1;
_Gd[0] = -1;
_Gd[1] = this._of1._l71(_Ff1, _Gf1);
var _xf1 = this._of1._n71(_Gd[1]);
var _db1 = (_uf1._qC._j2 * _xf1.x - _uf1._qC._wy * _xf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * _xf1.x + _uf1._qC._j2 * _xf1.y) + _uf1._gE.y;
return (_db1 - _bb1) * _Jc1 + (_eb1 - _cb1) * _Kc1
}
case _mf1.__a1: {
var _Jc1 = _uf1._qC._j2 * this._sf1.x - _uf1._qC._wy * this._sf1.y;
var _Kc1 = _uf1._qC._wy * this._sf1.x + _uf1._qC._j2 * this._sf1.y;
var _db1 = (_uf1._qC._j2 * this._rf1.x - _uf1._qC._wy * this._rf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * this._rf1.x + _uf1._qC._j2 * this._rf1.y) + _uf1._gE.y;
var _Df1 = _tf1._qC._j2 * -_Jc1 + _tf1._qC._wy * -_Kc1;
var _Gf1 = -_tf1._qC._wy * -_Jc1 + _tf1._qC._j2 * -_Kc1;
_Gd[1] = -1;
_Gd[0] = this._nf1._l71(_Df1,
_Gf1);
var _wf1 = this._nf1._n71(_Gd[0]);
var _bb1 = (_tf1._qC._j2 * _wf1.x - _tf1._qC._wy * _wf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * _wf1.x + _tf1._qC._j2 * _wf1.y) + _tf1._gE.y;
return (_bb1 - _db1) * _Jc1 + (_cb1 - _eb1) * _Kc1
}
default:
_W31(!1);
_Gd[0] = -1;
_Gd[1] = -1;
return 0.0
}
},
_Hf1: function (_q91, _r91, _jb) {
this._pf1._C51(_tf1, _jb);
this._qf1._C51(_uf1, _jb);
switch (this._VH) {
case _mf1._vf1: {
var _wf1 = this._nf1._n71(_q91);
var _xf1 = this._of1._n71(_r91);
var _bb1 = (_tf1._qC._j2 * _wf1.x - _tf1._qC._wy * _wf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * _wf1.x + _tf1._qC._j2 * _wf1.y) + _tf1._gE.y;
var _db1 = (_uf1._qC._j2 * _xf1.x - _uf1._qC._wy * _xf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * _xf1.x + _uf1._qC._j2 * _xf1.y) + _uf1._gE.y;
var _Tb1 = (_db1 - _bb1) * this._sf1.x + (_eb1 - _cb1) * this._sf1.y;
return _Tb1
}
case _mf1._Za1: {
var _Jc1 = _tf1._qC._j2 * this._sf1.x - _tf1._qC._wy * this._sf1.y;
var _Kc1 = _tf1._qC._wy * this._sf1.x + _tf1._qC._j2 * this._sf1.y;
var _bb1 = (_tf1._qC._j2 * this._rf1.x - _tf1._qC._wy * this._rf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * this._rf1.x + _tf1._qC._j2 * this._rf1.y) + _tf1._gE.y;
var _xf1 = this._of1._n71(_r91);
var _db1 = (_uf1._qC._j2 * _xf1.x - _uf1._qC._wy * _xf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * _xf1.x + _uf1._qC._j2 * _xf1.y) + _uf1._gE.y;
var _Tb1 = (_db1 - _bb1) * _Jc1 + (_eb1 - _cb1) * _Kc1;
return _Tb1
}
case _mf1.__a1: {
var _Jc1 = _uf1._qC._j2 * this._sf1.x - _uf1._qC._wy * this._sf1.y;
var _Kc1 = _uf1._qC._wy * this._sf1.x + _uf1._qC._j2 * this._sf1.y;
var _db1 = (_uf1._qC._j2 * this._rf1.x - _uf1._qC._wy * this._rf1.y) + _uf1._gE.x;
var _eb1 = (_uf1._qC._wy * this._rf1.x + _uf1._qC._j2 * this._rf1.y) + _uf1._gE.y;
var _wf1 = this._nf1._n71(_q91);
var _bb1 = (_tf1._qC._j2 * _wf1.x - _tf1._qC._wy * _wf1.y) + _tf1._gE.x;
var _cb1 = (_tf1._qC._wy * _wf1.x + _tf1._qC._j2 * _wf1.y) + _tf1._gE.y;
var _Tb1 = (_bb1 - _db1) * _Jc1 + (_cb1 - _eb1) * _Kc1;
return _Tb1
}
default:
_W31(!1);
return 0.0
}
}
};
_mf1._vf1 = 0;
_mf1._Za1 = 1;
_mf1.__a1 = 2;
var _If1 = _E31._P31("toi", "solveTOI");
function _Jf1(_cC, _aC) {
_If1.start();
++_Jf1._Kf1;
_cC.state = _hf1._8d1;
_cC._jb = _aC._gf1;
var _t91 = _aC._t91;
var _u91 = _aC._u91;
_Jf1._Lf1._mH(_aC._ef1);
_Jf1._Mf1._mH(_aC._ff1);
_Jf1._Lf1._T41();
_Jf1._Mf1._T41();
var _gf1 = _aC._gf1;
var _rc1 = _t91._V61 + _u91._V61;
var target = _961(_441, _rc1 - 3.0 * _441);
var _Nf1 = 0.25 * _441;
_W31(target > _Nf1);
var _Jb1 = 0.0;
var _Of1 = 20;
var _za1 = 0;
var _Ic = new _o91();
_Ic._Jc = 0;
var _Pf1 = new _s91();
_Pf1._t91._mH(_aC._t91);
_Pf1._u91._mH(_aC._u91);
_Pf1._x91 = !1;
for (;;) {
_Jf1._Lf1._C51(_Pf1._v91, _Jb1);
_Jf1._Mf1._C51(_Pf1._w91, _Jb1);
var _Qf1 = new _y91();
_ra1(_Qf1, _Ic, _Pf1);
if (_Qf1._671 <= 0.0) {
_cC.state = _hf1._jf1;
_cC._jb = 0.0;
break
}
if (_Qf1._671 < target + _Nf1) {
_cC.state = _hf1._kf1;
_cC._jb = _Jb1;
break
}
var _Rf1 = new _mf1();
_Rf1._6b1(_Ic, _t91, _Jf1._Lf1, _u91, _Jf1._Mf1, _Jb1);
var _Sf1 = !1;
var _Kb1 = _gf1;
var _Tf1 = 0;
for (;;) {
var _Gd = [];
var _5w = _Rf1._Cf1(_Gd, _Kb1);
if (_5w > target + _Nf1) {
_cC.state = _hf1._lf1;
_cC._jb = _gf1;
_Sf1 = !0;
break
}
if (_5w > target - _Nf1) {
_Jb1 = _Kb1;
break
}
var _4w = _Rf1._Hf1(_Gd[0], _Gd[1], _Jb1);
if (_4w < target - _Nf1) {
_cC.state = _hf1._if1;
_cC._jb = _Jb1;
_Sf1 = !0;
break
}
if (_4w <= target + _Nf1) {
_cC.state = _hf1._kf1;
_cC._jb = _Jb1;
_Sf1 = !0;
break
}
var _Uf1 = 0;
var _h_ = _Jb1,
_i_ = _Kb1;
for (;;) {
var _jb;
if (_Uf1 & 1) {
_jb = _h_ + (target - _4w) * (_i_ - _h_) / (_5w - _4w);
} else {
_jb = 0.5 * (_h_ + _i_)
}++_Uf1;
++_Jf1._Vf1;
var _wy = _Rf1._Hf1(_Gd[0], _Gd[1], _jb);
if (_461(_wy - target) < _Nf1) {
_Kb1 = _jb;
break
}
if (_wy > target) {
_h_ = _jb;
_4w = _wy
} else {
_i_ = _jb;
_5w = _wy
}
if (_Uf1 == 50) {
break
}
}
_Jf1._Wf1 = _961(_Jf1._Wf1, _Uf1);
++_Tf1;
if (_Tf1 == _141) {
break
}
}++_za1;
++_Jf1._Xf1;
if (_Sf1) {
break
}
if (_za1 == _Of1) {
_cC.state = _hf1._if1;
_cC._jb = _Jb1;
break
}
}
_Jf1._Yf1 = _961(_Jf1._Yf1, _za1);
_If1.stop();
_Jf1._Zf1 = _961(_Jf1._Zf1, _If1._I31);
_Jf1.__f1 += _If1._I31
}
_Jf1._Lf1 = new _w51();
_Jf1._Mf1 = new _w51();
_Jf1.__f1 = 0;
_Jf1._Zf1 = 0;
_Jf1._Kf1 = 0;
_Jf1._Xf1 = 0;
_Jf1._Yf1 = 0;
_Jf1._Vf1 = 0;
_Jf1._Wf1 = 0;
function _0g1() {
this.type = _1g1._2g1;
this.position = new _K41(0.0, 0.0);
this.angle = 0.0;
this._3g1 = new _K41(0.0,
0.0);
this._4g1 = 0.0;
this._5g1 = 0.0;
this._6g1 = 0.0;
this._7g1 = !0;
this._8g1 = !0;
this._9g1 = !1; /// @warning You should use this flag sparingly since it increases processing time.
this._ag1 = !1;
this._5H = !0;
this._O81 = null;
this._bg1 = 1.0;
Object.seal(this)
}
_0g1.prototype = {
_Y41: function (data) {
this.type = data['type'];
this.position._Y41(data['position']);
this.angle = data['angle'];
this._3g1._Y41(data['linearVelocity']);
this._4g1 = data['angularVelocity'];
this._5g1 = data['linearDamping'];
this._6g1 = data['angularDamping'];
this._7g1 = data['allowSleep'];
this._8g1 = data['awake'];
this._9g1 = data['fixedRotation'];
this._ag1 = data['bullet'];
this._5H = data['active'];
this._bg1 = data['gravityScale']
}
};
function _1g1(_cg1, _dg1) {
_W31(_cg1.position._V41());
_W31(_cg1._3g1._V41());
_W31(_A41(_cg1.angle));
_W31(_A41(_cg1._4g1));
_W31(_A41(_cg1._6g1) && _cg1._6g1 >= 0.0);
_W31(_A41(_cg1._5g1) && _cg1._5g1 >= 0.0);
this._eg1 = 0;
this._fg1 = 0;
if (_cg1._ag1) {
this._fg1 |= _1g1._gg1
}
if (_cg1._9g1) {
this._fg1 |= _1g1._hg1
}
if (_cg1._7g1) {
this._fg1 |= _1g1._ig1
}
if (_cg1._8g1) {
this._fg1 |= _1g1._jg1
}
if (_cg1._5H) {
this._fg1 |= _1g1._kg1
}
this._lg1 = _dg1;
this._hd1 = new _u51();
this._hd1._gE._mH(_cg1.position);
this._hd1._qC._Yl(_cg1.angle);
this._mg1 = new _u51();
this._mg1._mH(this._hd1);
this._ng1 = new _w51();
this._ng1._x51._L41();
this._ng1._y51._mH(this._hd1._gE);
this._ng1._j2._mH(this._hd1._gE);
this._ng1._A51 = _cg1.angle;
this._ng1._a9 = _cg1.angle;
this._ng1._B51 = 0.0;
this._og1 = null;
this._pg1 = null;
this._qg1 = null;
this._rg1 = null;
this._sg1 = _cg1._3g1._X7();
this._tg1 = _cg1._4g1;
this._ug1 = _cg1._5g1;
this._vg1 = _cg1._6g1;
this._wg1 = _cg1._bg1;
this._xg1 = new _K41();
this._yg1 = 0.0;
this._zg1 = 0.0;
this._VH = _cg1.type;
if (this._VH == _1g1._Ag1) {
this._Bg1 = 1.0;
this._Cg1 = 1.0
} else {
this._Bg1 = 0.0;
this._Cg1 = 0.0
}
this._Dg1 = 0.0;
this._Eg1 = 0.0;
this._Fg1 = _cg1._O81;
this._Gg1 = null;
this._Hg1 = 0
}
_1g1._2g1 = 0;
_1g1._Ig1 = 1;
_1g1._Ag1 = 2;
_1g1._Jg1 = 0x0001;
_1g1._jg1 = 0x0002;
_1g1._ig1 = 0x0004;
_1g1._gg1 = 0x0008;
_1g1._hg1 = 0x0010;
_1g1._kg1 = 0x0020;
_1g1._Kg1 = 0x0040;
_1g1._Lg1 = new _K41();
_1g1._Mg1 = new _u51();
_1g1.prototype = { /// @param def the fixture definition.
/// @warning This function is locked during callbacks.
_Ng1: function (_Og1,
_471) {
if (typeof (_471) !== 'undefined') {
var _Pg1 = new _Qg1();
_Pg1._f71 = _Og1;
_Pg1._471 = _471;
return this._Ng1(_Pg1)
}
_W31(this._lg1._Rg1() == !1);
if (this._lg1._Rg1() == !0) {
return null
}
var _8S = new _Sg1();
_8S._Tg1(this, _Og1);
if (this._fg1 & _1g1._kg1) {
var _Ug1 = this._lg1._Vg1._Wg1;
_8S._Xg1(_Ug1, this._hd1)
}
_8S._rg1 = this._Gg1;
this._Gg1 = _8S;
++this._Hg1;
_8S._Yg1 = this;
if (_8S._Zg1 > 0.0) {
this.__g1()
}
this._lg1._fg1 |= _0h1._1h1;
return _8S
}, /// @param fixture the fixture to be removed.
/// @warning This function is locked during callbacks.
_2h1: function (_8S) {
_W31(this._lg1._Rg1() == !1);
if (this._lg1._Rg1() == !0) {
return
}
_W31(_8S._Yg1 == this);
_W31(this._Hg1 > 0);
var _dm = this._Gg1;
var _Bn = !1;
while (_dm != null) {
if (_dm == _8S) {
this._Gg1 = _dm = _8S._rg1;
_Bn = !0;
break
}
_dm = _dm._rg1
}
_W31(_Bn);
var _S71 = this._pg1;
while (_S71) {
var _j2 = _S71._3h1;
_S71 = _S71._3m;
var _4h1 = _j2._5h1();
var _6h1 = _j2._7h1();
if (_8S == _4h1 || _8S == _6h1) {
this._lg1._Vg1._8h1(_j2)
}
}
if (this._fg1 & _1g1._kg1) {
var _Ug1 = this._lg1._Vg1._Wg1;
_8S._9h1(_Ug1)
}
_8S._8h1();
_8S._Yg1 = null;
_8S._rg1 = null;
--this._Hg1;
this.__g1()
}, /// @param position the world position of the body's local origin.
/// @param angle the world rotation in radians.
_ah1: function (position,
angle) {
_W31(this._lg1._Rg1() == !1);
if (this._lg1._Rg1() == !0) {
return
}
this._hd1._qC._Yl(angle);
this._hd1._gE._mH(position);
this._mg1._mH(this._hd1);
this._ng1._j2._mH(_X51(this._hd1, this._ng1._x51));
this._ng1._a9 = angle;
this._ng1._y51._mH(this._ng1._j2);
this._ng1._A51 = angle;
var _Ug1 = this._lg1._Vg1._Wg1;
for (var _7z = this._Gg1; _7z; _7z = _7z._rg1) {
_7z._bh1(_Ug1, this._hd1, this._hd1)
}
}, /// @return the world transform of the body's origin.
_C51: function () {
return this._hd1
}, /// @return the world position of the body's origin.
_ZR: function () {
return this._hd1._gE
}, /// @return the current world rotation angle in radians.
_r51: function () {
return this._ng1._a9
},
_ch1: function () {
return this._ng1._j2
},
_dh1: function () {
return this._ng1._x51
}, /// @param v the new linear velocity of the center of mass.
_eh1: function (_O9) {
if (this._VH == _1g1._2g1) {
return
}
if (_G51(_O9, _O9) > 0.0) {
this._wS(!0)
}
this._sg1 = _O9
}, /// @return the linear velocity of the center of mass.
_fh1: function () {
return this._sg1
}, /// @param omega the new angular velocity in radians/second.
_gh1: function (_k2) {
if (this._VH == _1g1._2g1) {
return
}
if (_k2 * _k2 > 0.0) {
this._wS(!0)
}
this._tg1 = _k2;
}, /// @return the angular velocity in radians/second.
_hh1: function () {
return this._tg1
}, /// @param force the world force vector, usually in Newtons (N).
/// @param point the world position of the point of application.
/// @param wake also wake up the body
_VS: function (_ih1, _Sa1, _jh1) {
if (this._VH != _1g1._Ag1) {
return
}
if (_jh1 && (this._fg1 & _1g1._jg1) == 0) {
this._wS(!0)
}
if (this._fg1 & _1g1._jg1) {
this._xg1._Vj(_ih1);
this._yg1 += _H51(_K41._R41(_Sa1,
this._ng1._j2), _ih1)
}
}, /// @param force the world force vector, usually in Newtons (N).
/// @param wake also wake up the body
_kh1: function (_ih1, _jh1) {
if (this._VH != _1g1._Ag1) {
return
}
if (_jh1 && (this._fg1 & _1g1._jg1) == 0) {
this._wS(!0)
}
if (this._fg1 & _1g1._jg1) {
this._xg1._Vj(_ih1)
}
}, /// @param torque about the z-axis (out of the screen), usually in N-m.
/// @param wake also wake up the body
_bT: function (_lh1, _jh1) {
if (this._VH != _1g1._Ag1) {
return
}
if (_jh1 && (this._fg1 & _1g1._jg1) == 0) {
this._wS(!0)
}
if (this._fg1 & _1g1._jg1) {
this._yg1 += _lh1
}
}, /// @param impulse the world impulse vector, usually in N-seconds or kg-m/s.
/// @param point the world position of the point of application.
/// @param wake also wake up the body
_mh1: function (_nh1, _Sa1, _jh1) {
if (this._VH != _1g1._Ag1) {
return
}
if (_jh1 && (this._fg1 & _1g1._jg1) == 0) {
this._wS(!0)
}
if (this._fg1 & _1g1._jg1) {
this._sg1._Vj(_K41.Multiply(this._Cg1, _nh1));
this._tg1 += this._Eg1 * _H51(_K41._R41(_Sa1, this._ng1._j2), _nh1)
}
}, /// @param impulse the angular impulse in units of kg*m*m/s
/// @param wake also wake up the body
_9T: function (_nh1,
_jh1) {
if (this._VH != _1g1._Ag1) {
return
}
if (_jh1 && (this._fg1 & _1g1._jg1) == 0) {
this._wS(!0)
}
if (this._fg1 & _1g1._jg1) {
this._tg1 += this._Eg1 * _nh1
}
}, /// @return the mass, usually in kilograms (kg).
_oh1: function () {
return this._Bg1
}, /// @return the rotational inertia, usually in kg-m^2.
_ph1: function () {
return this._Dg1 + this._Bg1 * _G51(this._ng1._x51, this._ng1._x51)
}, /// @return a struct containing the mass, inertia and center of the body.
_qh1: function (data) {
data._S61 = this._Bg1;
data._T61 = this._Dg1 + this._Bg1 * _G51(this._ng1._x51,
this._ng1._x51);
data._u61 = this._ng1._x51
}, /// @param massData the mass properties.
_rh1: function (_371) {
_W31(this._lg1._Rg1() == !1);
if (this._lg1._Rg1() == !0) {
return
}
if (this._VH != _1g1._Ag1) {
return
}
this._Cg1 = 0.0;
this._Dg1 = 0.0;
this._Eg1 = 0.0;
this._Bg1 = _371._S61;
if (this._Bg1 <= 0.0) {
this._Bg1 = 1.0
}
this._Cg1 = 1.0 / this._Bg1;
if (_371._T61 > 0.0 && (this._fg1 & _1g1._hg1) == 0) {
this._Dg1 = _371._T61 - this._Bg1 * _G51(_371._u61, _371._u61);
_W31(this._Dg1 > 0.0);
this._Eg1 = 1.0 / this._Dg1
}
_1g1._Lg1._mH(this._ng1._j2);
this._ng1._x51._mH(_371._u61);
this._ng1._y51._mH(_X51(this._hd1, this._ng1._x51));
this._ng1._j2._mH(this._ng1._y51);
this._sg1._Vj(_J51(this._tg1, _K41._R41(this._ng1._j2, _1g1._Lg1)))
},
__g1: function () {
this._Bg1 = 0.0;
this._Cg1 = 0.0;
this._Dg1 = 0.0;
this._Eg1 = 0.0;
this._ng1._x51._L41();
if (this._VH == _1g1._2g1 || this._VH == _1g1._Ig1) {
this._ng1._y51._mH(this._hd1._gE);
this._ng1._j2._mH(this._hd1._gE);
this._ng1._A51 = this._ng1._a9;
return
}
_W31(this._VH == _1g1._Ag1);
var _x51 = new _K41(0, 0);
for (var _7z = this._Gg1; _7z; _7z = _7z._rg1) {
if (_7z._Zg1 == 0.0) {
continue
}
var _371 = new _R61();
_7z._qh1(_371);
this._Bg1 += _371._S61;
_x51._Vj(_K41.Multiply(_371._S61, _371._u61));
this._Dg1 += _371._T61
}
if (this._Bg1 > 0.0) {
this._Cg1 = 1.0 / this._Bg1;
_x51.Multiply(this._Cg1);
} else {
this._Bg1 = 1.0;
this._Cg1 = 1.0
}
if (this._Dg1 > 0.0 && (this._fg1 & _1g1._hg1) == 0) {
this._Dg1 -= this._Bg1 * _G51(_x51, _x51);
_W31(this._Dg1 > 0.0);
this._Eg1 = 1.0 / this._Dg1
} else {
this._Dg1 = 0.0;
this._Eg1 = 0.0
}
_1g1._Lg1._mH(this._ng1._j2);
this._ng1._x51._mH(_x51);
this._ng1._y51._mH(_X51(this._hd1, this._ng1._x51));
this._ng1._j2._mH(this._ng1._y51);
this._sg1._Vj(_J51(this._tg1, _K41._R41(this._ng1._j2, _1g1._Lg1)))
}, /// @param localPoint a point on the body measured relative the the body's origin.
/// @return the same point expressed in world coordinates.
_sh1: function (_Pa1) {
return _X51(this._hd1, _Pa1)
}, /// @param localVector a vector fixed in the body.
/// @return the same vector expressed in world coordinates.
_th1: function (_uh1) {
return _V51(this._hd1._qC, _uh1)
}, /// @param a point in world coordinates.
/// @return the corresponding local point relative to the body's origin.
_vh1: function (_wh1) {
return _Z51(this._hd1, _wh1)
}, /// @param a vector in world coordinates.
/// @return the corresponding local vector.
_xh1: function (_yh1) {
return _W51(this._hd1._qC, _yh1)
}, /// @param a point in world coordinates.
/// @return the world velocity of a point.
_zh1: function (_wh1) {
return _K41._Vj(this._sg1, _J51(this._tg1, _K41._R41(_wh1, this._ng1._j2)))
}, /// @param a point in local coordinates.
/// @return the world velocity of a point.
_Ah1: function (_Pa1) {
return this._zh1(this._sh1(_Pa1))
},
_Bh1: function () {
return this._ug1
},
_rS: function (_5g1) {
this._ug1 = _5g1
},
_Ch1: function () {
return this._vg1
},
_tS: function (_6g1) {
this._vg1 = _6g1
},
_Dh1: function () {
return this._wg1
},
_Eh1: function (scale) {
this._wg1 = scale
},
_Fh1: function (type) {
_W31(this._lg1._Rg1() == !1);
if (this._lg1._Rg1() == !0) {
return
}
if (this._VH == type) {
return
}
this._VH = type;
this.__g1();
if (this._VH == _1g1._2g1) {
this._sg1._L41();
this._tg1 = 0.0;
this._ng1._A51 = this._ng1._a9;
this._ng1._y51._mH(this._ng1._j2);
this._Gh1()
}
this._wS(!0);
this._xg1._L41();
this._yg1 = 0.0;
var _Hh1 = this._pg1;
while (_Hh1) {
var _Ih1 = _Hh1;
_Hh1 = _Hh1._3m;
this._lg1._Vg1._8h1(_Ih1._3h1)
}
this._pg1 = null;
var _Ug1 = this._lg1._Vg1._Wg1;
for (var _7z = this._Gg1; _7z; _7z = _7z._rg1) {
var _Jh1 = _7z._I81;
for (var _i2 = 0; _i2 < _Jh1; ++_i2) {
_Ug1._V81(_7z._Kh1[_i2]._P81)
}
}
},
_W61: function () {
return this._VH
},
_Lh1: function (_Mh1) {
if (_Mh1) {
this._fg1 |= _1g1._gg1
} else {
this._fg1 &= ~_1g1._gg1
}
},
_Nh1: function () {
return (this._fg1 & _1g1._gg1) == _1g1._gg1
},
_Oh1: function (_Mh1) {
if (_Mh1) {
this._fg1 |= _1g1._ig1
} else {
this._fg1 &= ~_1g1._ig1;
this._wS(!0)
}
},
_Ph1: function () {
return (this._fg1 & _1g1._ig1) == _1g1._ig1
}, /// @param flag set to true to wake the body, false to put it to sleep.
_wS: function (_Mh1) {
if (_Mh1) {
if ((this._fg1 & _1g1._jg1) == 0) {
this._fg1 |= _1g1._jg1;
this._zg1 = 0.0
}
} else {
this._fg1 &= ~_1g1._jg1;
this._zg1 = 0.0;
this._sg1._L41();
this._tg1 = 0.0;
this._xg1._L41();
this._yg1 = 0.0
}
}, /// @return true if the body is awake.
_Qh1: function () {
return (this._fg1 & _1g1._jg1) == _1g1._jg1
},
_Rh1: function (_Mh1) {
_W31(this._lg1._Rg1() == !1);
if (_Mh1 == this._Sh1()) {
return
}
if (_Mh1) {
this._fg1 |= _1g1._kg1;
var _Ug1 = this._lg1._Vg1._Wg1;
for (var _7z = this._Gg1; _7z; _7z = _7z._rg1) {
_7z._Xg1(_Ug1, this._hd1)
}
} else {
this._fg1 &= ~_1g1._kg1;
var _Ug1 = this._lg1._Vg1._Wg1;
for (var _7z = this._Gg1; _7z; _7z = _7z._rg1) {
_7z._9h1(_Ug1)
}
var _Hh1 = this._pg1;
while (_Hh1) {
var _Ih1 = _Hh1;
_Hh1 = _Hh1._3m;
this._lg1._Vg1._8h1(_Ih1._3h1)
}
this._pg1 = null
}
},
_Sh1: function () {
return (this._fg1 & _1g1._kg1) == _1g1._kg1
},
_Th1: function (_Mh1) {
var status = (this._fg1 & _1g1._hg1) == _1g1._hg1;
if (status == _Mh1) {
return
}
if (_Mh1) {
this._fg1 |= _1g1._hg1
} else {
this._fg1 &= ~_1g1._hg1
}
this._tg1 = 0.0;
this.__g1()
},
_Uh1: function () {
return (this._fg1 & _1g1._hg1) == _1g1._hg1
},
_Vh1: function () {
return this._Gg1
},
_Wh1: function () {
return this._og1
}, /// @warning this list changes during the time step and you may
_Xh1: function () {
return this._pg1
},
_Yh1: function () {
return this._rg1
},
_X81: function () {
return this._Fg1
},
_Zh1: function (data) {
this._Fg1 = data
},
__h1: function () {
return this._lg1
},
_Gh1: function () {
_1g1._Mg1._qC._Yl(this._ng1._A51);
_1g1._Mg1._gE._mH(_K41._R41(this._ng1._y51, _V51(_1g1._Mg1._qC, this._ng1._x51)));
var _Ug1 = this._lg1._Vg1._Wg1;
for (var _7z = this._Gg1; _7z; _7z = _7z._rg1) {
_7z._bh1(_Ug1, _1g1._Mg1, this._hd1)
}
},
_0i1: function () {
this._hd1._qC._Yl(this._ng1._a9);
this._hd1._gE._mH(_K41._R41(this._ng1._j2, _V51(this._hd1._qC, this._ng1._x51)))
},
_1i1: function (_wb1) {
if (this._VH != _1g1._Ag1 && _wb1._VH != _1g1._Ag1) {
return !1
}
for (var _2i1 = this._og1; _2i1; _2i1 = _2i1._3m) {
if (_2i1._wb1 == _wb1) {
if (_2i1._3i1._4i1 == !1) {
return !1
}
}
}
return !0
},
_E51: function (alpha) {
this._ng1._E51(alpha);
this._ng1._j2._mH(this._ng1._y51);
this._ng1._a9 = this._ng1._A51;
this._hd1._qC._Yl(this._ng1._a9);
this._hd1._gE._mH(_K41._R41(this._ng1._j2, _V51(this._hd1._qC, this._ng1._x51)))
},
_X41: function (out) {
var _xn = out || {};
_xn['fixtures'] = null;
_xn['type'] = this._VH;
_xn['position'] = this._ZR()._X41();
_xn['angle'] = this._r51();
_xn['linearVelocity'] = this._fh1()._X41();
_xn['angularVelocity'] = this._hh1();
_xn['linearDamping'] = this._Bh1();
_xn['angularDamping'] = this._Ch1();
_xn['allowSleep'] = this._Ph1();
_xn['awake'] = this._Qh1();
_xn['fixedRotation'] = this._Uh1();
_xn['bullet'] = this._Nh1();
_xn['active'] = this._Sh1();
_xn['gravityScale'] = this._Dh1();
return _xn
}
};
function _5i1() {
this._6i1 = 0x0001;
this._7i1 = 0xFFFF;
this._8i1 = 0
}
_5i1.prototype = {
_X7: function () {
var _Lq = new _5i1();
_Lq._6i1 = this._6i1;
_Lq._7i1 = this._7i1;
_Lq._8i1 = this._8i1;
return _Lq
},
_mH: function (_Lq) {
this._6i1 = _Lq._6i1;
this._7i1 = _Lq._7i1;
this._8i1 = _Lq._8i1
},
_X41: function (out) {
var _xn = out || {};
_xn['categoryBits'] = this._6i1;
_xn['maskBits'] = this._7i1;
_xn['groupIndex'] = this._8i1;
return _xn
},
_Y41: function (data) {
this._6i1 = data['categoryBits'];
this._7i1 = data['maskBits'];
this._8i1 = data['groupIndex']
}
};
function _Qg1() {
this._f71 = null;
this._O81 = null;
this._oz = 0.2;
this._9i1 = 0.0;
this._471 = 0.0;
this._ai1 = !1;
this._Lq = new _5i1();
Object.seal(this);
}
_Qg1.prototype = {
_Y41: function (data) {
this._oz = data['friction'];
this._9i1 = data['restitution'];
this._471 = data['density'];
this._ai1 = data['isSensor'];
this._Lq._Y41(data['filter'])
}
};
function _bi1() {
this._171 = new _vb1();
this._8S = null;
this.__61 = 0;
this._P81 = 0
}; /// @warning you cannot reuse fixtures.
function _Sg1() {
this._Fg1 = null;
this._Yg1 = null;
this._rg1 = null;
this._Kh1 = null;
this._I81 = 0;
this._ci1 = null;
this._Zg1 = 0.0;
this._di1 = new _5i1();
this._ei1 = !1;
this._fi1 = 0;
this._gi1 = 0
}
_Sg1.prototype = { /// @return the shape type.
_W61: function () {
return this._ci1._W61()
},
_hi1: function () {
return this._ci1
},
_oS: function (_ii1) {
if (_ii1 != this._ei1) {
this._Yg1._wS(!0);
this._ei1 = _ii1
}
}, /// @return the true if the shape is a sensor.
_ji1: function () {
return this._ei1
},
_ki1: function (_Lq) {
this._di1 = _Lq;
this._li1()
},
_mi1: function () {
return this._di1
},
_li1: function () {
if (this._Yg1 == null) {
return
}
var _S71 = this._Yg1._Xh1();
while (_S71) {
var _3h1 = _S71._3h1;
var _4h1 = _3h1._5h1();
var _6h1 = _3h1._7h1();
if (_4h1 == this || _6h1 == this) {
_3h1._ni1()
}
_S71 = _S71._3m
}
var _dg1 = this._Yg1.__h1();
if (_dg1 == null) {
return
}
var _Ug1 = _dg1._Vg1._Wg1;
for (var _i2 = 0; _i2 < this._I81; ++_i2) {
_Ug1._V81(this._Kh1[_i2]._P81)
}
}, /// @return the parent body.
_oi1: function () {
return this._Yg1
}, /// @return the next shape.
_Yh1: function () {
return this._rg1
},
_X81: function () {
return this._Fg1
},
_Zh1: function (data) {
this._Fg1 = data
}, /// @param p a point in world coordinates.
_Y61: function (_gE) {
return this._ci1._Y61(this._Yg1._C51(), _gE)
}, /// @param output the ray-cast results.
/// @param input the ray-cast input parameters.
_Z61: function (_cC, _aC, __61) {
return this._ci1._Z61(_cC, _aC, this._Yg1._C51(), __61)
},
_qh1: function (_371) {
this._ci1._271(_371, this._Zg1)
},
_cS: function (_471) {
_W31(_A41(_471) && _471 >= 0.0);
this._Zg1 = _471
},
_lT: function () {
return this._Zg1
},
_kT: function () {
return this._fi1
},
_iS: function (_oz) {
this._fi1 = _oz
},
_mT: function () {
return this._gi1
},
_fS: function (_9i1) {
this._gi1 = _9i1
},
_pi1: function (__61) {
_W31(0 <= __61 && __61 < this._I81);
return this._Kh1[__61]._171
},
_Tg1: function (body, _Og1) {
this._Fg1 = _Og1._O81;
this._fi1 = _Og1._oz;
this._gi1 = _Og1._9i1;
this._Yg1 = body;
this._rg1 = null;
this._di1._mH(_Og1._Lq);
this._ei1 = _Og1._ai1;
this._ci1 = _Og1._f71._X7();
var _qi1 = this._ci1._X61();
this._Kh1 = new Array(_qi1);
for (var _i2 = 0; _i2 < _qi1; ++_i2) {
this._Kh1[_i2] = new _bi1();
this._Kh1[_i2]._8S = null;
this._Kh1[_i2]._P81 = _E81._391
}
this._I81 = 0;
this._Zg1 = _Og1._471
},
_8h1: function () {
_W31(this._I81 == 0);
this._Kh1 = null;
this._ci1 = null
},
_Xg1: function (_Ug1, _v51) {
_W31(this._I81 == 0);
this._I81 = this._ci1._X61();
for (var _i2 = 0; _i2 < this._I81; ++_i2) {
var _ri1 = this._Kh1[_i2];
this._ci1._071(_ri1._171, _v51, _i2);
_ri1._P81 = _Ug1._N81(_ri1._171, _ri1);
_ri1._8S = this;
_ri1.__61 = _i2
}
},
_9h1: function (_Ug1) {
for (var _i2 = 0; _i2 < this._I81; ++_i2) {
var _ri1 = this._Kh1[_i2];
_Ug1._R81(_ri1._P81);
_ri1._P81 = _E81._391
}
this._I81 = 0
},
_bh1: function (_Ug1, _si1, _ti1) {
if (this._I81 == 0) {
return
}
for (var _i2 = 0; _i2 < this._I81; ++_i2) {
var _ri1 = this._Kh1[_i2];
var _Cb1 = new _vb1(),
_Db1 = new _vb1();
this._ci1._071(_Cb1, _si1, _ri1.__61);
this._ci1._071(_Db1, _ti1, _ri1.__61);
_ri1._171._Bb1(_Cb1, _Db1);
var _U81 = _K41._R41(_ti1._gE, _si1._gE);
_Ug1._T81(_ri1._P81, _ri1._171, _U81)
}
},
_571: function (_gE, _Xn, _3b, __61) {
this._ci1._571(this._Yg1._C51(), _gE, _Xn, _3b, __61)
},
_X41: function (out) {
var _xn = out || {};
_xn['shape'] = null;
_xn['friction'] = this._fi1;
_xn['restitution'] = this._gi1;
_xn['density'] = this._Zg1;
_xn['isSensor'] = this._ei1;
_xn['filter'] = this._di1._X41();
return _xn
}
};
function _ui1() {}
_ui1.prototype = {
_vi1: function (_3i1) {},
_wi1: function (_8S) {},
_xi1: function (_RX) {},
_yi1: function (index) {}
};
function _zi1() {}
_zi1.prototype = { /// @warning for performance reasons this is only called when the AABBs begin to overlap.
_1i1: function (_4h1, _6h1) {
var _Ai1 = _4h1._mi1();
var _Bi1 = _6h1._mi1();
if (_Ai1._8i1 == _Bi1._8i1 && _Ai1._8i1 != 0) {
return _Ai1._8i1 > 0
}
var _Ci1 = (_Ai1._7i1 & _Bi1._6i1) != 0 && (_Ai1._6i1 & _Bi1._7i1) != 0;
return _Ci1
}
};
function _Di1() {
this._Ei1 = new Array(_041);
this._Fi1 = new Array(_041);
this._Jc = 0
} /// @warning You cannot create/destroy Box2D entities inside these callbacks.
function _Gi1() {}
_Gi1.prototype = {
_Hi1: function (_3h1) {},
_Ii1: function (_3h1) {},
_Ji1: function (_3h1, _Ki1) {},
_Li1: function (_3h1, _nh1) {}
};
function _Mi1() {}
_Mi1.prototype = { /// @return false to terminate the query.
_Ni1: function (_8S) {
return !1
}, /// @return false to terminate the query.
_Oi1: function (index) {
return !1
}
};
function _Pi1() {}
_Pi1.prototype = { /// @param fixture the fixture hit by the ray
/// @param point the point of initial intersection
/// @param normal the normal vector at the point of intersection
/// @return -1 to filter, 0 to terminate, fraction to clip the ray for
_Ni1: function (_8S,
_Sa1, _771, _i71) {},
_Oi1: function (index, _Sa1, _771, _i71) {
return 0
}
};
function _Qi1() {
this._Ri1 = 0;
this._Si1 = 0;
this._Ti1 = 0;
this._Ui1 = 0;
this._Vi1 = 0;
this._Wi1 = !1
}
function _Xi1() {
this._j2 = new _K41();
this._a9 = 0
}
function _Yi1() {
this._O9 = new _K41();
this._k2 = 0
}
function _Zi1() {
this._z31 = new _Qi1();
this.__i1 = null;
this._0j1 = null
}
var _1j1 = _E31._P31("step");
var _2j1 = _E31._P31("collide", "step");
var _3j1 = _E31._P31("solve", "step");
var _4j1 = _E31._P31("solveTOI", "step");
var _5j1 = _E31._P31("broadphase", "step");
function _0h1(_pz) {
this._Vg1 = new _6j1();
this._7j1 = null;
this._8j1 = null;
this._9j1 = null;
this._og1 = null;
this._aj1 = 0;
this._bj1 = 0;
this._cj1 = !0;
this._dj1 = !0;
this._ej1 = !1;
this._fj1 = !0;
this._gj1 = !0;
this._hj1 = _pz;
this._fg1 = _0h1._ij1;
this._jj1 = 0.0;
this._kj1 = new _Qi1();
this._lj1 = new _mj1();
this._nj1 = new _oj1();
this._nj1._lg1 = this
}
function _pj1() {
this._Ug1 = null;
this._291 = null
}
_pj1.prototype = {
_i91: function (_P81) {
var _ri1 = this._Ug1._X81(_P81);
return this._291._Ni1(_ri1._8S)
}
};
function _qj1() {
this._Ug1 = null;
this._291 = null
}
_qj1.prototype = {
_se1: function (_aC, _P81) {
var _O81 = this._Ug1._X81(_P81);
var _ri1 = _O81;
var _8S = _ri1._8S;
var index = _ri1.__61;
var _cC = new _ub1();
var _ab = _8S._Z61(_cC, _aC, index);
if (_ab) {
var _i71 = _cC._i71;
var _Sa1 = _K41._Vj(_K41.Multiply((1.0 - _i71), _aC.__n), _K41.Multiply(_i71, _aC._y61));
return this._291._Ni1(_8S, _Sa1, _cC._771, _i71)
}
return _aC._h71
}
};
_0h1._rj1 = new _w51();
_0h1._sj1 = new _w51();
_0h1._tj1 = new _w51();
_0h1.prototype = {
_8h1: function () {
var _99 = this._9j1;
while (_99) {
var _uj1 = _99._rg1;
var _7z = _99._Gg1;
while (_7z) {
var _vj1 = _7z._rg1;
_7z._I81 = 0;
_7z._8h1();
_7z = _vj1
}
_99 = _uj1
}
},
_wj1: function (listener) {
this._7j1 = listener
},
_xj1: function (_Lq) {
this._Vg1._yj1 = _Lq;
},
_zj1: function (listener) {
this._Vg1._Aj1 = listener
},
_Bj1: function (_Cj1) {
this._8j1 = _Cj1
}, /// @warning This function is locked during callbacks.
_KS: function (_Og1) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return null
}
var _99 = new _1g1(_Og1, this);
_99._qg1 = null;
_99._rg1 = this._9j1;
if (this._9j1) {
this._9j1._qg1 = _99
}
this._9j1 = _99;
++this._aj1;
return _99
}, /// @warning This automatically deletes all associated shapes and joints.
/// @warning This function is locked during callbacks.
_Dj1: function (_99) {
_W31(this._aj1 > 0);
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return
}
var _Ej1 = _99._og1;
while (_Ej1) {
var _Fj1 = _Ej1;
_Ej1 = _Ej1._3m;
if (this._7j1) {
this._7j1._vi1(_Fj1._3i1)
}
this._Gj1(_Fj1._3i1);
_99._og1 = _Ej1
}
_99._og1 = null;
var _Hh1 = _99._pg1;
while (_Hh1) {
var _Ih1 = _Hh1;
_Hh1 = _Hh1._3m;
this._Vg1._8h1(_Ih1._3h1)
}
_99._pg1 = null;
var _7z = _99._Gg1;
while (_7z) {
var _Hj1 = _7z;
_7z = _7z._rg1;
if (this._7j1) {
this._7j1._wi1(_Hj1)
}
_Hj1._9h1(this._Vg1._Wg1);
_Hj1._8h1();
_99._Gg1 = _7z;
_99._Hg1 -= 1
}
_99._Gg1 = null;
_99._Hg1 = 0;
if (_99._qg1) {
_99._qg1._rg1 = _99._rg1;
}
if (_99._rg1) {
_99._rg1._qg1 = _99._qg1
}
if (_99 == this._9j1) {
this._9j1 = _99._rg1
}
_99._Ij1 = !0;
--this._aj1
}, /// @warning This function is locked during callbacks.
_Jj1: function (_Og1) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return null
}
var _nb = _Kj1._Tg1(_Og1);
_nb._qg1 = null;
_nb._rg1 = this._og1;
if (this._og1) {
this._og1._qg1 = _nb
}
this._og1 = _nb;
++this._bj1;
_nb._Lj1._3i1 = _nb;
_nb._Lj1._wb1 = _nb._Mj1;
_nb._Lj1._Nj1 = null;
_nb._Lj1._3m = _nb._Oj1._og1;
if (_nb._Oj1._og1) _nb._Oj1._og1._Nj1 = _nb._Lj1;
_nb._Oj1._og1 = _nb._Lj1;
_nb._Pj1._3i1 = _nb;
_nb._Pj1._wb1 = _nb._Oj1;
_nb._Pj1._Nj1 = null;
_nb._Pj1._3m = _nb._Mj1._og1;
if (_nb._Mj1._og1) _nb._Mj1._og1._Nj1 = _nb._Pj1;
_nb._Mj1._og1 = _nb._Pj1;
var _Qj1 = _Og1._Qj1;
var _Rj1 = _Og1._Rj1;
if (_Og1._Sj1 == !1) {
var _S71 = _Rj1._Xh1();
while (_S71) {
if (_S71._wb1 == _Qj1) {
_S71._3h1._ni1()
}
_S71 = _S71._3m
}
}
return _nb
}, /// @warning This function is locked during callbacks.
_Gj1: function (_nb) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return
}
var _Sj1 = _nb._4i1;
if (_nb._qg1) {
_nb._qg1._rg1 = _nb._rg1
}
if (_nb._rg1) {
_nb._rg1._qg1 = _nb._qg1;
}
if (_nb == this._og1) {
this._og1 = _nb._rg1
}
var _Qj1 = _nb._Oj1;
var _Rj1 = _nb._Mj1;
_Qj1._wS(!0);
_Rj1._wS(!0);
if (_nb._Lj1._Nj1) {
_nb._Lj1._Nj1._3m = _nb._Lj1._3m
}
if (_nb._Lj1._3m) {
_nb._Lj1._3m._Nj1 = _nb._Lj1._Nj1
}
if (_nb._Lj1 == _Qj1._og1) {
_Qj1._og1 = _nb._Lj1._3m
}
_nb._Lj1._Nj1 = null;
_nb._Lj1._3m = null;
if (_nb._Pj1._Nj1) {
_nb._Pj1._Nj1._3m = _nb._Pj1._3m
}
if (_nb._Pj1._3m) {
_nb._Pj1._3m._Nj1 = _nb._Pj1._Nj1
}
if (_nb._Pj1 == _Rj1._og1) {
_Rj1._og1 = _nb._Pj1._3m
}
_nb._Pj1._Nj1 = null;
_nb._Pj1._3m = null;
_Kj1._8h1(_nb);
_W31(this._bj1 > 0);
--this._bj1;
if (_Sj1 == !1) {
var _S71 = _Rj1._Xh1();
while (_S71) {
if (_S71._wb1 == _Qj1) {
_S71._3h1._ni1()
}
_S71 = _S71._3m
}
}
}, /// @param timeStep the amount of time to simulate, this should not vary.
/// @param velocityIterations for the velocity constraint solver.
/// @param positionIterations for the position constraint solver.
_Tj1: function (_Ri1, _Ui1, _Vi1) {
_1j1.start();
if (this._fg1 & _0h1._1h1) {
this._Vg1._Uj1();
this._fg1 &= ~_0h1._1h1
}
this._fg1 |= _0h1._Vj1;
this._kj1._Ri1 = _Ri1;
this._kj1._Ui1 = _Ui1;
this._kj1._Vi1 = _Vi1;
if (_Ri1 > 0.0) {
this._kj1._Si1 = 1.0 / _Ri1
} else {
this._kj1._Si1 = 0.0
}
this._kj1._Ti1 = this._jj1 * _Ri1;
this._kj1._Wi1 = this._cj1; {
_2j1.start();
this._Vg1._zd1();
_2j1.stop()
}
if (this._fj1 && this._kj1._Ri1 > 0.0) {
_3j1.start();
this._nj1._851(this._kj1);
this._851(this._kj1);
_3j1.stop()
}
if (this._dj1 && this._kj1._Ri1 > 0.0) {
_4j1.start();
this._Wj1(this._kj1);
_4j1.stop()
}
if (this._kj1._Ri1 > 0.0) {
this._jj1 = this._kj1._Si1
}
if (this._fg1 & _0h1._ij1) {
this._Xj1()
}
this._fg1 &= ~_0h1._Vj1;
_1j1.stop()
}, /// @see SetAutoClearForces
_Xj1: function () {
for (var body = this._9j1; body; body = body._Yh1()) {
body._xg1.x = body._xg1.y = 0;
body._yg1 = 0.0
}
},
_Yj1: function () {
if (this._8j1 == null) {
return
}
var _121 = this._8j1._n61();
if (_121 & _k61._D61) {
for (var _99 = this._9j1; _99; _99 = _99._Yh1()) {
var _v51 = _99._C51();
for (var _7z = _99._Vh1(); _7z; _7z = _7z._Yh1()) {
if (_99._Sh1() == !1) {
this._Zj1(_7z, _v51, new _j61(0.5, 0.5, 0.3))
} else if (_99._W61() == _1g1._2g1) {
this._Zj1(_7z, _v51, new _j61(0.5, 0.9, 0.5))
} else if (_99._W61() == _1g1._Ig1) {
this._Zj1(_7z, _v51, new _j61(0.5, 0.5, 0.9))
} else if (_99._Qh1() == !1) {
this._Zj1(_7z, _v51, new _j61(0.6, 0.6, 0.6))
} else {
this._Zj1(_7z, _v51, new _j61(0.9, 0.7, 0.7))
}
}
}
this.__j1(this._nj1)
}
if (_121 & _k61._E61) {
for (var _nb = this._og1; _nb; _nb = _nb._Yh1()) {
this._0k1(_nb)
}
}
if (_121 & _k61._N61) {
var color = new _j61(0.3, 0.9, 0.9);
for (var _j2 = this._Vg1._pg1; _j2; _j2 = _j2._Yh1()) {
var _4h1 = _j2._5h1();
var _6h1 = _j2._7h1();
var _1k1 = _4h1._pi1(_j2._2k1())._yb1();
var _3k1 = _6h1._pi1(_j2._4k1())._yb1();
this._8j1._x61(_1k1, _3k1, color)
}
}
if (_121 & _k61._F61) {
var color = new _j61(0.9, 0.3, 0.9);
var _5k1 = new _j61(0.3, 0.3, 0.9);
var _6k1 = this._Vg1._Wg1;
for (var _99 = this._9j1; _99; _99 = _99._Yh1()) {
if (_99._Sh1() == !1) {
continue
}
for (var _7z = _99._Vh1(); _7z; _7z = _7z._Yh1()) {
for (var _i2 = 0; _i2 < _7z._I81; ++_i2) {
var _ri1 = _7z._Kh1[_i2];
var _171 = _6k1._W81(_ri1._P81);
var _u81 = [];
_u81[0] = new _K41(_171._j71.x, _171._j71.y);
_u81[1] = new _K41(_171._k71.x, _171._j71.y);
_u81[2] = new _K41(_171._k71.x, _171._k71.y);
_u81[3] = new _K41(_171._j71.x, _171._k71.y);
this._8j1._r61(_u81, 4, color);
var _7k1 = new _vb1();
_7z._hi1()._071(_7k1, _99._C51(), 0);
_u81[0] = new _K41(_7k1._j71.x, _7k1._j71.y);
_u81[1] = new _K41(_7k1._k71.x,
_7k1._j71.y);
_u81[2] = new _K41(_7k1._k71.x, _7k1._k71.y);
_u81[3] = new _K41(_7k1._j71.x, _7k1._k71.y);
this._8j1._r61(_u81, 4, _5k1)
}
}
}
}
if (_121 & _k61._G61) {
for (var _99 = this._9j1; _99; _99 = _99._Yh1()) {
var _v51 = _99._C51()._X7();
_v51._gE = _99._ch1();
this._8j1._z61(_v51)
}
}
}, /// @param callback a user implemented callback class.
/// @param aabb the query box.
_8k1: function (_291, _171) {
var _9k1 = new _pj1();
_9k1._Ug1 = this._Vg1._Wg1;
_9k1._291 = _291;
this._Vg1._Wg1._591(_9k1, _171);
this._nj1._8k1(_291, _171)
}, /// @param callback a user implemented callback class.
/// @param point1 the ray starting point
/// @param point2 the ray ending point
_Z61: function (_291,
_ak1, _bk1) {
var _9k1 = new _qj1();
_9k1._Ug1 = this._Vg1._Wg1;
_9k1._291 = _291;
var _aC = new _tb1();
_aC._h71 = 1.0;
_aC.__n = _ak1;
_aC._y61 = _bk1;
this._Vg1._Wg1._Z61(_9k1, _aC);
this._nj1._Z61(_291, _ak1, _bk1)
},
/*@returns {b2Body} the head of the world body list. */ _ck1: function () {
return this._9j1
}, /// @return the head of the world joint list.
_Wh1: function () {
return this._og1
}, /// @return the head of the world contact list.
/// @warning contacts are created and destroyed in the middle of a time step.
_Xh1: function () {
return this._Vg1._pg1
},
_dk1: function (_Mh1) {
if (_Mh1 == this._gj1) {
return
}
this._gj1 = _Mh1;
if (this._gj1 == !1) {
for (var _99 = this._9j1; _99; _99 = _99._rg1) {
_99._wS(!0)
}
}
},
_ek1: function () {
return this._gj1
},
_fk1: function (_Mh1) {
this._cj1 = _Mh1
},
_gk1: function () {
return this._cj1
},
_hk1: function (_Mh1) {
this._dj1 = _Mh1
},
_ik1: function () {
return this._dj1
},
_jk1: function (_Mh1) {
this._ej1 = _Mh1
},
_kk1: function () {
return this._ej1
},
_091: function () {
return this._Vg1._Wg1._091()
},
_lk1: function () {
return this._aj1
},
_mk1: function () {
return this._bj1
},
_nk1: function () {
return this._Vg1._ok1
},
_b91: function () {
return this._Vg1._Wg1._b91()
},
_c91: function () {
return this._Vg1._Wg1._c91()
},
_e91: function () {
return this._Vg1._Wg1._e91()
},
_pk1: function (_pz) {
this._hj1 = _pz
},
_qk1: function () {
return this._hj1
},
_Rg1: function () {
return (this._fg1 & _0h1._Vj1) == _0h1._Vj1
},
_rk1: function (_Mh1) {
if (_Mh1) {
this._fg1 |= _0h1._ij1
} else {
this._fg1 &= ~_0h1._ij1
}
},
_sk1: function () {
return (this._fg1 & _0h1._ij1) == _0h1._ij1
}, /// @param newOrigin the new origin with respect to the old origin
_g91: function (_h91) {
_W31((this._fg1 & _0h1._Vj1) == 0);
if ((this._fg1 & _0h1._Vj1) == _0h1._Vj1) {
return
}
for (var _99 = this._9j1; _99; _99 = _99._rg1) {
_99._hd1._gE._R41(_h91);
_99._ng1._y51._R41(_h91);
_99._ng1._j2._R41(_h91)
}
for (var _nb = this._og1; _nb; _nb = _nb._rg1) {
_nb._g91(_h91)
}
this._Vg1._Wg1._g91(_h91)
},
_tk1: function () {
return this._Vg1
},
_851: function (_z31) {
for (var _99 = this._9j1; _99; _99 = _99._rg1) {
_99._mg1._mH(_99._hd1)
}
this._lj1._6b1(this._aj1, this._Vg1._ok1, this._bj1, this._Vg1._Aj1);
for (var _99 = this._9j1; _99; _99 = _99._rg1) {
_99._fg1 &= ~_1g1._Jg1;
}
for (var _j2 = this._Vg1._pg1; _j2; _j2 = _j2._rg1) {
_j2._fg1 &= ~_uk1._Jg1
}
for (var _nb = this._og1; _nb; _nb = _nb._rg1) {
_nb._vk1 = !1
}
var _wk1 = this._aj1;
var _u31 = new Array(_wk1);
for (var _xk1 = this._9j1; _xk1; _xk1 = _xk1._rg1) {
if (_xk1._fg1 & _1g1._Jg1) {
continue
}
if (_xk1._Qh1() == !1 || _xk1._Sh1() == !1) {
continue
}
if (_xk1._W61() == _1g1._2g1) {
continue
}
this._lj1._bk();
var _yk1 = 0;
_u31[_yk1++] = _xk1;
_xk1._fg1 |= _1g1._Jg1;
while (_yk1 > 0) {
var _99 = _u31[--_yk1];
_W31(_99._Sh1() == !0);
this._lj1._zk1(_99);
_99._wS(!0);
if (_99._W61() == _1g1._2g1) {
continue
}
for (var _Hh1 = _99._pg1; _Hh1; _Hh1 = _Hh1._3m) {
var _3h1 = _Hh1._3h1;
if (_3h1._fg1 & _uk1._Jg1) {
continue
}
if (_3h1._Ak1() == !1 || _3h1._Bk1() == !1) {
continue
}
var _Ck1 = _3h1._Dk1._ei1;
var _Ek1 = _3h1._Fk1._ei1;
if (_Ck1 || _Ek1) {
continue
}
this._lj1._Gk1(_3h1);
_3h1._fg1 |= _uk1._Jg1;
var _wb1 = _Hh1._wb1;
if (_wb1._fg1 & _1g1._Jg1) {
continue
}
_W31(_yk1 < _wk1);
_u31[_yk1++] = _wb1;
_wb1._fg1 |= _1g1._Jg1
}
for (var _Ej1 = _99._og1; _Ej1; _Ej1 = _Ej1._3m) {
if (_Ej1._3i1._vk1 == !0) {
continue
}
var _wb1 = _Ej1._wb1;
if (_wb1._Sh1() == !1) {
continue
}
this._lj1._Hk1(_Ej1._3i1);
_Ej1._3i1._vk1 = !0;
if (_wb1._fg1 & _1g1._Jg1) {
continue
}
_W31(_yk1 < _wk1);
_u31[_yk1++] = _wb1;
_wb1._fg1 |= _1g1._Jg1
}
}
this._lj1._851(_z31, this._hj1, this._gj1);
for (var _i2 = 0; _i2 < this._lj1._aj1; ++_i2) {
var _99 = this._lj1._Ik1[_i2];
if (_99._W61() == _1g1._2g1) {
_99._fg1 &= ~_1g1._Jg1
}
}
} {
_5j1.start();
for (var _99 = this._9j1; _99; _99 = _99._Yh1()) {
if ((_99._fg1 & _1g1._Jg1) == 0) {
continue
}
if (_99._W61() == _1g1._2g1) {
continue
}
_99._Gh1()
}
this._Vg1._Uj1();
_5j1.stop()
}
},
_Wj1: function (_z31) {
this._lj1._6b1(2 * _841, _841, 0, this._Vg1._Aj1);
if (this._fj1) {
for (var _99 = this._9j1; _99; _99 = _99._rg1) {
_99._fg1 &= ~_1g1._Jg1;
_99._ng1._B51 = 0.0
}
for (var _j2 = this._Vg1._pg1; _j2; _j2 = _j2._rg1) {
_j2._fg1 &= ~(_uk1._Kg1 | _uk1._Jg1);
_j2._Jk1 = 0;
_j2._Kk1 = 1.0
}
}
for (;;) {
var _Lk1 = null;
var _Mk1 = 1.0;
for (var _j2 = this._Vg1._pg1; _j2; _j2 = _j2._rg1) {
if (_j2._Ak1() == !1) {
continue
}
if (_j2._Jk1 > _741) {
continue
}
var alpha = 1.0;
if (_j2._fg1 & _uk1._Kg1) {
alpha = _j2._Kk1
} else {
var _Nk1 = _j2._5h1();
var _Ok1 = _j2._7h1();
if (_Nk1._ji1() || _Ok1._ji1()) {
continue
}
var _Pk1 = _Nk1._oi1();
var _Qk1 = _Ok1._oi1();
var _Ka1 = _Pk1._VH;
var _La1 = _Qk1._VH;
_W31(_Ka1 == _1g1._Ag1 || _La1 == _1g1._Ag1);
var _Rk1 = _Pk1._Qh1() && _Ka1 != _1g1._2g1;
var _Sk1 = _Qk1._Qh1() && _La1 != _1g1._2g1;
if (_Rk1 == !1 && _Sk1 == !1) {
continue
}
var _Tk1 = _Pk1._Nh1() || _Ka1 != _1g1._Ag1;
var _Uk1 = _Qk1._Nh1() || _La1 != _1g1._Ag1;
if (_Tk1 == !1 && _Uk1 == !1) {
continue
}
var _B51 = _Pk1._ng1._B51;
if (_Pk1._ng1._B51 < _Qk1._ng1._B51) {
_B51 = _Qk1._ng1._B51;
_Pk1._ng1._E51(_B51)
} else if (_Qk1._ng1._B51 < _Pk1._ng1._B51) {
_B51 = _Pk1._ng1._B51;
_Qk1._ng1._E51(_B51)
}
_W31(_B51 < 1.0);
var _q91 = _j2._2k1();
var _r91 = _j2._4k1();
var _aC = new _df1();
_aC._t91._Yl(_Nk1._hi1(), _q91);
_aC._u91._Yl(_Ok1._hi1(), _r91);
_aC._ef1._mH(_Pk1._ng1);
_aC._ff1._mH(_Qk1._ng1);
_aC._gf1 = 1.0;
var _cC = new _hf1();
_Jf1(_cC, _aC);
var _D51 = _cC._jb;
if (_cC.state == _hf1._kf1) {
alpha = _761(_B51 + (1.0 - _B51) * _D51, 1.0)
} else {
alpha = 1.0
}
_j2._Kk1 = alpha;
_j2._fg1 |= _uk1._Kg1
}
if (alpha < _Mk1) {
_Lk1 = _j2;
_Mk1 = alpha
}
}
if (_Lk1 == null || 1.0 - 10.0 * _Z31 < _Mk1) {
this._fj1 = !0;
break
}
var _Nk1 = _Lk1._5h1();
var _Ok1 = _Lk1._7h1();
var _Pk1 = _Nk1._oi1();
var _Qk1 = _Ok1._oi1();
_0h1._rj1._mH(_Pk1._ng1);
_0h1._sj1._mH(_Qk1._ng1);
_Pk1._E51(_Mk1);
_Qk1._E51(_Mk1);
_Lk1._ck(this._Vg1._Aj1);
_Lk1._fg1 &= ~_uk1._Kg1;
++_Lk1._Jk1;
if (_Lk1._Ak1() == !1 || _Lk1._Bk1() == !1) {
_Lk1._Vk1(!1);
_Pk1._ng1._mH(_0h1._rj1);
_Qk1._ng1._mH(_0h1._sj1);
_Pk1._0i1();
_Qk1._0i1();
continue
}
_Pk1._wS(!0);
_Qk1._wS(!0);
this._lj1._bk();
this._lj1._zk1(_Pk1);
this._lj1._zk1(_Qk1);
this._lj1._Gk1(_Lk1);
_Pk1._fg1 |= _1g1._Jg1;
_Qk1._fg1 |= _1g1._Jg1;
_Lk1._fg1 |= _uk1._Jg1;
var _Wk1 = [_Pk1, _Qk1];
for (var _i2 = 0; _i2 < 2; ++_i2) {
var body = _Wk1[_i2];
if (body._VH == _1g1._Ag1) {
for (var _Hh1 = body._pg1; _Hh1; _Hh1 = _Hh1._3m) {
if (this._lj1._aj1 == this._lj1._Xk1) {
break
}
if (this._lj1._ok1 == this._lj1._Yk1) {
break
}
var _3h1 = _Hh1._3h1;
if (_3h1._fg1 & _uk1._Jg1) {
continue
}
var _wb1 = _Hh1._wb1;
if (_wb1._VH == _1g1._Ag1 && body._Nh1() == !1 && _wb1._Nh1() == !1) {
continue
}
var _Ck1 = _3h1._Dk1._ei1;
var _Ek1 = _3h1._Fk1._ei1;
if (_Ck1 || _Ek1) {
continue
}
_0h1._tj1._mH(_wb1._ng1);
if ((_wb1._fg1 & _1g1._Jg1) == 0) {
_wb1._E51(_Mk1)
}
_3h1._ck(this._Vg1._Aj1);
if (_3h1._Ak1() == !1) {
_wb1._ng1._mH(_0h1._tj1);
_wb1._0i1();
continue
}
if (_3h1._Bk1() == !1) {
_wb1._ng1._mH(_0h1._tj1);
_wb1._0i1();
continue
}
_3h1._fg1 |= _uk1._Jg1;
this._lj1._Gk1(_3h1);
if (_wb1._fg1 & _1g1._Jg1) {
continue
}
_wb1._fg1 |= _1g1._Jg1;
if (_wb1._VH != _1g1._2g1) {
_wb1._wS(!0)
}
this._lj1._zk1(_wb1)
}
}
}
var _Zk1 = new _Qi1();
_Zk1._Ri1 = (1.0 - _Mk1) * _z31._Ri1;
_Zk1._Si1 = 1.0 / _Zk1._Ri1;
_Zk1._Ti1 = 1.0;
_Zk1._Vi1 = 20;
_Zk1._Ui1 = _z31._Ui1;
_Zk1._Wi1 = !1;
this._lj1._Wj1(_Zk1, _Pk1._eg1, _Qk1._eg1);
for (var _i2 = 0; _i2 < this._lj1._aj1; ++_i2) {
var body = this._lj1._Ik1[_i2];
body._fg1 &= ~_1g1._Jg1;
if (body._VH != _1g1._Ag1) {
continue;
}
body._Gh1();
for (var _Hh1 = body._pg1; _Hh1; _Hh1 = _Hh1._3m) {
_Hh1._3h1._fg1 &= ~(_uk1._Kg1 | _uk1._Jg1)
}
}
this._Vg1._Uj1();
if (this._ej1) {
this._fj1 = !1;
break
}
}
},
_0k1: function (_3i1) {
var _Qj1 = _3i1.__k1();
var _Rj1 = _3i1._0l1();
var _3c1 = _Qj1._C51();
var _5c1 = _Rj1._C51();
var _6b = _3c1._gE;
var _8b = _5c1._gE;
var __n = _3i1._1l1();
var _y61 = _3i1._2l1();
var color = new _j61(0.5, 0.8, 0.8);
switch (_3i1._W61()) {
case _Kj1._3l1:
this._8j1._x61(__n, _y61, color);
break;
case _Kj1._4l1: {
var _5l1 = _3i1;
var _4w = _5l1._6l1();
var _5w = _5l1._7l1();
this._8j1._x61(_4w, __n, color);
this._8j1._x61(_5w,
_y61, color);
this._8j1._x61(_4w, _5w, color)
}
break;
case _Kj1._8l1:
break;
case _Kj1._9l1:
this._8j1._al1(_3i1._bl1(), 5.0, color);
default:
this._8j1._x61(_6b, __n, color);
this._8j1._x61(__n, _y61, color);
this._8j1._x61(_8b, _y61, color)
}
},
_Zj1: function (_8S, _v51, color) {
switch (_8S._W61()) {
case _U61._871: {
var _k91 = _8S._hi1();
var _u61 = _X51(_v51, _k91._e71);
var _v61 = _k91._V61;
var _0o = _V51(_v51._qC, new _K41(1.0, 0.0));
this._8j1._w61(_u61, _v61, _0o, color)
}
break;
case _U61._971: {
var _S71 = _8S._hi1();
var _sf = _X51(_v51, _S71._r71);
var _Q9 = _X51(_v51,
_S71._s71);
this._8j1._x61(_sf, _Q9, color)
}
break;
case _U61._b71: {
var _l91 = _8S._hi1();
var _Jc = _l91._F71;
var vertices = _l91._E71;
var _sf = _X51(_v51, vertices[0]);
for (var _i2 = 1; _i2 < _Jc; ++_i2) {
var _Q9 = _X51(_v51, vertices[_i2]);
this._8j1._x61(_sf, _Q9, color);
_sf = _Q9
}
}
break;
case _U61._a71: {
var _cl1 = _8S._hi1();
var vertexCount = _cl1._F71;
_W31(vertexCount <= _141);
var vertices = new Array(_141);
for (var _i2 = 0; _i2 < vertexCount; ++_i2) {
vertices[_i2] = _X51(_v51, _cl1._E71[_i2])
}
this._8j1._s61(vertices, vertexCount, color)
}
break;
default:
break
}
},
_dl1: function () {
return this._nj1._dl1()
},
_el1: function (_Jc) {
this._nj1._el1(_Jc)
},
_fl1: function (_471) {
this._nj1._fl1(_471)
},
_gl1: function () {
return this._nj1._gl1()
},
_hl1: function (_bg1) {
this._nj1._hl1(_bg1)
},
_il1: function () {
return this._nj1._il1()
},
_jl1: function (_kl1) {
this._nj1._jl1(_kl1)
},
_ll1: function () {
return this._nj1._ll1()
},
_ml1: function (_v61) {
this._nj1._ml1(_v61)
},
_nl1: function () {
return this._nj1._nl1()
},
_ol1: function (_Og1) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return 0
}
var _gE = this._nj1._ol1(_Og1);
return _gE
},
_pl1: function (index, _ql1) {
this._nj1._pl1(index, _ql1)
},
_rl1: function (_f71, _v51, _ql1) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return 0
}
return this._nj1._rl1(_f71, _v51, _ql1)
},
_sl1: function (_Og1) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return null
}
var _89 = this._nj1._sl1(_Og1);
return _89
},
_tl1: function (_ul1, _vl1) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return
}
this._nj1._tl1(_ul1, _vl1)
},
_wl1: function (_RX, _ql1) {
_W31(this._Rg1() == !1);
if (this._Rg1()) {
return
}
this._nj1._wl1(_RX, _ql1)
},
_xl1: function () {
return this._nj1._xl1()
},
_yl1: function () {
return this._nj1._yl1()
},
_zl1: function () {
return this._nj1._zl1()
},
_Al1: function () {
return this._nj1._Al1()
},
_Bl1: function () {
return this._nj1._Bl1()
},
_Cl1: function () {
return this._nj1._Cl1()
},
_Dl1: function (buffer, _El1) {
this._nj1._Dl1(buffer, _El1)
},
_Fl1: function (buffer, _El1) {
this._nj1._Fl1(buffer, _El1)
},
_Gl1: function (buffer, _El1) {
this._nj1._Gl1(buffer, _El1)
},
_Hl1: function (buffer, _El1) {
this._nj1._Hl1(buffer, _El1)
},
_Il1: function (buffer, _El1) {
this._nj1._Il1(buffer, _El1)
},
_Jl1: function () {
return this._nj1._Kl1
},
_Ll1: function () {
return this._nj1._ok1
},
_Ml1: function () {
return this._nj1._Nl1
},
_Ol1: function () {
return this._nj1._Pl1
},
_Ql1: function () {
return this._nj1._Ql1()
},
_Rl1: function () {
return this._nj1._Rl1()
},
_Sl1: function () {
return this._nj1._Sl1()
},
_Tl1: function () {
return this._nj1._Tl1()
},
__j1: function (_Ul1) {
var _Vl1 = _Ul1._Tl1();
if (_Vl1) {
var _Wl1 = _Ul1._nl1();
var _Xl1 = _Ul1._yl1();
if (_Ul1._Yl1.data) {
var _Zl1 = _Ul1._Al1();
this._8j1._A61(_Xl1, _Wl1, _Zl1, _Vl1)
} else {
this._8j1._A61(_Xl1, _Wl1, null, _Vl1)
}
}
}
};
_0h1._1h1 = 0x0001;
_0h1._Vj1 = 0x0002;
_0h1._ij1 = 0x0004;
function __l1(_El1) {
this._0m1 = new Array(_El1);
this._vd1 = 0;
this._1m1 = 0;
this._2m1 = _El1
}
__l1.prototype = {
__O: function (_4m) {
if (this._1m1 >= this._2m1) return;
this._0m1[this._1m1++] = _4m
},
_1P: function () {
_W31(this._vd1 < this._1m1);
this._vd1++
},
_3m1: function () {
return this._vd1 >= this._1m1
},
_4m1: function () {
return this._0m1[this._vd1]
}
};
function _5m1(_6m1) {
this._7m1 = new Array(_6m1);
this._8m1 = 0;
this._9m1 = 0;
this._am1 = 0;
this._bm1 = null
}
_5m1._cm1 = function () {
this._u61 = new _K41();
this._dm1 = 0
};
_5m1._em1 = function (x, y, _i2, _89) {
this._ZI = x;
this.__I = y;
this._fm1 = _i2;
this._gm1 = _89
};
_5m1.prototype = {
_hm1: function (_u61, _dm1) {
var _89 = (this._7m1[this._8m1++] = new _5m1._cm1());
_89._u61._mH(_u61);
_89._dm1 = _dm1
},
_im1: function (_v61) {
_W31(this._bm1 == null);
var _jm1 = 1 / _v61;
var _5N = new _K41(+_Y31, +_Y31);
var _981 = new _K41(-_Y31, -_Y31);
for (var __l = 0; __l < this._8m1; __l++) {
var _89 = this._7m1[__l];
_5N._mH(_861(_5N, _89._u61));
_981._mH(_a61(_981, _89._u61))
}
this._9m1 = 1 + ((_jm1 * (_981.x - _5N.x)) >>> 0);
this._am1 = 1 + ((_jm1 * (_981.y - _5N.y)) >>> 0);
this._bm1 = new Array(this._9m1 * this._am1);
for (var _i2 = 0; _i2 < this._9m1 * this._am1; _i2++) this._bm1[_i2] = null;
var _km1 = new __l1(this._9m1 * this._9m1);
for (var __l = 0; __l < this._8m1; __l++) {
var _89 = this._7m1[__l];
_89._u61._mH(_K41.Multiply(_jm1, _K41._R41(_89._u61, _5N)));
var x = _961(0, _761(Math.floor(_89._u61.x), this._9m1 - 1));
var y = _961(0, _761(Math.floor(_89._u61.y), this._am1 - 1));
_km1.__O(new _5m1._em1(x, y, x + y * this._9m1, _89))
}
while (!_km1._3m1()) {
var x = _km1._4m1()._ZI;
var y = _km1._4m1().__I;
var _i2 = _km1._4m1()._fm1;
var _89 = _km1._4m1()._gm1;
_km1._1P();
if (!this._bm1[_i2]) {
this._bm1[_i2] = _89;
if (x > 0) {
_km1.__O(new _5m1._em1(x - 1, y, _i2 - 1, _89))
}
if (y > 0) {
_km1.__O(new _5m1._em1(x, y - 1, _i2 - this._9m1, _89))
}
if (x < this._9m1 - 1) {
_km1.__O(new _5m1._em1(x + 1, y, _i2 + 1, _89))
}
if (y < this._am1 - 1) {
_km1.__O(new _5m1._em1(x, y + 1, _i2 + this._9m1, _89))
}
}
}
var _lm1 = this._9m1 + this._am1;
for (var _mm1 = 0; _mm1 < _lm1; _mm1++) {
for (var y = 0; y < this._am1; y++) {
for (var x = 0; x < this._9m1 - 1; x++) {
var _i2 = x + y * this._9m1;
var _a9 = this._bm1[_i2];
var _99 = this._bm1[_i2 + 1];
if (_a9 != _99) {
_km1.__O(new _5m1._em1(x,
y, _i2, _99));
_km1.__O(new _5m1._em1(x + 1, y, _i2 + 1, _a9))
}
}
}
for (var y = 0; y < this._am1 - 1; y++) {
for (var x = 0; x < this._9m1; x++) {
var _i2 = x + y * this._9m1;
var _a9 = this._bm1[_i2];
var _99 = this._bm1[_i2 + this._9m1];
if (_a9 != _99) {
_km1.__O(new _5m1._em1(x, y, _i2, _99));
_km1.__O(new _5m1._em1(x, y + 1, _i2 + this._9m1, _a9))
}
}
}
var _nm1 = !1;
while (!_km1._3m1()) {
var x = _km1._4m1()._ZI;
var y = _km1._4m1().__I;
var _i2 = _km1._4m1()._fm1;
var __l = _km1._4m1()._gm1;
_km1._1P();
var _a9 = this._bm1[_i2];
var _99 = __l;
if (_a9 != _99) {
var _5M = _a9._u61.x - x;
var _6M = _a9._u61.y - y;
var _om1 = _99._u61.x - x;
var _pm1 = _99._u61.y - y;
var _i_ = _5M * _5M + _6M * _6M;
var _mB = _om1 * _om1 + _pm1 * _pm1;
if (_i_ > _mB) {
this._bm1[_i2] = _99;
if (x > 0) {
_km1.__O(new _5m1._em1(x - 1, y, _i2 - 1, _99))
}
if (y > 0) {
_km1.__O(new _5m1._em1(x, y - 1, _i2 - this._9m1, _99))
}
if (x < this._9m1 - 1) {
_km1.__O(new _5m1._em1(x + 1, y, _i2 + 1, _99))
}
if (y < this._am1 - 1) {
_km1.__O(new _5m1._em1(x, y + 1, _i2 + this._9m1, _99))
}
_nm1 = !0
}
}
}
if (!_nm1) {
break
}
}
},
_qm1: function (_291) {
for (var y = 0; y < this._am1 - 1; y++) {
for (var x = 0; x < this._9m1 - 1; x++) {
var _i2 = x + y * this._9m1;
var _a9 = this._bm1[_i2];
var _99 = this._bm1[_i2 + 1];
var _j2 = this._bm1[_i2 + this._9m1];
var _Xn = this._bm1[_i2 + 1 + this._9m1];
if (_99 != _j2) {
if (_a9 != _99 && _a9 != _j2) {
_291(_a9._dm1, _99._dm1, _j2._dm1)
}
if (_Xn != _99 && _Xn != _j2) {
_291(_99._dm1, _Xn._dm1, _j2._dm1)
}
}
}
}
}
};
function _rm1(_79, _89, _99, _a9) {
if (_79 instanceof _j61) {
this._79 = (255 * _79._79);
this._89 = (255 * _79._89);
this._99 = (255 * _79._99);
this._a9 = 255
} else if (typeof (_79) !== 'undefined') {
this._79 = _79;
this._89 = _89;
this._99 = _99;
this._a9 = _a9
} else this._79 = this._89 = this._99 = this._a9 = 0
}
_rm1.prototype = {
_sm1: function () {
return !this._79 && !this._89 && !this._99 && !this._a9;
},
_tm1: function () {
return new _j61(1.0 / 255 * this._79, 1.0 / 255 * this._89, 1.0 / 255 * this._99)
},
_Yl: function (_um1, _vm1, _wm1, _xm1) {
if (_um1 instanceof _j61) {
this._79 = (255 * _um1._79);
this._89 = (255 * _um1._89);
this._99 = (255 * _um1._99);
this._a9 = 255
} else {
this._79 = _um1;
this._89 = _vm1;
this._99 = _wm1;
this._a9 = _xm1
}
},
_mH: function (_ym1) {
this._79 = _ym1._79;
this._89 = _ym1._89;
this._99 = _ym1._99;
this._a9 = _ym1._a9
},
_X7: function () {
return new _rm1(this._79, this._89, this._99, this._a9)
}
};
_rm1._zm1 = new _rm1();
function _Am1() {
this._121 = 0;
this.position = new _K41();
this._XU = new _K41();
this.color = new _rm1();
this._O81 = null
}
_Am1._Bm1 = 0;
_Am1._Cm1 = 1 << 1;
_Am1._Dm1 = 1 << 2;
_Am1._Em1 = 1 << 3;
_Am1._Fm1 = 1 << 4;
_Am1._Gm1 = 1 << 5;
_Am1._Hm1 = 1 << 6;
_Am1._Im1 = 1 << 7;
_Am1._Jm1 = 1 << 8;
_Am1._Km1 = 1 << 9;
function _Lm1() {
this._121 = 0;
this._Mm1 = 0;
this.position = new _K41();
this.angle = 0;
this._3g1 = new _K41();
this._4g1 = 0;
this.color = new _rm1();
this._Nm1 = 1;
this._f71 = null;
this._Om1 = !0;
this._O81 = null
}
function _Pm1() {
this._Qm1 = null;
this._Rm1 = 0;
this._Sm1 = 0;
this._Tm1 = 0;
this._Um1 = 1.0;
this._qg1 = null;
this._rg1 = null;
this._Vm1 = -1;
this._Bg1 = 0;
this._Wm1 = 0;
this._Xm1 = new _K41();
this._sg1 = new _K41();
this._tg1 = 0;
this._Ym1 = new _u51();
this._Ym1._451();
this._Zm1 = !0;
this.__m1 = !1;
this._0n1 = !1;
this._Fg1 = null
}
_Pm1.prototype = {
_Yh1: function () {
return this._rg1
},
_Tl1: function () {
return this._Sm1 - this._Rm1
},
_1n1: function () {
return this._Rm1
},
_2n1: function () {
return this._Tm1
},
_3n1: function (_121) {
this._Tm1 = _121
},
_oh1: function () {
this._4n1();
return this._Bg1
},
_ph1: function () {
this._4n1();
return this._Wm1
},
_yb1: function () {
this._4n1();
return this._Xm1
},
_fh1: function () {
this._4n1();
return this._sg1
},
_hh1: function () {
this._4n1();
return this._tg1
},
_C51: function () {
return this._Ym1
},
_ZR: function () {
return this._Ym1._gE
},
_r51: function () {
return this._Ym1._qC._r51()
},
_X81: function () {
return this._Fg1
},
_Zh1: function (data) {
this._Fg1 = data
},
_4n1: function () {
if (this._Vm1 != this._Qm1._Vm1) {
var _5b = this._Qm1._5n1();
this._Bg1 = 0;
this._Xm1._L41();
this._sg1._L41();
for (var _i2 = this._Rm1; _i2 < this._Sm1; _i2++) {
this._Bg1 += _5b;
this._Xm1._Vj(_K41.Multiply(_5b,
this._Qm1._6n1.data[_i2]));
this._sg1._Vj(_K41.Multiply(_5b, this._Qm1._7n1.data[_i2]))
}
if (this._Bg1 > 0) {
this._Xm1.Multiply(1 / this._Bg1);
this._sg1.Multiply(1 / this._Bg1)
}
this._Wm1 = 0;
this._tg1 = 0;
for (var _i2 = this._Rm1; _i2 < this._Sm1; _i2++) {
var _gE = _K41._R41(this._Qm1._6n1.data[_i2], this._Xm1);
var _O9 = _K41._R41(this._Qm1._7n1.data[_i2], this._sg1);
this._Wm1 += _5b * _G51(_gE, _gE);
this._tg1 += _5b * _H51(_gE, _O9)
}
if (this._Wm1 > 0) {
this._tg1 *= 1 / this._Wm1
}
this._Vm1 = this._Qm1._Vm1
}
}
};
_Pm1._8n1 = 1 << 0;
_Pm1._9n1 = 1 << 1;
function _an1() {
this._q91 = this._r91 = 0;
this._121 = 0;
this._bn1 = 0.0;
this._771 = new _K41()
};
function _cn1() {
this.index = 0;
this.body = null;
this._bn1 = 0.0;
this._771 = new _K41();
this._S61 = 0.0
};
function _oj1() {
this._Vm1 = 0;
this._dn1 = 0;
this._en1 = 0;
this._Zg1 = 1;
this._fn1 = 1;
this._wg1 = 1;
this._gn1 = 1;
this._hn1 = 1;
this._in1 = 1;
this._F71 = 0;
this._jn1 = 0;
this._kn1 = 0;
this._ln1 = new _oj1._mn1();
this._6n1 = new _oj1._mn1();
this._7n1 = new _oj1._mn1();
this._nn1 = null;
this._on1 = null;
this._pn1 = null;
this._Yl1 = new _oj1._mn1();
this._qn1 = null;
this._rn1 = new _oj1._mn1();
this._I81 = 0;
this._sn1 = 0;
this._tn1 = null;
this._ok1 = 0;
this._Yk1 = 0;
this._Kl1 = null;
this._Pl1 = 0;
this._un1 = 0;
this._Nl1 = null;
this._J81 = 0;
this._vn1 = 0;
this._K81 = null;
this._wn1 = 0;
this._xn1 = 0;
this._yn1 = null;
this._zn1 = 0;
this._An1 = null;
this._Bn1 = 0.05;
this._Cn1 = 1.0;
this._Dn1 = 0.25;
this._En1 = 0.25;
this._Fn1 = 0.25;
this._Gn1 = 0.1;
this._Hn1 = 0.2;
this._In1 = 0.5;
this._Jn1 = 0.5;
this._Kn1 = 0.5;
this._lg1 = null
}
_oj1._mn1 = function () {
this.data = null;
this._Ln1 = 0
};
_oj1._Mn1 = function () {
this.index = 0;
this._dm1 = 0
};
_oj1._Mn1._Nn1 = function (_a9,
_99) {
return _a9._dm1 < _99._dm1;
};
_oj1._Mn1._On1 = function (_a9, _99) {
return _a9 < _99._dm1
};
_oj1._Mn1._Pn1 = function (_a9, _99) {
return _a9._dm1 < _99
};
_oj1._Qn1 = function () {
this._q91 = this._r91 = 0;
this._121 = 0;
this._Nm1 = 0.0;
this._671 = 0.0
};
_oj1._Rn1 = function () {
this._q91 = this._r91 = this._Sn1 = 0;
this._121 = 0;
this._Nm1 = 0.0;
this._Tn1 = new _K41(), this._Un1 = new _K41(), this._ym1 = new _K41();
this._Vn1 = 0.0, this._Wn1 = 0.0, this._Xn1 = 0.0, this._wy = 0.0
};
_oj1._Yn1 = _Am1._Em1;
_oj1._Zn1 = _Am1._Fm1;
_oj1.__n1 = _Am1._Hm1;
_oj1._0o1 = 12;
_oj1._1o1 = 12;
_oj1._2o1 = 8 * 4;
_oj1._3o1 = 1 << (_oj1._1o1 - 1);
_oj1._4o1 = _oj1._2o1 - _oj1._1o1;
_oj1._5o1 = _oj1._2o1 - _oj1._1o1 - _oj1._0o1;
_oj1._6o1 = 1 << _oj1._5o1;
_oj1._7o1 = _oj1._6o1 * (1 << (_oj1._0o1 - 1));
_oj1._8o1 = (1 << _oj1._0o1) - 1;
_oj1._9o1 = (1 << _oj1._1o1) - 1;
function _ao1(x, y) {
return ((y + _oj1._3o1) << _oj1._4o1) + (_oj1._6o1 * x + _oj1._7o1) >>> 0
}
function _bo1(_dm1, x, y) {
return _dm1 + (y << _oj1._4o1) + (x << _oj1._5o1)
}
function _co1(_El1, _do1) {
return _do1 && _El1 > _do1 ? _do1 : _El1
}
function _eo1(_3h1) {
return (_3h1._121 & _Am1._Cm1) == _Am1._Cm1
}
_oj1.prototype = {
_fo1: function (_go1, _ho1, _io1) {
_W31(_io1 > _ho1);
var _jo1 = (_go1) ? _go1.slice() : [];
_jo1.length = _io1;
return _jo1
},
_ko1: function (buffer, _Ln1, _ho1, _io1, _lo1) {
_W31(_io1 > _ho1);
_W31(!_Ln1 || _io1 <= _Ln1);
if ((!_lo1 || buffer) && !_Ln1) {
buffer = this._fo1(buffer, _ho1, _io1)
}
return buffer
},
_mo1: function (buffer, _ho1, _io1, _lo1) {
_W31(_io1 > _ho1);
return this._ko1(buffer.data, buffer._Ln1, _ho1, _io1, _lo1)
},
_no1: function (buffer) {
if (!buffer) {
buffer = new Array(this._jn1);
for (var _i2 = 0; _i2 < this._jn1; _i2++) {
buffer[_i2] = 0
}
}
return buffer
},
_ol1: function (_Og1) {
if (this._F71 >= this._jn1) {
var _El1 = this._F71 ? 2 * this._F71 : _r41;
_El1 = _co1(_El1, this._kn1);
_El1 = _co1(_El1, this._ln1._Ln1);
_El1 = _co1(_El1, this._6n1._Ln1);
_El1 = _co1(_El1, this._7n1._Ln1);
_El1 = _co1(_El1, this._Yl1._Ln1);
_El1 = _co1(_El1, this._rn1._Ln1);
if (this._jn1 < _El1) {
this._ln1.data = this._mo1(this._ln1, this._jn1, _El1, !1);
this._6n1.data = this._mo1(this._6n1, this._jn1, _El1, !1);
this._7n1.data = this._mo1(this._7n1, this._jn1, _El1, !1);
this._nn1 = this._ko1(this._nn1, 0, this._jn1, _El1, !1);
this._on1 = this._ko1(this._on1,
0, this._jn1, _El1, !0);
this._pn1 = this._ko1(this._pn1, 0, this._jn1, _El1, !0);
this._Yl1.data = this._mo1(this._Yl1, this._jn1, _El1, !0);
this._qn1 = this._ko1(this._qn1, 0, this._jn1, _El1, !1);
this._rn1.data = this._mo1(this._rn1, this._jn1, _El1, !0);
this._jn1 = _El1
}
}
if (this._F71 >= this._jn1) {
return _l41
}
var index = this._F71++;
this._ln1.data[index] = _Og1._121;
this._6n1.data[index] = _Og1.position._X7();
this._7n1.data[index] = _Og1._XU._X7();
this._qn1[index] = null;
if (this._pn1) {
this._pn1[index] = 0
}
if (this._Yl1.data || !_Og1.color._sm1()) {
this._Yl1.data = this._no1(this._Yl1.data);
this._Yl1.data[index] = _Og1.color._X7()
}
if (this._rn1.data || _Og1._O81) {
this._rn1.data = this._no1(this._rn1.data);
this._rn1.data[index] = _Og1._O81
}
if (this._I81 >= this._sn1) {
var _ho1 = this._sn1;
var _io1 = this._I81 ? 2 * this._I81 : _r41;
this._tn1 = this._fo1(this._tn1, _ho1, _io1);
this._sn1 = _io1
}
this._tn1[this._I81] = new _oj1._Mn1();
this._tn1[this._I81++].index = index;
return index
},
_pl1: function (index, _ql1) {
var _121 = _Am1._Cm1;
if (_ql1) {
_121 |= _Am1._Km1
}
this._ln1.data[index] |= _121
},
_rl1: function (_f71,
_v51, _ql1) {
function _oo1(_Ul1, _f71, _v51, _ql1) {
this._Qm1 = _Ul1;
this._ci1 = _f71;
this._hd1 = _v51;
this._po1 = _ql1;
this._Ij1 = 0
}
_oo1.prototype = {
_Ni1: function (_8S) {
return !1
},
_Oi1: function (index) {
_W31(index >= 0 && index < this._Qm1._F71);
if (this._ci1._Y61(this._hd1, this._Qm1._6n1.data[index])) {
this._Qm1._pl1(index, this._po1);
this._Ij1++
}
return !0
},
_qo1: function () {
return this._Ij1
}
};
var _291 = new _oo1(this, _f71, _v51, _ql1);
var _171 = new _vb1();
_f71._071(_171, _v51, 0);
this._lg1._8k1(_291, _171);
return _291._qo1()
},
_wl1: function (_RX,
_ql1) {
for (var _i2 = _RX._Rm1; _i2 < _RX._Sm1; _i2++) {
this._pl1(_i2, _ql1)
}
},
_sl1: function (_ro1) {
var _Oe = this._so1();
var identity = new _u51();
identity._451();
var transform = identity._X7();
var _to1 = this._F71;
if (_ro1._f71) {
var _uo1 = new _Am1();
_uo1._121 = _ro1._121;
_uo1.color = _ro1.color;
_uo1._O81 = _ro1._O81;
var _f71 = _ro1._f71;
transform._Yl(_ro1.position, _ro1.angle);
var _171 = new _vb1();
var _qi1 = _f71._X61();
for (var __61 = 0; __61 < _qi1; __61++) {
if (__61 == 0) {
_f71._071(_171, identity, __61)
} else {
var _vo1 = new _vb1();
_f71._071(_vo1, identity,
__61);
_171._Bb1(_vo1)
}
}
for (var y = Math.floor(_171._j71.y / _Oe) * _Oe; y < _171._k71.y; y += _Oe) {
for (var x = Math.floor(_171._j71.x / _Oe) * _Oe; x < _171._k71.x; x += _Oe) {
var _gE = new _K41(x, y);
if (_f71._Y61(identity, _gE)) {
_gE = _X51(transform, _gE);
_uo1.position._mH(_gE);
_uo1._XU._mH(_K41._Vj(_ro1._3g1, _J51(_ro1._4g1, _K41._R41(_gE, _ro1.position))));
this._ol1(_uo1)
}
}
}
}
var lastIndex = this._F71;
var _RX = new _Pm1();
_RX._Qm1 = this;
_RX._Rm1 = _to1;
_RX._Sm1 = lastIndex;
_RX._Tm1 = _ro1._Mm1;
_RX._Um1 = _ro1._Nm1;
_RX._Fg1 = _ro1._O81;
_RX._Ym1 = transform;
_RX._Zm1 = _ro1._Om1;
_RX._qg1 = null;
_RX._rg1 = this._An1;
if (this._An1) {
this._An1._qg1 = _RX
}
this._An1 = _RX;
++this._zn1;
for (var _i2 = _to1; _i2 < lastIndex; _i2++) {
this._qn1[_i2] = _RX
}
this._wo1(!0);
if (_ro1._121 & _oj1._Yn1) {
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
if (_a9 > _99) {
var _xo1 = _a9;
_a9 = _99;
_99 = _xo1
}
if (_to1 <= _a9 && _99 < lastIndex) {
if (this._J81 >= this._vn1) {
var _ho1 = this._vn1;
var _io1 = this._J81 ? 2 * this._J81 : _r41;
this._K81 = this._fo1(this._K81, _ho1, _io1);
this._vn1 = _io1
}
var _a91 = this._K81[this._J81] = new _oj1._Qn1();
_a91._q91 = _a9;
_a91._r91 = _99;
_a91._121 = _3h1._121;
_a91._Nm1 = _ro1._Nm1;
_a91._671 = _M51(this._6n1.data[_a9], this._6n1.data[_99]);
this._J81++
}
}
}
if (_ro1._121 & _oj1._Zn1) {
var _yo1 = new _5m1(lastIndex - _to1);
for (var _i2 = _to1; _i2 < lastIndex; _i2++) {
_yo1._hm1(this._6n1.data[_i2], _i2)
}
_yo1._im1(_Oe / 2);
var _291 = function _zo1(_a9, _99, _j2) {
var _Tn1 = this._6n1.data[_a9];
var _Un1 = this._6n1.data[_99];
var _ym1 = this._6n1.data[_j2];
var _Ao1 = _K41._R41(_Tn1, _Un1);
var _Bo1 = _K41._R41(_Un1, _ym1);
var _Co1 = _K41._R41(_ym1, _Tn1);
var _Do1 = _q41 * this._in1;
if (_G51(_Ao1, _Ao1) < _Do1 && _G51(_Bo1, _Bo1) < _Do1 && _G51(_Co1, _Co1) < _Do1) {
if (this._wn1 >= this._xn1) {
var _ho1 = this._xn1;
var _io1 = this._wn1 ? 2 * this._wn1 : _r41;
this._yn1 = this._fo1(this._yn1, _ho1, _io1);
this._xn1 = _io1
}
var _Eo1 = this._yn1[this._wn1];
_Eo1._q91 = _a9;
_Eo1._r91 = _99;
_Eo1._Sn1 = _j2;
_Eo1._121 = this._ln1.data[_a9] | this._ln1.data[_99] | this._ln1.data[_j2];
_Eo1._Nm1 = _ro1._Nm1;
var _Fo1 = _K41.Multiply(1.0 / 3.0, _K41._Vj(_Tn1, _K41._Vj(_Un1, _ym1)));
_Eo1._Tn1 = _K41._R41(_Tn1,
_Fo1);
_Eo1._Un1 = _K41._R41(_Un1, _Fo1);
_Eo1._ym1 = _K41._R41(_ym1, _Fo1);
_Eo1._Vn1 = -_G51(_Co1, _Ao1);
_Eo1._Wn1 = -_G51(_Ao1, _Bo1);
_Eo1._Xn1 = -_G51(_Bo1, _Co1);
_Eo1._wy = _H51(_Tn1, _Un1) + _H51(_Un1, _ym1) + _H51(_ym1, _Tn1);
this._wn1++
}
};
_yo1._qm1(_291)
}
if (_ro1._Mm1 & _Am1._8n1) {
this._Go1(_RX)
}
return _RX
},
_tl1: function (_ul1, _vl1) {
_W31(_ul1 != _vl1);
this._Ho1(_vl1._Rm1, _vl1._Sm1, this._F71);
_W31(_vl1._Sm1 == this._F71);
this._Ho1(_ul1._Rm1, _ul1._Sm1, _vl1._Rm1);
this._W31(_ul1._Sm1 == _vl1._Rm1);
var _Io1 = 0;
for (var _i2 = _ul1._Rm1; _i2 < _vl1._Sm1; _i2++) {
_Io1 |= this._ln1.data[_i2]
}
this._wo1(!0);
if (_Io1 & _oj1._Yn1) {
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
if (_a9 > _99) {
var _xo1 = _a9;
_a9 = _99;
_99 = _xo1
}
if (_ul1._Rm1 <= _a9 && _a9 < _ul1._Sm1 && _vl1._Rm1 <= _99 && _99 < _vl1._Sm1) {
if (this._J81 >= this._vn1) {
var _ho1 = this._vn1;
var _io1 = this._J81 ? 2 * this._J81 : _r41;
this._K81 = this._fo1(this._K81, _ho1, _io1);
this._vn1 = _io1
}
var _a91 = this._K81[this._J81] = new _oj1._Qn1();
_a91._q91 = _a9;
_a91._r91 = _99;
_a91._121 = _3h1._121;
_a91._Nm1 = _761(_ul1._Um1, _vl1._Um1);
_a91._671 = _M51(this._6n1.data[_a9], this._6n1.data[_99]);
this._J81++
}
}
}
if (_Io1 & _oj1._Zn1) {}
for (var _i2 = _vl1._Rm1; _i2 < _vl1._Sm1; _i2++) {
this._qn1[_i2] = _ul1
}
var _Mm1 = _ul1._Tm1 | _vl1._Tm1;
_ul1._Tm1 = _Mm1;
_ul1._Sm1 = _vl1._Sm1;
_vl1._Rm1 = _vl1._Sm1;
this._Jo1(_vl1);
if (_Mm1 & _Am1._8n1) {
this._Go1(_ul1)
}
},
_Jo1: function (_RX) {
_W31(this._zn1 > 0);
_W31(_RX);
if (this._lg1._7j1) {
this._lg1._7j1._Ko1(_RX)
}
for (var _i2 = _RX._Rm1; _i2 < _RX._Sm1; _i2++) {
this._qn1[_i2] = null
}
if (_RX._qg1) {
_RX._qg1._rg1 = _RX._rg1
}
if (_RX._rg1) {
_RX._rg1._qg1 = _RX._qg1
}
if (_RX == this._An1) {
this._An1 = _RX._rg1
}--this._zn1
},
_Go1: function (_RX) {
for (var _i2 = _RX._Rm1; _i2 < _RX._Sm1; _i2++) {
this._nn1[_i2] = 0
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
if (_a9 >= _RX._Rm1 && _a9 < _RX._Sm1 && _99 >= _RX._Rm1 && _99 < _RX._Sm1) {
var _k2 = _3h1._bn1;
this._nn1[_a9] += _k2;
this._nn1[_99] += _k2
}
}
this._pn1 = this._no1(this._pn1);
for (var _i2 = _RX._Rm1; _i2 < _RX._Sm1; _i2++) {
var _k2 = this._nn1[_i2];
this._pn1[_i2] = _k2 < 0.8 ? 0 : _Y31
}
var _Lo1 = _RX._Tl1();
for (var _jb = 0; _jb < _Lo1; _jb++) {
var _nm1 = !1;
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
if (_a9 >= _RX._Rm1 && _a9 < _RX._Sm1 && _99 >= _RX._Rm1 && _99 < _RX._Sm1) {
var _79 = 1 - _3h1._bn1;
var _Mo1 = this._pn1[_a9];
var _No1 = this._pn1[_99];
var _Oo1 = _No1 + _79;
var _Po1 = _Mo1 + _79;
if (_Mo1 > _Oo1) {
_Mo1 = _Oo1;
_nm1 = !0
}
if (_No1 > _Po1) {
_No1 = _Po1;
_nm1 = !0
}
this._pn1[_a9] = _Mo1;
this._pn1[_99] = _No1
}
}
if (!_nm1) {
break
}
}
for (var _i2 = _RX._Rm1; _i2 < _RX._Sm1; _i2++) {
var _gE = this._pn1[_i2];
if (_gE < _Y31) {
_gE *= this._gn1
} else {
_gE = 0
}
this._pn1[_i2] = _gE
}
},
_Gk1: function (_a9, _99) {
var _Xn = _K41._R41(this._6n1.data[_99], this._6n1.data[_a9]);
var _Qo1 = _G51(_Xn, _Xn);
if (_Qo1 < this._in1) {
if (this._ok1 >= this._Yk1) {
var _ho1 = this._Yk1;
var _io1 = this._ok1 ? 2 * this._ok1 : _r41;
this._Kl1 = this._fo1(this._Kl1, _ho1, _io1);
this._Yk1 = _io1
}
var _Ro1 = _J41(_Qo1);
var _3h1 = this._Kl1[this._ok1] = new _an1();
_3h1._q91 = _a9;
_3h1._r91 = _99;
_3h1._121 = this._ln1.data[_a9] | this._ln1.data[_99];
_3h1._bn1 = 1 - _Qo1 * _Ro1 * this._hn1;
_3h1._771._mH(_K41.Multiply(_Ro1, _Xn));
this._ok1++
}
},
_wo1: function (_So1) {
var _To1 = 0;
var _Uo1 = this._I81;
for (var _Vo1 = _To1; _Vo1 < _Uo1; ++_Vo1) {
var _ri1 = this._tn1[_Vo1];
var _i2 = _ri1.index;
var _gE = this._6n1.data[_i2];
_ri1._dm1 = _ao1(this._hn1 * _gE.x, this._hn1 * _gE.y)
}
this._tn1._s31(_To1, _Uo1, function (_a9, _99) {
return _oj1._Mn1._Nn1(_a9, _99)
});
this._ok1 = 0;
for (var _a9 = _To1, _j2 = _To1; _a9 < _Uo1; _a9++) {
var _Wo1 = _bo1(this._tn1[_a9]._dm1, 1, 0);
for (var _99 = _a9 + 1; _99 < _Uo1; _99++) {
if (_Wo1 < this._tn1[_99]._dm1) break;
this._Gk1(this._tn1[_a9].index, this._tn1[_99].index)
}
var _Xo1 = _bo1(this._tn1[_a9]._dm1,
-1, 1);
for (; _j2 < _Uo1; _j2++) {
if (_Xo1 <= this._tn1[_j2]._dm1) break
}
var _Yo1 = _bo1(this._tn1[_a9]._dm1, 1, 1);
for (var _99 = _j2; _99 < _Uo1; _99++) {
if (_Yo1 < this._tn1[_99]._dm1) break;
this._Gk1(this._tn1[_a9].index, this._tn1[_99].index)
}
}
if (_So1) {
this._ok1 = this._Kl1._w31(_eo1, this._ok1)
}
},
_Zo1: function () {
var _171 = new _vb1();
_171._j71.x = +_Y31;
_171._j71.y = +_Y31;
_171._k71.x = -_Y31;
_171._k71.y = -_Y31;
for (var _i2 = 0; _i2 < this._F71; _i2++) {
var _gE = this._6n1.data[_i2];
_171._j71._mH(_861(_171._j71, _gE));
_171._k71._mH(_a61(_171._k71,
_gE))
}
_171._j71.x -= this._gn1;
_171._j71.y -= this._gn1;
_171._k71.x += this._gn1;
_171._k71.y += this._gn1;
this._Pl1 = 0;
function __o1(_Ul1) {
this._Qm1 = _Ul1
}
__o1.prototype = {
_Ni1: function (_8S) {
if (_8S._ji1()) {
return !0
}
var _f71 = _8S._hi1();
var _99 = _8S._oi1();
var _6k1 = _99._ch1();
var _0p1 = _99._oh1();
var _1p1 = _99._ph1() - _0p1 * _99._dh1()._S41();
var _2p1 = _0p1 > 0 ? 1 / _0p1 : 0;
var _3p1 = _1p1 > 0 ? 1 / _1p1 : 0;
var _qi1 = _f71._X61();
for (var __61 = 0; __61 < _qi1; __61++) {
var _171 = _8S._pi1(__61)._X7();
_171._j71.x -= this._Qm1._gn1;
_171._j71.y -= this._Qm1._gn1;
_171._k71.x += this._Qm1._gn1;
_171._k71.y += this._Qm1._gn1;
var _To1 = 0;
var _Uo1 = this._Qm1._I81;
var _4p1 = this._Qm1._tn1._y31(_To1, _Uo1, _ao1(this._Qm1._hn1 * _171._j71.x, this._Qm1._hn1 * _171._j71.y), function (_a9, _99) {
return _oj1._Mn1._Pn1(_a9, _99)
});
var _5p1 = this._Qm1._tn1._B31(_4p1, _Uo1, _ao1(this._Qm1._hn1 * _171._k71.x, this._Qm1._hn1 * _171._k71.y), function (_a9, _99) {
return _oj1._Mn1._On1(_a9, _99)
});
for (var _ri1 = _4p1; _ri1 != _5p1; ++_ri1) {
var _6p1 = this._Qm1._tn1[_ri1];
var _a9 = _6p1.index;
var _7p1 = this._Qm1._6n1.data[_a9];
if (_171._j71.x <= _7p1.x && _7p1.x <= _171._k71.x && _171._j71.y <= _7p1.y && _7p1.y <= _171._k71.y) {
var _Xn = [0];
var _3b = new _K41();
_8S._571(_7p1, _Xn, _3b, __61);
if (_Xn[0] < this._Qm1._gn1) {
var _8p1 = this._Qm1._ln1.data[_a9] & _Am1._Dm1 ? 0 : this._Qm1._9p1();
var _ap1 = _K41._R41(_7p1, _6k1);
var _bp1 = _H51(_ap1, _3b);
if (this._Qm1._Pl1 >= this._Qm1._un1) {
var _ho1 = this._Qm1._un1;
var _io1 = this._Qm1._Pl1 ? 2 * this._Qm1._Pl1 : _r41;
this._Qm1._Nl1 = this._Qm1._fo1(this._Qm1._Nl1, _ho1, _io1);
this._Qm1._un1 = _io1
}
var _3h1 = this._Qm1._Nl1[this._Qm1._Pl1] = new _cn1();
_3h1.index = _a9;
_3h1.body = _99;
_3h1._bn1 = 1 - _Xn[0] * this._Qm1._hn1;
_3h1._771._mH(_3b._O41());
_3h1._S61 = 1 / (_8p1 + _2p1 + _3p1 * _bp1 * _bp1);
this._Qm1._Pl1++
}
}
}
}
return !0
},
_Oi1: function (_i2) {
return !1
}
};
var _291 = new __o1(this);
this._lg1._8k1(_291, _171)
},
_851: function (_z31) {
++this._Vm1;
if (this._F71 == 0) {
return
}
this._dn1 = 0;
for (var _i2 = 0; _i2 < this._F71; _i2++) {
this._dn1 |= this._ln1.data[_i2]
}
if (this._dn1 & _Am1._Cm1) {
this._cp1()
}
this._en1 = 0;
for (var _RX = this._An1; _RX; _RX = _RX._Yh1()) {
this._en1 |= _RX._Tm1
}
var _pz = _K41.Multiply(_z31._Ri1 * this._wg1,
this._lg1._qk1());
var _dp1 = this._ep1(_z31);
for (var _i2 = 0; _i2 < this._F71; _i2++) {
var _O9 = this._7n1.data[_i2];
_O9._Vj(_pz);
var _Q9 = _G51(_O9, _O9);
if (_Q9 > _dp1) {
_O9.Multiply(_H41(_dp1 / _Q9))
}
}
this._fp1(_z31);
if (this._en1 & _Pm1._9n1) {
this._gp1(_z31)
}
if (this._dn1 & _Am1._Dm1) {
this._hp1(_z31)
}
for (var _i2 = 0; _i2 < this._F71; _i2++) {
this._6n1.data[_i2]._Vj(_K41.Multiply(_z31._Ri1, this._7n1.data[_i2]))
}
this._Zo1();
this._wo1(!1);
if (this._dn1 & _Am1._Gm1) {
this._ip1(_z31)
}
if (this._dn1 & _Am1._Hm1) {
this._jp1(_z31)
}
if (this._dn1 & _Am1._Im1) {
this._kp1(_z31)
}
if (this._dn1 & _Am1._Fm1) {
this._lp1(_z31)
}
if (this._dn1 & _Am1._Em1) {
this._mp1(_z31)
}
if (this._en1 & _Pm1._8n1) {
this._np1(_z31)
}
if (this._dn1 & _Am1._Jm1) {
this._op1(_z31)
}
this._pp1(_z31);
this._qp1(_z31)
},
_fp1: function (_z31) {
var _171 = new _vb1();
_171._j71.x = +_Y31;
_171._j71.y = +_Y31;
_171._k71.x = -_Y31;
_171._k71.y = -_Y31;
for (var _i2 = 0; _i2 < this._F71; _i2++) {
var _O9 = this._7n1.data[_i2];
var __n = this._6n1.data[_i2];
var _y61 = _K41._Vj(__n, _K41.Multiply(_z31._Ri1, _O9));
_171._j71 = _861(_171._j71, _861(__n, _y61));
_171._k71 = _a61(_171._k71,
_a61(__n, _y61))
}
function _rp1(_Ul1, _z31) {
this._Qm1 = _Ul1;
this._sp1 = _z31
}
_rp1.prototype = {
_Ni1: function (_8S) {
if (_8S._ji1()) {
return !0
}
var _f71 = _8S._hi1();
var body = _8S._oi1();
var _To1 = 0;
var _Uo1 = this._Qm1._I81;
var _qi1 = _f71._X61();
for (var __61 = 0; __61 < _qi1; __61++) {
var _171 = _8S._pi1(__61)._X7();
_171._j71.x -= this._Qm1._gn1;
_171._j71.y -= this._Qm1._gn1;
_171._k71.x += this._Qm1._gn1;
_171._k71.y += this._Qm1._gn1;
var _4p1 = this._Qm1._tn1._y31(_To1, _Uo1, _ao1(this._Qm1._hn1 * _171._j71.x, this._Qm1._hn1 * _171._j71.y), function (_a9,
_99) {
return _oj1._Mn1._Pn1(_a9, _99)
});
var _5p1 = this._Qm1._tn1._B31(_4p1, _Uo1, _ao1(this._Qm1._hn1 * _171._k71.x, this._Qm1._hn1 * _171._k71.y), function (_a9, _99) {
return _oj1._Mn1._On1(_a9, _99)
});
for (var _ri1 = _4p1; _ri1 != _5p1; ++_ri1) {
var _6p1 = this._Qm1._tn1[_ri1];
var _a9 = _6p1.index;
var _7p1 = this._Qm1._6n1.data[_a9];
if (_171._j71.x <= _7p1.x && _7p1.x <= _171._k71.x && _171._j71.y <= _7p1.y && _7p1.y <= _171._k71.y) {
var _tp1 = this._Qm1._7n1.data[_a9];
var _cC = new _ub1();
var _aC = new _tb1();
_aC.__n = _X51(body._hd1, _Z51(body._mg1, _7p1));
_aC._y61 = _K41._Vj(_7p1, _K41.Multiply(this._sp1._Ri1, _tp1));
_aC._h71 = 1;
if (_8S._Z61(_cC, _aC, __61)) {
var _gE = _K41._Vj(_K41._Vj(_K41.Multiply((1 - _cC._i71), _aC.__n), _K41.Multiply(_cC._i71, _aC._y61)), _K41.Multiply(_441, _cC._771));
var _O9 = _K41.Multiply(this._sp1._Si1, _K41._R41(_gE, _7p1));
this._Qm1._7n1.data[_a9]._mH(_O9);
var _7z = _K41.Multiply(this._Qm1._5n1(), _K41._R41(_tp1, _O9));
_7z = _K41.Multiply(_G51(_7z, _cC._771), _cC._771);
body._mh1(_7z, _gE, !0)
}
}
}
}
return !0
},
_Oi1: function (_i2) {
return !1
}
};
var _291 = new _rp1(this,
_z31);
this._lg1._8k1(_291, _171)
},
_pp1: function (_z31) {
for (var _i2 = 0; _i2 < this._F71; _i2++) {
this._nn1[_i2] = 0
}
for (var __l = 0; __l < this._Pl1; __l++) {
var _3h1 = this._Nl1[__l];
var _a9 = _3h1.index;
var _k2 = _3h1._bn1;
this._nn1[_a9] += _k2
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _k2 = _3h1._bn1;
this._nn1[_a9] += _k2;
this._nn1[_99] += _k2
}
if (this._dn1 & _oj1.__n1) {
for (var _i2 = 0; _i2 < this._F71; _i2++) {
if (this._ln1.data[_i2] & _oj1.__n1) {
this._nn1[_i2] = 0
}
}
}
var _up1 = this._Bn1 * this._vp1(_z31);
for (var _i2 = 0; _i2 < this._F71; _i2++) {
var _k2 = this._nn1[_i2];
var _l2 = _up1 * _961(0.0, _761(_k2, _o41) - _n41);
this._nn1[_i2] = _l2
}
var _wp1 = _z31._Ri1 / (this._Zg1 * this._gn1);
for (var __l = 0; __l < this._Pl1; __l++) {
var _3h1 = this._Nl1[__l];
var _a9 = _3h1.index;
var _99 = _3h1.body;
var _k2 = _3h1._bn1;
var _5b = _3h1._S61;
var _3b = _3h1._771;
var _gE = this._6n1.data[_a9];
var _l2 = this._nn1[_a9] + _up1 * _k2;
var _7z = _K41.Multiply(_wp1 * _k2 * _5b * _l2, _3b);
this._7n1.data[_a9]._R41(_K41.Multiply(this._9p1(), _7z));
_99._mh1(_7z, _gE, !0)
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _k2 = _3h1._bn1;
var _3b = _3h1._771;
var _l2 = this._nn1[_a9] + this._nn1[_99];
var _7z = _K41.Multiply(_wp1 * _k2 * _l2, _3b);
this._7n1.data[_a9]._R41(_7z);
this._7n1.data[_99]._Vj(_7z)
}
},
_qp1: function (_z31) {
var _kl1 = this._Cn1;
for (var __l = 0; __l < this._Pl1; __l++) {
var _3h1 = this._Nl1[__l];
var _a9 = _3h1.index;
var _99 = _3h1.body;
var _k2 = _3h1._bn1;
var _5b = _3h1._S61;
var _3b = _3h1._771;
var _gE = this._6n1.data[_a9];
var _O9 = _K41._R41(_99._zh1(_gE), this._7n1.data[_a9]);
var _xp1 = _G51(_O9,
_3b);
if (_xp1 < 0) {
var _7z = _K41.Multiply(_kl1 * _k2 * _5b * _xp1, _3b);
this._7n1.data[_a9]._Vj(_K41.Multiply(this._9p1(), _7z));
_99._mh1(_7z._O41(), _gE, !0)
}
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _k2 = _3h1._bn1;
var _3b = _3h1._771;
var _O9 = _K41._R41(this._7n1.data[_99], this._7n1.data[_a9]);
var _xp1 = _G51(_O9, _3b);
if (_xp1 < 0) {
var _7z = _K41.Multiply(_kl1 * _k2 * _xp1, _3b);
this._7n1.data[_a9]._Vj(_7z);
this._7n1.data[_99]._R41(_7z)
}
}
},
_hp1: function (_z31) {
for (var _i2 = 0; _i2 < this._F71; _i2++) {
if (this._ln1.data[_i2] & _Am1._Dm1) {
this._7n1.data[_i2]._L41()
}
}
},
_gp1: function (_z31) {
for (var _RX = this._An1; _RX; _RX = _RX._Yh1()) {
if (_RX._Tm1 & _Pm1._9n1) {
_RX._4n1();
var rotation = new _q51(_z31._Ri1 * _RX._tg1);
var transform = new _u51(_K41._Vj(_RX._Xm1, _K41._R41(_K41.Multiply(_z31._Ri1, _RX._sg1), _V51(rotation, _RX._Xm1))), rotation);
_RX._Ym1 = __51(transform, _RX._Ym1);
var _yp1 = new _u51();
_yp1._gE.x = _z31._Si1 * transform._gE.x;
_yp1._gE.y = _z31._Si1 * transform._gE.y;
_yp1._qC._wy = _z31._Si1 * transform._qC._wy;
_yp1._qC._j2 = _z31._Si1 * (transform._qC._j2 - 1);
for (var _i2 = _RX._Rm1; _i2 < _RX._Sm1; _i2++) {
this._7n1.data[_i2]._mH(_X51(_yp1, this._6n1.data[_i2]))
}
}
}
},
_lp1: function (_z31) {
var _zp1 = _z31._Si1 * this._Dn1;
for (var __l = 0; __l < this._wn1; __l++) {
var _Eo1 = this._yn1[__l];
if (_Eo1._121 & _Am1._Fm1) {
var _a9 = _Eo1._q91;
var _99 = _Eo1._r91;
var _j2 = _Eo1._Sn1;
var _xo1 = _Eo1._Tn1;
var _Ap1 = _Eo1._Un1;
var _Bp1 = _Eo1._ym1;
var _Tn1 = this._6n1.data[_a9];
var _Un1 = this._6n1.data[_99];
var _ym1 = this._6n1.data[_j2];
var _gE = _K41.Multiply(1 / 3, _K41._Vj(_Tn1, _K41._Vj(_Un1, _ym1)));
var _79 = new _q51();
_79._wy = _H51(_xo1,
_Tn1) + _H51(_Ap1, _Un1) + _H51(_Bp1, _ym1);
_79._j2 = _G51(_xo1, _Tn1) + _G51(_Ap1, _Un1) + _G51(_Bp1, _ym1);
var _iB = _79._wy * _79._wy + _79._j2 * _79._j2;
var _Cp1 = _J41(_iB);
_79._wy *= _Cp1;
_79._j2 *= _Cp1;
var _Nm1 = _zp1 * _Eo1._Nm1;
this._7n1.data[_a9]._Vj(_K41.Multiply(_Nm1, (_K41._R41(_K41.Multiply(_xo1, _79), (_K41._R41(_Tn1, _gE))))));
this._7n1.data[_99]._Vj(_K41.Multiply(_Nm1, (_K41._R41(_K41.Multiply(_Ap1, _79), (_K41._R41(_Un1, _gE))))));
this._7n1.data[_j2]._Vj(_K41.Multiply(_Nm1, (_K41._R41(_K41.Multiply(_Bp1, _79), (_K41._R41(_ym1,
_gE))))))
}
}
},
_mp1: function (_z31) {
var _Dp1 = _z31._Si1 * this._En1;
for (var __l = 0; __l < this._J81; __l++) {
var _a91 = this._K81[__l];
if (_a91._121 & _Am1._Em1) {
var _a9 = _a91._q91;
var _99 = _a91._r91;
var _Xn = _K41._R41(this._6n1.data[_99], this._6n1.data[_a9]);
var _Ep1 = _a91._671;
var _hB = _Xn.Length();
var _Nm1 = _Dp1 * _a91._Nm1;
var _7z = _K41.Multiply(_Nm1 * (_Ep1 - _hB) / _hB, _Xn);
this._7n1.data[_a9]._R41(_7z);
this._7n1.data[_99]._Vj(_7z)
}
}
},
_kp1: function (_z31) {
this._on1 = this._no1(this._on1);
for (var _i2 = 0; _i2 < this._F71; _i2++) {
this._nn1[_i2] = 0;
this._on1[_i2] = new _K41()
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
if (_3h1._121 & _Am1._Im1) {
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _k2 = _3h1._bn1;
var _3b = _3h1._771;
this._nn1[_a9] += _k2;
this._nn1[_99] += _k2;
this._on1[_a9]._R41(_K41.Multiply((1 - _k2) * _k2, _3b));
this._on1[_99]._Vj(_K41.Multiply((1 - _k2) * _k2, _3b))
}
}
var _Fp1 = this._Gn1 * this._Gp1(_z31);
var _Hp1 = this._Hn1 * this._Gp1(_z31);
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
if (_3h1._121 & _Am1._Im1) {
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _k2 = _3h1._bn1;
var _3b = _3h1._771;
var _l2 = this._nn1[_a9] + this._nn1[_99];
var _wy = _K41._R41(this._on1[_99], this._on1[_a9]);
var _Ip1 = (_Fp1 * (_l2 - 2) + _Hp1 * _G51(_wy, _3b)) * _k2;
var _7z = _K41.Multiply(_Ip1, _3b);
this._7n1.data[_a9]._R41(_7z);
this._7n1.data[_99]._Vj(_7z)
}
}
},
_ip1: function (_z31) {
var _Jp1 = this._Fn1;
for (var __l = 0; __l < this._Pl1; __l++) {
var _3h1 = this._Nl1[__l];
var _a9 = _3h1.index;
if (this._ln1.data[_a9] & _Am1._Gm1) {
var _99 = _3h1.body;
var _k2 = _3h1._bn1;
var _5b = _3h1._S61;
var _gE = this._6n1.data[_a9];
var _O9 = _K41._R41(_99._zh1(_gE),
this._7n1.data[_a9]);
var _7z = _K41.Multiply(_Jp1 * _5b * _k2, _O9);
this._7n1.data[_a9]._Vj(_K41.Multiply(this._9p1(), _7z));
_99._mh1(_7z._O41(), _gE, !0)
}
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
if (_3h1._121 & _Am1._Gm1) {
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _k2 = _3h1._bn1;
var _O9 = _K41._R41(this._7n1.data[_99], this._7n1.data[_a9]);
var _7z = _K41.Multiply(_Jp1 * _k2, _O9);
this._7n1.data[_a9]._Vj(_7z);
this._7n1.data[_99]._R41(_7z)
}
}
},
_jp1: function (_z31) {
var _Kp1 = this._In1 * this._Gp1(_z31);
var _Lp1 = 1.0 - _m41;
for (var __l = 0; __l < this._Pl1; __l++) {
var _3h1 = this._Nl1[__l];
var _a9 = _3h1.index;
if (this._ln1.data[_a9] & _Am1._Hm1) {
var _k2 = _3h1._bn1;
if (_k2 > _Lp1) {
var _99 = _3h1.body;
var _5b = _3h1._S61;
var _gE = this._6n1.data[_a9];
var _3b = _3h1._771;
var _7z = _K41.Multiply(_Kp1 * _5b * (_k2 - _Lp1), _3b);
this._7n1.data[_a9]._R41(_K41.Multiply(this._9p1(), _7z));
_99._mh1(_7z, _gE, !0)
}
}
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
if (_3h1._121 & _Am1._Hm1) {
var _k2 = _3h1._bn1;
if (_k2 > _Lp1) {
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _3b = _3h1._771;
var _7z = _K41.Multiply(_Kp1 * (_k2 - _Lp1), _3b);
this._7n1.data[_a9]._R41(_7z);
this._7n1.data[_99]._Vj(_7z)
}
}
}
},
_np1: function (_z31) {
this._pn1 = this._no1(this._pn1);
var _Mp1 = _z31._Si1 * this._Jn1;
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
if (this._qn1[_a9] != this._qn1[_99]) {
var _k2 = _3h1._bn1;
var _3b = _3h1._771;
var _l2 = this._pn1[_a9] + this._pn1[_99];
var _7z = _K41.Multiply(_Mp1 * _l2 * _k2, _3b);
this._7n1.data[_a9]._R41(_7z);
this._7n1.data[_99]._Vj(_7z)
}
}
},
_op1: function (_z31) {
this._Yl1.data = this._no1(this._Yl1.data);
var _Np1 = Math.floor(256 * this._Kn1);
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
if (this._ln1.data[_a9] & this._ln1.data[_99] & _Am1._Jm1) {
var _Op1 = this._Yl1.data[_a9];
var _Pp1 = this._Yl1.data[_99];
var _Qp1 = (_Np1 * (_Pp1._79 - _Op1._79)) >> 8;
var _Rp1 = (_Np1 * (_Pp1._89 - _Op1._89)) >> 8;
var _Sp1 = (_Np1 * (_Pp1._99 - _Op1._99)) >> 8;
var _Tp1 = (_Np1 * (_Pp1._a9 - _Op1._a9)) >> 8;
_Op1._79 += _Qp1;
_Op1._89 += _Rp1;
_Op1._99 += _Sp1;
_Op1._a9 += _Tp1;
_Pp1._79 -= _Qp1;
_Pp1._89 -= _Rp1;
_Pp1._99 -= _Sp1;
_Pp1._a9 -= _Tp1
}
}
},
_cp1: function () {
var _Up1 = 0;
var _Vp1 = new Array(this._F71);
for (var _i2 = 0; _i2 < this._F71; _i2++) {
var _121 = this._ln1.data[_i2];
if (_121 & _Am1._Cm1) {
var _Wp1 = this._lg1._7j1;
if ((_121 & _Am1._Km1) && _Wp1) {
_Wp1._yi1(_i2)
}
_Vp1[_i2] = _l41
} else {
_Vp1[_i2] = _Up1;
if (_i2 != _Up1) {
this._ln1.data[_Up1] = this._ln1.data[_i2];
this._6n1.data[_Up1] = this._6n1.data[_i2];
this._7n1.data[_Up1] = this._7n1.data[_i2];
this._qn1[_Up1] = this._qn1[_i2];
if (this._pn1) {
this._pn1[_Up1] = this._pn1[_i2]
}
if (this._Yl1.data) {
this._Yl1.data[_Up1] = this._Yl1.data[_i2]
}
if (this._rn1.data) {
this._rn1.data[_Up1] = this._rn1.data[_i2]
}
}
_Up1++
}
}
var _Xp1 = {
_Yp1: function (_ri1) {
return _ri1.index < 0
},
_Zp1: function (_3h1) {
return _3h1._q91 < 0 || _3h1._r91 < 0
},
__p1: function (_3h1) {
return _3h1.index < 0
},
_0q1: function (_a91) {
return _a91._q91 < 0 || _a91._r91 < 0
},
_1q1: function (_Eo1) {
return _Eo1._q91 < 0 || _Eo1._r91 < 0 || _Eo1._Sn1 < 0;
}
};
for (var __l = 0; __l < this._I81; __l++) {
var _ri1 = this._tn1[__l];
_ri1.index = _Vp1[_ri1.index]
}
if (this._tn1) {
this._I81 = this._tn1._w31(_Xp1._Yp1,
this._I81)
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
_3h1._q91 = _Vp1[_3h1._q91];
_3h1._r91 = _Vp1[_3h1._r91]
}
if (this._Kl1) {
this._ok1 = this._Kl1._w31(_Xp1._Zp1, this._ok1)
}
for (var __l = 0; __l < this._Pl1; __l++) {
var _3h1 = this._Nl1[__l];
_3h1.index = _Vp1[_3h1.index]
}
if (this._Nl1) {
this._Pl1 = this._Nl1._w31(_Xp1.__p1, this._Pl1)
}
for (var __l = 0; __l < this._J81; __l++) {
var _a91 = this._K81[__l];
_a91._q91 = _Vp1[_a91._q91];
_a91._r91 = _Vp1[_a91._r91]
}
if (this._K81) {
this._J81 = this._K81._w31(_Xp1._0q1, this._J81)
}
for (var __l = 0; __l < this._wn1; __l++) {
var _Eo1 = this._yn1[__l];
_Eo1._q91 = _Vp1[_Eo1._q91];
_Eo1._r91 = _Vp1[_Eo1._r91];
_Eo1._Sn1 = _Vp1[_Eo1._Sn1]
}
if (this._yn1) {
this._wn1 = this._yn1._w31(_Xp1._1q1, this._wn1)
}
for (var _RX = this._An1; _RX; _RX = _RX._Yh1()) {
var _to1 = _Up1;
var lastIndex = 0;
var _2q1 = !1;
for (var _i2 = _RX._Rm1; _i2 < _RX._Sm1; _i2++) {
var _nb = _Vp1[_i2];
if (_nb >= 0) {
_to1 = _761(_to1, _nb);
lastIndex = _961(lastIndex, _nb + 1)
} else {
_2q1 = !0
}
}
if (_to1 < lastIndex) {
_RX._Rm1 = _to1;
_RX._Sm1 = lastIndex;
if (_2q1) {
if (_RX._Tm1 & _Pm1._9n1) {
_RX._0n1 = !0
}
}
} else {
_RX._Rm1 = 0;
_RX._Sm1 = 0;
if (_RX._Zm1) {
_RX.__m1 = !0
}
}
}
this._F71 = _Up1;
for (var _RX = this._An1; _RX;) {
var _3m = _RX._Yh1();
if (_RX.__m1) {
this._Jo1(_RX)
}
_RX = _3m
}
},
_Ho1: function (start, _3q1, end) {
if (start == _3q1 || _3q1 == end) {
return
}
function _Vp1(_i2) {
if (_i2 < start) {
return _i2
} else if (_i2 < _3q1) {
return _i2 + end - _3q1
} else if (_i2 < end) {
return _i2 + start - _3q1
} else {
return _i2
}
}
this._ln1.data.rotate(start, _3q1, end);
this._6n1.data.rotate(start, _3q1, end);
this._7n1.data.rotate(start, _3q1, end);
this._qn1.rotate(start, _3q1, end);
if (this._pn1) {
this._pn1.rotate(start,
_3q1, end)
}
if (this._Yl1.data) {
this._Yl1.data.rotate(start, _3q1, end)
}
if (this._rn1.data) {
this._rn1.data.rotate(start, _3q1, end)
}
for (var __l = 0; __l < this._I81; __l++) {
var _ri1 = this._tn1[__l];
_ri1.index = _Vp1(_ri1.index)
}
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
_3h1._q91 = _Vp1(_3h1._q91);
_3h1._r91 = _Vp1(_3h1._r91)
}
for (var __l = 0; __l < this._Pl1; __l++) {
var _3h1 = this._Nl1[__l];
_3h1.index = _Vp1(_3h1.index)
}
for (var __l = 0; __l < this._J81; __l++) {
var _a91 = this._K81[__l];
_a91._q91 = _Vp1(_a91._q91);
_a91._r91 = _Vp1(_a91._r91)
}
for (var __l = 0; __l < this._wn1; __l++) {
var _Eo1 = this._yn1[__l];
_Eo1._q91 = _Vp1(_Eo1._q91);
_Eo1._r91 = _Vp1(_Eo1._r91);
_Eo1._Sn1 = _Vp1(_Eo1._Sn1)
}
for (var _RX = this._An1; _RX; _RX = _RX._Yh1()) {
_RX._Rm1 = _Vp1(_RX._Rm1);
_RX._Sm1 = _Vp1(_RX._Sm1 - 1) + 1
}
},
_ml1: function (_v61) {
this._gn1 = 2 * _v61;
this._in1 = this._gn1 * this._gn1;
this._hn1 = 1 / this._gn1
},
_fl1: function (_471) {
this._Zg1 = _471;
this._fn1 = 1 / this._Zg1
},
_gl1: function () {
return this._Zg1
},
_hl1: function (_bg1) {
this._wg1 = _bg1
},
_il1: function () {
return this._wg1
},
_jl1: function (_kl1) {
this._Cn1 = _kl1
},
_ll1: function () {
return this._Cn1
},
_nl1: function () {
return this._gn1 / 2
},
_Gp1: function (_z31) {
return this._gn1 * _z31._Si1
},
_ep1: function (_z31) {
var _XU = this._Gp1(_z31);
return _XU * _XU
},
_vp1: function (_z31) {
return this._Zg1 * this._ep1(_z31)
},
_so1: function () {
return _m41 * this._gn1
},
_5n1: function () {
var _Oe = this._so1();
return this._Zg1 * _Oe * _Oe;
},
_9p1: function () {
return 1.777777 * this._fn1 * this._hn1 * this._hn1
},
_xl1: function () {
return this._ln1.data
},
_yl1: function () {
return this._6n1.data
},
_zl1: function () {
return this._7n1.data
},
_Al1: function () {
this._Yl1.data = this._no1(this._Yl1.data);
return this._Yl1.data
},
_Bl1: function () {
this._rn1.data = this._no1(this._rn1.data);
return this._rn1.data
},
_dl1: function () {
return this._kn1
},
_el1: function (_Jc) {
_W31(this._F71 <= _Jc);
this._kn1 = _Jc
},
_Cl1: function () {
return this._qn1
},
_4q1: function (buffer, _5q1, _io1) {
_W31((_5q1 && _io1) || (!_5q1 && !_io1));
buffer.data = _5q1;
buffer._Ln1 = _io1
},
_Dl1: function (buffer, _El1) {
this._4q1(this._ln1, buffer, _El1)
},
_Fl1: function (buffer, _El1) {
this._4q1(this._6n1, buffer, _El1)
},
_Gl1: function (buffer, _El1) {
this._4q1(this._7n1, buffer, _El1)
},
_Hl1: function (buffer, _El1) {
this._4q1(this._Yl1, buffer, _El1)
},
_Il1: function (buffer, _El1) {
this._4q1(this._rn1, buffer, _El1)
},
_8k1: function (_291, _171) {
if (this._I81 == 0) {
return
}
var _To1 = 0;
var _Uo1 = this._I81;
var _4p1 = this._tn1._y31(_To1, _Uo1, _ao1(this._hn1 * _171._j71.x, this._hn1 * _171._j71.y), function (_a9, _99) {
return _oj1._Mn1._Pn1(_a9, _99)
});
var _5p1 = this._tn1._B31(_4p1, _Uo1, _ao1(this._hn1 * _171._k71.x, this._hn1 * _171._k71.y), function (_a9, _99) {
return _oj1._Mn1._On1(_a9,
_99)
});
for (var _ri1 = _4p1; _ri1 < _5p1; ++_ri1) {
var _6p1 = this._tn1[_ri1];
var _i2 = _6p1.index;
var _gE = this._6n1.data[_i2];
if (_171._j71.x < _gE.x && _gE.x < _171._k71.x && _171._j71.y < _gE.y && _gE.y < _171._k71.y) {
if (!_291._Oi1(_i2)) {
break
}
}
}
},
_Z61: function (_291, _ak1, _bk1) {
if (this._I81 == 0) {
return
}
var _To1 = 0;
var _Uo1 = this._I81;
var _4p1 = this._tn1._y31(_To1, _Uo1, _ao1(this._hn1 * _761(_ak1.x, _bk1.x) - 1, this._hn1 * _761(_ak1.y, _bk1.y) - 1), function (_a9, _99) {
return _oj1._Mn1._Pn1(_a9, _99)
});
var _5p1 = this._tn1._B31(_To1, _Uo1, _ao1(this._hn1 * _961(_ak1.x,
_bk1.x) + 1, this._hn1 * _961(_ak1.y, _bk1.y) + 1), function (_a9, _99) {
return _oj1._Mn1._On1(_a9, _99)
});
var _i71 = 1;
var _O9 = _K41._R41(_bk1, _ak1);
var _Q9 = _G51(_O9, _O9);
for (var _ri1 = _4p1; _ri1 < _5p1; ++_ri1) {
var _6p1 = this._tn1[_ri1];
var _i2 = _6p1.index;
var _gE = _K41._R41(_ak1, this._6n1.data[_i2]);
var _6q1 = _G51(_gE, _O9);
var _y61 = _G51(_gE, _gE);
var _7q1 = _6q1 * _6q1 - _Q9 * (_y61 - this._in1);
if (_7q1 >= 0) {
var _8q1 = _H41(_7q1);
var _jb = (-_6q1 - _8q1) / _Q9;
if (_jb > _i71) {
continue
}
if (_jb < 0) {
_jb = (-_6q1 + _8q1) / _Q9;
if (_jb < 0 || _jb > _i71) {
continue
}
}
var _3b = _K41._Vj(_gE,
_K41._R41(_jb, _O9));
_3b._T41();
var _7z = _291._Oi1(_i2, _K41._Vj(_ak1, _K41.Multiply(_jb, _O9)), _3b, _jb);
_i71 = _761(_i71, _7z);
if (_i71 <= 0) {
break
}
}
}
},
_Ql1: function () {
var _9q1 = 0;
for (var __l = 0; __l < this._ok1; __l++) {
var _3h1 = this._Kl1[__l];
var _a9 = _3h1._q91;
var _99 = _3h1._r91;
var _3b = _3h1._771;
var _O9 = _K41._R41(this._7n1.data[_99], this._7n1.data[_a9]);
var _xp1 = _G51(_O9, _3b);
if (_xp1 < 0) {
_9q1 += _xp1 * _xp1
}
}
return 0.5 * this._5n1() * _9q1
},
_Rl1: function () {
return this._An1
},
_Sl1: function () {
return this._zn1
},
_Tl1: function () {
return this._F71
}
};
function _aq1(_bq1, _cq1) {
return _H41(_bq1 * _cq1)
}
function _dq1(_eq1, _fq1) {
return _eq1 > _fq1 ? _eq1 : _fq1
}
function _gq1() {
this._Rf1 = null;
this._hq1 = !1
};
function _iq1() {
this._wb1 = null;
this._3h1 = null;
this._Nj1 = null;
this._3m = null
};
function _uk1() {
this._jq1 = new _iq1();
this._kq1 = new _iq1();
this._lq1 = new _Ta1()
}
_uk1._mq1 = new _Ta1();
_uk1.prototype = {
_Tg1: function (_Nk1, _q91, _Ok1, _r91) {
this._Kk1 = 0;
this._fg1 = _uk1._nq1;
this._Dk1 = _Nk1 || null;
this._Fk1 = _Ok1 || null;
this._oq1 = _q91 || 0;
this._pq1 = _r91 || 0;
this._lq1._Wa1 = 0;
this._qg1 = null;
this._rg1 = null;
this._jq1._3h1 = null;
this._jq1._Nj1 = null;
this._jq1._3m = null;
this._jq1._wb1 = null;
this._kq1._3h1 = null;
this._kq1._Nj1 = null;
this._kq1._3m = null;
this._kq1._wb1 = null;
this._Jk1 = 0;
if (_Nk1) {
this._fi1 = _aq1(this._Dk1._fi1, this._Fk1._fi1);
this._gi1 = _dq1(this._Dk1._gi1, this._Fk1._gi1)
} else {
this._fi1 = 0;
this._gi1 = 0
}
this._qq1 = 0.0
},
_rq1: function () {
return this._lq1
},
_sq1: function (_tq1) {
var _Qj1 = this._Dk1._oi1();
var _Rj1 = this._Fk1._oi1();
var _4e1 = this._Dk1._hi1();
var _5e1 = this._Fk1._hi1();
_tq1._6b1(this._lq1,
_Qj1._C51(), _4e1._V61, _Rj1._C51(), _5e1._V61)
},
_Bk1: function () {
return (this._fg1 & _uk1._uq1) == _uk1._uq1
},
_Vk1: function (_Mh1) {
if (_Mh1) {
this._fg1 |= _uk1._nq1
} else {
this._fg1 &= ~_uk1._nq1
}
},
_Ak1: function () {
return (this._fg1 & _uk1._nq1) == _uk1._nq1
},
_Yh1: function () {
return this._rg1
},
_5h1: function () {
return this._Dk1
},
_2k1: function () {
return this._oq1;
},
_7h1: function () {
return this._Fk1
},
_4k1: function () {
return this._pq1
},
_iS: function (_oz) {
this._fi1 = _oz
},
_kT: function () {
return this._fi1
},
_vq1: function () {
this._fi1 = _aq1(this._Dk1._fi1,
this._Fk1._fi1)
},
_fS: function (_9i1) {
this._gi1 = _9i1
},
_mT: function () {
return this._gi1
},
_wq1: function () {
this._gi1 = _dq1(this._Dk1._gi1, this._Fk1._gi1)
},
_xq1: function (_d3) {
this._qq1 = _d3
},
_yq1: function () {
return this._qq1
},
_Hf1: function (_Xa1, _7b1, _9b1) {},
_ni1: function () {
this._fg1 |= _uk1._zq1
},
_Aq1: null,
_ck: function (listener) {
_uk1._mq1._mH(this._lq1);
this._fg1 |= _uk1._nq1;
var _Bq1 = !1;
var _Cq1 = (this._fg1 & _uk1._uq1) == _uk1._uq1;
var _Ck1 = this._Dk1._ji1();
var _Ek1 = this._Fk1._ji1();
var _ii1 = _Ck1 || _Ek1;
var _Qj1 = this._Dk1._oi1();
var _Rj1 = this._Fk1._oi1();
var _7b1 = _Qj1._C51();
var _9b1 = _Rj1._C51();
if (_ii1) {
var _4e1 = this._Dk1._hi1();
var _5e1 = this._Fk1._hi1();
_Bq1 = _3e1(_4e1, this._oq1, _5e1, this._pq1, _7b1, _9b1);
this._lq1._Wa1 = 0
} else {
this._Hf1(this._lq1, _7b1, _9b1);
_Bq1 = this._lq1._Wa1 > 0;
for (var _i2 = 0; _i2 < this._lq1._Wa1; ++_i2) {
var _Dq1 = this._lq1._Ua1[_i2];
_Dq1._Qa1 = 0.0;
_Dq1._Ra1 = 0.0;
var _Eq1 = _Dq1.id;
for (var _nb = 0; _nb < _uk1._mq1._Wa1; ++_nb) {
var _Fq1 = _uk1._mq1._Ua1[_nb];
if (_Fq1.id._ta() == _Eq1._ta()) {
_Dq1._Qa1 = _Fq1._Qa1;
_Dq1._Ra1 = _Fq1._Ra1;
break
}
}
}
if (_Bq1 != _Cq1) {
_Qj1._wS(!0);
_Rj1._wS(!0)
}
}
if (_Bq1) {
this._fg1 |= _uk1._uq1
} else {
this._fg1 &= ~_uk1._uq1
}
if (_Cq1 == !1 && _Bq1 == !0 && listener) {
listener._Hi1(this)
}
if (_Cq1 == !0 && _Bq1 == !1 && listener) {
listener._Ii1(this)
}
if (_ii1 == !1 && _Bq1 && listener) {
listener._Ji1(this, _uk1._mq1)
}
}
};
_uk1._Jg1 = 0x0001;
_uk1._uq1 = 0x0002;
_uk1._nq1 = 0x0004;
_uk1._zq1 = 0x0008;
_uk1._Gq1 = 0x0010;
_uk1._Kg1 = 0x0020;
function _Hq1() {
this.parent.call(this)
}
_Hq1.prototype = {
_Hf1: function (_Xa1, _7b1, _9b1) {
_Lb1(_Xa1, this._Dk1._hi1(), _7b1, this._Fk1._hi1(),
_9b1)
},
_Tg1: function (_4h1, _Iq1, _6h1, _Jq1) {
this.parent.prototype._Tg1.call(this, _4h1, 0, _6h1, 0);
_W31(this._Dk1._W61() == _U61._871);
_W31(this._Fk1._W61() == _U61._871)
}
};
_Hq1._q31(_uk1);
var _Kq1 = new _p71();
function _Lq1() {
this.parent.call(this)
}
_Lq1.prototype = {
_Hf1: function (_Xa1, _7b1, _9b1) {
var _l91 = this._Dk1._hi1();
_l91._R71(_Kq1, this._oq1);
_Uc1(_Xa1, _Kq1, _7b1, this._Fk1._hi1(), _9b1)
},
_Tg1: function (_4h1, _q91, _6h1, _r91) {
this.parent.prototype._Tg1.call(this, _4h1, _q91, _6h1, _r91);
_W31(this._Dk1._W61() == _U61._b71);
_W31(this._Fk1._W61() == _U61._871)
}
};
_Lq1._q31(_uk1);
function _Mq1() {
this.parent.call(this)
}
_Mq1.prototype = {
_Hf1: function (_Xa1, _7b1, _9b1) {
var _l91 = this._Dk1._hi1();
_l91._R71(_Kq1, this._oq1);
_Vd1(_Xa1, _Kq1, _7b1, this._Fk1._hi1(), _9b1)
},
_Tg1: function (_4h1, _q91, _6h1, _r91) {
this.parent.prototype._Tg1.call(this, _4h1, _q91, _6h1, _r91);
_W31(this._Dk1._W61() == _U61._b71);
_W31(this._Fk1._W61() == _U61._a71)
}
};
_Mq1._Tg1 = function (_4h1, _q91, _6h1, _r91) {
return new _Mq1(_4h1, _q91, _6h1, _r91)
};
_Mq1._q31(_uk1);
function _Nq1() {
this.parent.call(this)
}
_Nq1.prototype = {
_Hf1: function (_Xa1, _7b1, _9b1) {
_Uc1(_Xa1, this._Dk1._hi1(), _7b1, this._Fk1._hi1(), _9b1)
},
_Tg1: function (_4h1, _q91, _6h1, _r91) {
this.parent.prototype._Tg1.call(this, _4h1, 0, _6h1, 0);
_W31(this._Dk1._W61() == _U61._971);
_W31(this._Fk1._W61() == _U61._871)
}
};
_Nq1._Tg1 = function (_4h1, _q91, _6h1, _r91) {
return new _Nq1(_4h1, _6h1)
};
_Nq1._q31(_uk1);
function _Oq1() {
this.parent.call(this)
}
_Oq1.prototype = {
_Hf1: function (_Xa1, _7b1, _9b1) {
_Vd1(_Xa1, this._Dk1._hi1(), _7b1, this._Fk1._hi1(), _9b1)
},
_Tg1: function (_4h1, _q91, _6h1, _r91) {
this.parent.prototype._Tg1.call(this, _4h1, 0, _6h1, 0);
_W31(this._Dk1._W61() == _U61._971);
_W31(this._Fk1._W61() == _U61._a71)
}
};
_Oq1._Tg1 = function (_4h1, _q91, _6h1, _r91) {
return new _Oq1(_4h1, _6h1)
};
_Oq1._q31(_uk1);
function _Pq1() {
this.parent.call(this)
}
_Pq1.prototype = {
_Hf1: function (_Xa1, _7b1, _9b1) {
_Pb1(_Xa1, this._Dk1._hi1(), _7b1, this._Fk1._hi1(), _9b1)
},
_Tg1: function (_4h1, _q91, _6h1, _r91) {
this.parent.prototype._Tg1.call(this, _4h1, 0, _6h1, 0);
_W31(this._Dk1._W61() == _U61._a71);
_W31(this._Fk1._W61() == _U61._871)
}
};
_Pq1._Tg1 = function (_4h1, _q91, _6h1, _r91) {
return new _Pq1(_4h1, _6h1)
};
_Pq1._q31(_uk1);
function _Qq1() {
this.parent.call(this)
}
_Qq1.prototype = {
_Hf1: function (_Xa1, _7b1, _9b1) {
_oc1(_Xa1, this._Dk1._hi1(), _7b1, this._Fk1._hi1(), _9b1)
},
_Tg1: function (_4h1, _q91, _6h1, _r91) {
this.parent.prototype._Tg1.call(this, _4h1, 0, _6h1, 0);
_W31(this._Dk1._W61() == _U61._a71);
_W31(this._Fk1._W61() == _U61._a71)
}
};
_Qq1._Tg1 = function (_4h1, _q91, _6h1, _r91) {
return new _Qq1(_4h1, _6h1)
};
_Qq1._q31(_uk1);
_uk1._Rq1 = function (_Rf1,
_Sq1, _Tq1) {
_W31(0 <= _Sq1 && _Sq1 < _U61._c71);
_W31(0 <= _Tq1 && _Tq1 < _U61._c71);
if (!_uk1._Uq1[_Sq1]) _uk1._Uq1[_Sq1] = [];
_uk1._Uq1[_Sq1][_Tq1] = new _gq1();
_uk1._Uq1[_Sq1][_Tq1]._Rf1 = _Rf1;
_uk1._Uq1[_Sq1][_Tq1]._hq1 = !0;
if (_Sq1 != _Tq1) {
if (!_uk1._Uq1[_Tq1]) _uk1._Uq1[_Tq1] = [];
_uk1._Uq1[_Tq1][_Sq1] = new _gq1();
_uk1._Uq1[_Tq1][_Sq1]._Rf1 = _Rf1;
_uk1._Uq1[_Tq1][_Sq1]._hq1 = !1
}
_Rf1._Vq1 = [];
_Rf1._Wq1 = 2
};
_uk1._Xq1 = function () {
_uk1._Rq1(_Hq1, _U61._871, _U61._871);
_uk1._Rq1(_Pq1, _U61._a71, _U61._871);
_uk1._Rq1(_Qq1, _U61._a71, _U61._a71);
_uk1._Rq1(_Nq1, _U61._971, _U61._871);
_uk1._Rq1(_Oq1, _U61._971, _U61._a71);
_uk1._Rq1(_Lq1, _U61._b71, _U61._871);
_uk1._Rq1(_Mq1, _U61._b71, _U61._a71)
};
_uk1._Yq1 = function (_Rf1) {
var _3h1;
if (_3h1 = _Rf1._Vq1.pop()) return _3h1;
for (var _i2 = 0; _i2 < _Rf1._Wq1 - 1; ++_i2) _Rf1._Vq1.push(new _Rf1()); {
_Rf1._Wq1 += 32
}
return new _Rf1()
};
_uk1._Tg1 = function (_4h1, _q91, _6h1, _r91) {
if (_uk1._Zq1 == !1) {
_uk1._Xq1();
_uk1._Zq1 = !0
}
var _Sq1 = _4h1._W61();
var _Tq1 = _6h1._W61();
_W31(0 <= _Sq1 && _Sq1 < _U61._c71);
_W31(0 <= _Tq1 && _Tq1 < _U61._c71);
var _Rf1 = _uk1._Uq1[_Sq1] ? _uk1._Uq1[_Sq1][_Tq1] ? _uk1._Uq1[_Sq1][_Tq1]._Rf1 : null : null;
if (_Rf1) {
var _3h1 = _uk1._Yq1(_Rf1);
if (_uk1._Uq1[_Sq1][_Tq1]._hq1) _3h1._Tg1(_4h1, _q91, _6h1, _r91);
else _3h1._Tg1(_6h1, _r91, _4h1, _q91);
return _3h1
}
return null
};
_uk1._8h1 = function (_3h1) {
_W31(_uk1._Zq1 == !0);
var _4h1 = _3h1._Dk1;
var _6h1 = _3h1._Fk1;
if (_3h1._lq1._Wa1 > 0 && _4h1._ji1() == !1 && _6h1._ji1() == !1) {
_4h1._oi1()._wS(!0);
_6h1._oi1()._wS(!0)
}
var _Ka1 = _4h1._W61();
var _La1 = _6h1._W61();
_W31(0 <= _Ka1 && _La1 < _U61._c71);
_W31(0 <= _Ka1 && _La1 < _U61._c71);
_uk1._Uq1[_Ka1][_La1]._Rf1._Vq1.push(_3h1)
};
_uk1._Uq1 = [];
_uk1._Zq1 = !1;
var __q1 = new _zi1();
var _0r1 = new _Gi1();
function _6j1() {
this._Wg1 = new _E81();
this._pg1 = null;
this._ok1 = 0;
this._yj1 = __q1;
this._Aj1 = _0r1
}
_6j1.prototype = {
_991: function (_1r1, _2r1) {
var _t91 = _1r1;
var _u91 = _2r1;
var _4h1 = _t91._8S;
var _6h1 = _u91._8S;
var _q91 = _t91.__61;
var _r91 = _u91.__61;
var _Qj1 = _4h1._oi1();
var _Rj1 = _6h1._oi1();
if (_Qj1 == _Rj1) {
return
}
var _S71 = _Rj1._Xh1();
while (_S71) {
if (_S71._wb1 == _Qj1) {
var _Nk1 = _S71._3h1._5h1();
var _Ok1 = _S71._3h1._7h1();
var _1f1 = _S71._3h1._2k1();
var _2f1 = _S71._3h1._4k1();
if (_Nk1 == _4h1 && _Ok1 == _6h1 && _1f1 == _q91 && _2f1 == _r91) {
return
}
if (_Nk1 == _6h1 && _Ok1 == _4h1 && _1f1 == _r91 && _2f1 == _q91) {
return
}
}
_S71 = _S71._3m
}
if (_Rj1._1i1(_Qj1) == !1) {
return
}
if (this._yj1 && this._yj1._1i1(_4h1, _6h1) == !1) {
return
}
var _j2 = _uk1._Tg1(_4h1, _q91, _6h1, _r91);
if (_j2 == null) {
return
}
_4h1 = _j2._5h1();
_6h1 = _j2._7h1();
_q91 = _j2._2k1();
_r91 = _j2._4k1();
_Qj1 = _4h1._oi1();
_Rj1 = _6h1._oi1();
_j2._qg1 = null;
_j2._rg1 = this._pg1;
if (this._pg1 != null) {
this._pg1._qg1 = _j2
}
this._pg1 = _j2;
_j2._jq1._3h1 = _j2;
_j2._jq1._wb1 = _Rj1;
_j2._jq1._Nj1 = null;
_j2._jq1._3m = _Qj1._pg1;
if (_Qj1._pg1 != null) {
_Qj1._pg1._Nj1 = _j2._jq1
}
_Qj1._pg1 = _j2._jq1;
_j2._kq1._3h1 = _j2;
_j2._kq1._wb1 = _Qj1;
_j2._kq1._Nj1 = null;
_j2._kq1._3m = _Rj1._pg1;
if (_Rj1._pg1 != null) {
_Rj1._pg1._Nj1 = _j2._kq1
}
_Rj1._pg1 = _j2._kq1;
if (_4h1._ji1() == !1 && _6h1._ji1() == !1) {
_Qj1._wS(!0);
_Rj1._wS(!0)
}++this._ok1
},
_Uj1: function () {
this._Wg1._191(this)
},
_8h1: function (_j2) {
var _4h1 = _j2._5h1();
var _6h1 = _j2._7h1();
var _Qj1 = _4h1._oi1();
var _Rj1 = _6h1._oi1();
if (this._Aj1 && _j2._Bk1()) {
this._Aj1._Ii1(_j2)
}
if (_j2._qg1) {
_j2._qg1._rg1 = _j2._rg1
}
if (_j2._rg1) {
_j2._rg1._qg1 = _j2._qg1
}
if (_j2 == this._pg1) {
this._pg1 = _j2._rg1
}
if (_j2._jq1._Nj1) {
_j2._jq1._Nj1._3m = _j2._jq1._3m
}
if (_j2._jq1._3m) {
_j2._jq1._3m._Nj1 = _j2._jq1._Nj1
}
if (_j2._jq1 == _Qj1._pg1) {
_Qj1._pg1 = _j2._jq1._3m
}
if (_j2._kq1._Nj1) {
_j2._kq1._Nj1._3m = _j2._kq1._3m
}
if (_j2._kq1._3m) {
_j2._kq1._3m._Nj1 = _j2._kq1._Nj1
}
if (_j2._kq1 == _Rj1._pg1) {
_Rj1._pg1 = _j2._kq1._3m;
}
_uk1._8h1(_j2);
--this._ok1
},
_zd1: function () {
var _j2 = this._pg1;
while (_j2) {
var _4h1 = _j2._5h1();
var _6h1 = _j2._7h1();
var _q91 = _j2._2k1();
var _r91 = _j2._4k1();
var _Qj1 = _4h1._oi1();
var _Rj1 = _6h1._oi1();
if (_j2._fg1 & _uk1._zq1) {
if (_Rj1._1i1(_Qj1) == !1) {
var _3r1 = _j2;
_j2 = _3r1._Yh1();
this._8h1(_3r1);
continue
}
if (this._yj1 && this._yj1._1i1(_4h1, _6h1) == !1) {
var _3r1 = _j2;
_j2 = _3r1._Yh1();
this._8h1(_3r1);
continue
}
_j2._fg1 &= ~_uk1._zq1
}
var _Rk1 = _Qj1._Qh1() && _Qj1._VH != _1g1._2g1;
var _Sk1 = _Rj1._Qh1() && _Rj1._VH != _1g1._2g1;
if (_Rk1 == !1 && _Sk1 == !1) {
_j2 = _j2._Yh1();
continue
}
var _z81 = _4h1._Kh1[_q91]._P81;
var _A81 = _6h1._Kh1[_r91]._P81;
var _4r1 = this._Wg1._iT(_z81, _A81);
if (_4r1 == !1) {
var _3r1 = _j2;
_j2 = _3r1._Yh1();
this._8h1(_3r1);
continue
}
_j2._ck(this._Aj1);
_j2 = _j2._Yh1()
}
}
};
function _5r1() {
this._Ga1 = new _K41();
this._Ha1 = new _K41();
this._Qa1 = 0;
this._Ra1 = 0;
this._6r1 = 0;
this._7r1 = 0;
this._8r1 = 0
}
function _9r1() {
this._ar1 = new Array(_041);
this._Va1 = new _K41();
this._Pa1 = new _K41();
this._q91 = 0;
this._r91 = 0;
this._br1 = 0, this._cr1 = 0;
this._dr1 = new _K41(), this._er1 = new _K41();
this._fr1 = 0, this._gr1 = 0;
this.type = 0;
this._8b1 = 0, this._ab1 = 0;
this._Wa1 = 0
};
function _hr1() {
this._Ua1 = new Array(_041);
for (var _i2 = 0; _i2 < this._Ua1.length; ++_i2) this._Ua1[_i2] = new _5r1();
this._771 = new _K41();
this._6r1 = new _151();
this._ir1 = new _151();
this._q91 = 0;
this._r91 = 0;
this._br1 = 0, this._cr1 = 0;
this._fr1 = 0, this._gr1 = 0;
this._oz = 0;
this._9i1 = 0;
this._jr1 = 0;
this._Wa1 = 0;
this._kr1 = 0
}
function _lr1() {
this._771 = new _K41();
this._Sa1 = new _K41();
this._Tb1 = 0
}
_lr1.prototype = {
_6b1: function (_ym1, _7b1, _9b1, index) {
_W31(_ym1._Wa1 > 0);
switch (_ym1.type) {
case _Ta1._Ya1: {
var _bb1 = (_7b1._qC._j2 * _ym1._Pa1.x - _7b1._qC._wy * _ym1._Pa1.y) + _7b1._gE.x;
var _cb1 = (_7b1._qC._wy * _ym1._Pa1.x + _7b1._qC._j2 * _ym1._Pa1.y) + _7b1._gE.y;
var _db1 = (_9b1._qC._j2 * _ym1._ar1[0].x - _9b1._qC._wy * _ym1._ar1[0].y) + _9b1._gE.x;
var _eb1 = (_9b1._qC._wy * _ym1._ar1[0].x + _9b1._qC._j2 * _ym1._ar1[0].y) + _9b1._gE.y;
this._Sa1.x = 0.5 * (_bb1 + _db1);
this._Sa1.y = 0.5 * (_cb1 + _eb1);
this._771.x = _db1 - _bb1;
this._771.y = _eb1 - _cb1;
var _mr1 = this._771.x;
var _nr1 = this._771.y;
this._771._T41();
this._Tb1 = (_mr1 * this._771.x + _nr1 * this._771.y) - _ym1._8b1 - _ym1._ab1;
}
break;
case _Ta1._Za1: {
this._771.x = _7b1._qC._j2 * _ym1._Va1.x - _7b1._qC._wy * _ym1._Va1.y;
this._771.y = _7b1._qC._wy * _ym1._Va1.x + _7b1._qC._j2 * _ym1._Va1.y;
var _jb1 = (_7b1._qC._j2 * _ym1._Pa1.x - _7b1._qC._wy * _ym1._Pa1.y) + _7b1._gE.x;
var _kb1 = (_7b1._qC._wy * _ym1._Pa1.x + _7b1._qC._j2 * _ym1._Pa1.y) + _7b1._gE.y;
var _lb1 = (_9b1._qC._j2 * _ym1._ar1[index].x - _9b1._qC._wy * _ym1._ar1[index].y) + _9b1._gE.x;
var _mb1 = (_9b1._qC._wy * _ym1._ar1[index].x + _9b1._qC._j2 * _ym1._ar1[index].y) + _9b1._gE.y;
this._Tb1 = ((_lb1 - _jb1) * this._771.x + (_mb1 - _kb1) * this._771.y) - _ym1._8b1 - _ym1._ab1;
this._Sa1.x = _lb1;
this._Sa1.y = _mb1
}
break;
case _Ta1.__a1: {
this._771.x = _9b1._qC._j2 * _ym1._Va1.x - _9b1._qC._wy * _ym1._Va1.y;
this._771.y = _9b1._qC._wy * _ym1._Va1.x + _9b1._qC._j2 * _ym1._Va1.y;
var _jb1 = (_9b1._qC._j2 * _ym1._Pa1.x - _9b1._qC._wy * _ym1._Pa1.y) + _9b1._gE.x;
var _kb1 = (_9b1._qC._wy * _ym1._Pa1.x + _9b1._qC._j2 * _ym1._Pa1.y) + _9b1._gE.y;
var _lb1 = (_7b1._qC._j2 * _ym1._ar1[index].x - _7b1._qC._wy * _ym1._ar1[index].y) + _7b1._gE.x;
var _mb1 = (_7b1._qC._wy * _ym1._ar1[index].x + _7b1._qC._j2 * _ym1._ar1[index].y) + _7b1._gE.y;
this._Tb1 = ((_lb1 - _jb1) * this._771.x + (_mb1 - _kb1) * this._771.y) - _ym1._8b1 - _ym1._ab1;
this._Sa1.x = _lb1;
this._Sa1.y = _mb1;
this._771.x = -this._771.x;
this._771.y = -this._771.y
}
break
}
}
};
function _or1() {
this._z31 = new _Qi1();
this._pr1 = null;
this._Jc = 0;
this.__i1 = null;
this._0j1 = null
}
function _qr1() {
this._rr1 = [];
this._sr1 = []
}
_qr1._tr1 = new _u51();
_qr1._ur1 = new _u51();
_qr1._vr1 = new _lr1();
_qr1.prototype = {
_OJ: function (_Og1) {
this._sp1 = _Og1._z31;
this._F71 = _Og1._Jc;
this._rr1.length = this._F71;
this._sr1.length = this._F71;
this._wr1 = _Og1.__i1;
this._xr1 = _Og1._0j1;
this._yr1 = _Og1._pr1;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _3h1 = this._yr1[_i2];
var _4h1 = _3h1._Dk1;
var _6h1 = _3h1._Fk1;
var _4e1 = _4h1._hi1();
var _5e1 = _6h1._hi1();
var _8b1 = _4e1._V61;
var _ab1 = _5e1._V61;
var _Qj1 = _4h1._oi1();
var _Rj1 = _6h1._oi1();
var _Xa1 = _3h1._rq1();
var _Wa1 = _Xa1._Wa1;
_W31(_Wa1 > 0);
var _zr1 = this._sr1[_i2] || new _hr1();
_zr1._oz = _3h1._fi1;
_zr1._9i1 = _3h1._gi1;
_zr1._jr1 = _3h1._qq1;
_zr1._q91 = _Qj1._eg1;
_zr1._r91 = _Rj1._eg1;
_zr1._br1 = _Qj1._Cg1;
_zr1._cr1 = _Rj1._Cg1;
_zr1._fr1 = _Qj1._Eg1;
_zr1._gr1 = _Rj1._Eg1;
_zr1._kr1 = _i2;
_zr1._Wa1 = _Wa1;
_zr1._ir1._L41();
_zr1._6r1._L41();
this._sr1[_i2] = _zr1;
var _ym1 = this._rr1[_i2] || new _9r1();
_ym1._q91 = _Qj1._eg1;
_ym1._r91 = _Rj1._eg1;
_ym1._br1 = _Qj1._Cg1;
_ym1._cr1 = _Rj1._Cg1;
_ym1._dr1.x = _Qj1._ng1._x51.x;
_ym1._dr1.y = _Qj1._ng1._x51.y;
_ym1._er1.x = _Rj1._ng1._x51.x;
_ym1._er1.y = _Rj1._ng1._x51.y;
_ym1._fr1 = _Qj1._Eg1;
_ym1._gr1 = _Rj1._Eg1;
_ym1._Va1.x = _Xa1._Va1.x;
_ym1._Va1.y = _Xa1._Va1.y;
_ym1._Pa1.x = _Xa1._Pa1.x;
_ym1._Pa1.y = _Xa1._Pa1.y;
_ym1._Wa1 = _Wa1;
_ym1._8b1 = _8b1;
_ym1._ab1 = _ab1;
_ym1.type = _Xa1.type;
this._rr1[_i2] = _ym1;
for (var _nb = 0; _nb < _Wa1; ++_nb) {
var _Sc1 = _Xa1._Ua1[_nb];
var _Ar1 = _zr1._Ua1[_nb];
if (this._sp1._Wi1) {
_Ar1._Qa1 = this._sp1._Ti1 * _Sc1._Qa1;
_Ar1._Ra1 = this._sp1._Ti1 * _Sc1._Ra1
} else {
_Ar1._Qa1 = 0.0;
_Ar1._Ra1 = 0.0
}
_Ar1._Ga1._L41();
_Ar1._Ha1._L41();
_Ar1._6r1 = 0.0;
_Ar1._7r1 = 0.0;
_Ar1._8r1 = 0.0;
_ym1._ar1[_nb] = _Sc1._Pa1
}
}
},
_Br1: function () {
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _zr1 = this._sr1[_i2];
var _ym1 = this._rr1[_i2];
var _8b1 = _ym1._8b1;
var _ab1 = _ym1._ab1;
var _Xa1 = this._yr1[_zr1._kr1]._rq1();
var _q91 = _zr1._q91;
var _r91 = _zr1._r91;
var _Cr1 = _zr1._br1;
var _Dr1 = _zr1._cr1;
var _1f1 = _zr1._fr1;
var _2f1 = _zr1._gr1;
var _dr1 = _ym1._dr1;
var _er1 = _ym1._er1;
var _1k1 = this._wr1[_q91]._j2;
var _Er1 = this._wr1[_q91]._a9;
var _Fr1 = this._xr1[_q91]._O9;
var _D91 = this._xr1[_q91]._k2;
var _3k1 = this._wr1[_r91]._j2;
var _Gr1 = this._wr1[_r91]._a9;
var _Hr1 = this._xr1[_r91]._O9;
var _E91 = this._xr1[_r91]._k2;
_W31(_Xa1._Wa1 > 0);
_qr1._tr1._qC._Yl(_Er1);
_qr1._ur1._qC._Yl(_Gr1);
_qr1._tr1._gE.x = _1k1.x - (_qr1._tr1._qC._j2 * _dr1.x - _qr1._tr1._qC._wy * _dr1.y);
_qr1._tr1._gE.y = _1k1.y - (_qr1._tr1._qC._wy * _dr1.x + _qr1._tr1._qC._j2 * _dr1.y);
_qr1._ur1._gE.x = _3k1.x - (_qr1._ur1._qC._j2 * _er1.x - _qr1._ur1._qC._wy * _er1.y);
_qr1._ur1._gE.y = _3k1.y - (_qr1._ur1._qC._wy * _er1.x + _qr1._ur1._qC._j2 * _er1.y);
var _tq1 = new _4b1();
_tq1._6b1(_Xa1, _qr1._tr1, _8b1, _qr1._ur1, _ab1);
_zr1._771.x = _tq1._771.x;
_zr1._771.y = _tq1._771.y;
var _Wa1 = _zr1._Wa1;
for (var _nb = 0; _nb < _Wa1; ++_nb) {
var _Ar1 = _zr1._Ua1[_nb];
_Ar1._Ga1.x = _tq1._Ua1[_nb].x - _1k1.x;
_Ar1._Ga1.y = _tq1._Ua1[_nb].y - _1k1.y;
_Ar1._Ha1.x = _tq1._Ua1[_nb].x - _3k1.x;
_Ar1._Ha1.y = _tq1._Ua1[_nb].y - _3k1.y;
var _Ir1 = _Ar1._Ga1.x * _zr1._771.y - _Ar1._Ga1.y * _zr1._771.x;
var _Jr1 = _Ar1._Ha1.x * _zr1._771.y - _Ar1._Ha1.y * _zr1._771.x;
var _Kr1 = _Cr1 + _Dr1 + _1f1 * _Ir1 * _Ir1 + _2f1 * _Jr1 * _Jr1;
_Ar1._6r1 = _Kr1 > 0.0 ? 1.0 / _Kr1 : 0.0;
var _Hc1 = 1.0 * _zr1._771.y;
var _Ic1 = -1.0 * _zr1._771.x;
var _Lr1 = _Ar1._Ga1.x * _Ic1 - _Ar1._Ga1.y * _Hc1;
var _Mr1 = _Ar1._Ha1.x * _Ic1 - _Ar1._Ha1.y * _Hc1;
var _Nr1 = _Cr1 + _Dr1 + _1f1 * _Lr1 * _Lr1 + _2f1 * _Mr1 * _Mr1;
_Ar1._7r1 = _Nr1 > 0.0 ? 1.0 / _Nr1 : 0.0;
_Ar1._8r1 = 0.0;
var _Or1 = _zr1._771.x * (((_Hr1.x + (-_E91 * _Ar1._Ha1.y)) - _Fr1.x) - (-_D91 * _Ar1._Ga1.y)) + _zr1._771.y * (((_Hr1.y + (_E91 * _Ar1._Ha1.x)) - _Fr1.y) - (_D91 * _Ar1._Ga1.x));
if (_Or1 < -_941) {
_Ar1._8r1 = -_zr1._9i1 * _Or1
}
}
if (_zr1._Wa1 == 2) {
var _Pr1 = _zr1._Ua1[0];
var _Qr1 = _zr1._Ua1[1];
var _Rr1 = _Pr1._Ga1.x * _zr1._771.y - _Pr1._Ga1.y * _zr1._771.x;
var _Sr1 = _Pr1._Ha1.x * _zr1._771.y - _Pr1._Ha1.y * _zr1._771.x;
var _Tr1 = _Qr1._Ga1.x * _zr1._771.y - _Qr1._Ga1.y * _zr1._771.x;
var _Ur1 = _Qr1._Ha1.x * _zr1._771.y - _Qr1._Ha1.y * _zr1._771.x;
var _Vr1 = _Cr1 + _Dr1 + _1f1 * _Rr1 * _Rr1 + _2f1 * _Sr1 * _Sr1;
var _Wr1 = _Cr1 + _Dr1 + _1f1 * _Tr1 * _Tr1 + _2f1 * _Ur1 * _Ur1;
var _Xr1 = _Cr1 + _Dr1 + _1f1 * _Rr1 * _Tr1 + _2f1 * _Sr1 * _Ur1;
var _Yr1 = 1000.0;
if (_Vr1 * _Vr1 < _Yr1 * (_Vr1 * _Wr1 - _Xr1 * _Xr1)) {
_zr1._ir1._bB.x = _Vr1;
_zr1._ir1._bB.y = _Xr1;
_zr1._ir1._cG.x = _Xr1;
_zr1._ir1._cG.y = _Wr1;
_zr1._6r1._mH(_zr1._ir1._551())
} else {
_zr1._Wa1 = 1
}
}
}
},
_Zr1: function () {
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _zr1 = this._sr1[_i2];
var _q91 = _zr1._q91;
var _r91 = _zr1._r91;
var _Cr1 = _zr1._br1;
var _1f1 = _zr1._fr1;
var _Dr1 = _zr1._cr1;
var _2f1 = _zr1._gr1;
var _Wa1 = _zr1._Wa1;
var _Fr1 = this._xr1[_q91]._O9;
var _D91 = this._xr1[_q91]._k2;
var _Hr1 = this._xr1[_r91]._O9;
var _E91 = this._xr1[_r91]._k2;
var _771 = _zr1._771;
var _Hc1 = 1.0 * _771.y;
var _Ic1 = -1.0 * _771.x;
for (var _nb = 0; _nb < _Wa1; ++_nb) {
var _Ar1 = _zr1._Ua1[_nb];
var _5d1 = (_Ar1._Qa1 * _771.x) + (_Ar1._Ra1 * _Hc1);
var _6d1 = (_Ar1._Qa1 * _771.y) + (_Ar1._Ra1 * _Ic1);
_D91 -= _1f1 * (_Ar1._Ga1.x * _6d1 - _Ar1._Ga1.y * _5d1);
_Fr1.x -= _Cr1 * _5d1;
_Fr1.y -= _Cr1 * _6d1;
_E91 += _2f1 * (_Ar1._Ha1.x * _6d1 - _Ar1._Ha1.y * _5d1);
_Hr1.x += _Dr1 * _5d1;
_Hr1.y += _Dr1 * _6d1
}
this._xr1[_q91]._k2 = _D91;
this._xr1[_r91]._k2 = _E91
}
},
__r1: function () {
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _zr1 = this._sr1[_i2];
var _q91 = _zr1._q91;
var _r91 = _zr1._r91;
var _Cr1 = _zr1._br1;
var _1f1 = _zr1._fr1;
var _Dr1 = _zr1._cr1;
var _2f1 = _zr1._gr1;
var _Wa1 = _zr1._Wa1;
var _Fr1 = this._xr1[_q91]._O9;
var _D91 = this._xr1[_q91]._k2;
var _Hr1 = this._xr1[_r91]._O9;
var _E91 = this._xr1[_r91]._k2;
var _771 = _zr1._771;
var _Hc1 = 1.0 * _771.y;
var _Ic1 = -1.0 * _771.x;
var _oz = _zr1._oz;
_W31(_Wa1 == 1 || _Wa1 == 2);
for (var _nb = 0; _nb < _Wa1; ++_nb) {
var _Ar1 = _zr1._Ua1[_nb];
var _0s1 = _Hr1.x + (-_E91 * _Ar1._Ha1.y) - _Fr1.x - (-_D91 * _Ar1._Ga1.y);
var _1s1 = _Hr1.y + (_E91 * _Ar1._Ha1.x) - _Fr1.y - (_D91 * _Ar1._Ga1.x);
var _2s1 = (_0s1 * _Hc1 + _1s1 * _Ic1) - _zr1._jr1;
var _3s1 = _Ar1._7r1 * (-_2s1);
var _4s1 = _oz * _Ar1._Qa1;
var _5s1 = _b61(_Ar1._Ra1 + _3s1, -_4s1, _4s1);
_3s1 = _5s1 - _Ar1._Ra1;
_Ar1._Ra1 = _5s1;
var _5d1 = _3s1 * _Hc1;
var _6d1 = _3s1 * _Ic1;
_Fr1.x -= _Cr1 * _5d1;
_Fr1.y -= _Cr1 * _6d1;
_D91 -= _1f1 * (_Ar1._Ga1.x * _6d1 - _Ar1._Ga1.y * _5d1);
_Hr1.x += _Dr1 * _5d1;
_Hr1.y += _Dr1 * _6d1;
_E91 += _2f1 * (_Ar1._Ha1.x * _6d1 - _Ar1._Ha1.y * _5d1)
}
if (_zr1._Wa1 == 1) {
_Ar1 = _zr1._Ua1[0];
_0s1 = _Hr1.x + (-_E91 * _Ar1._Ha1.y) - _Fr1.x - (-_D91 * _Ar1._Ga1.y);
_1s1 = _Hr1.y + (_E91 * _Ar1._Ha1.x) - _Fr1.y - (_D91 * _Ar1._Ga1.x);
var _xp1 = _0s1 * _771.x + _1s1 * _771.y;
var _3s1 = -_Ar1._6r1 * (_xp1 - _Ar1._8r1);
var _5s1 = _961(_Ar1._Qa1 + _3s1, 0.0);
_3s1 = _5s1 - _Ar1._Qa1;
_Ar1._Qa1 = _5s1;
_5d1 = _3s1 * _771.x;
_6d1 = _3s1 * _771.y;
_Fr1.x -= _Cr1 * _5d1;
_Fr1.y -= _Cr1 * _6d1;
_D91 -= _1f1 * (_Ar1._Ga1.x * _6d1 - _Ar1._Ga1.y * _5d1);
_Hr1.x += _Dr1 * _5d1;
_Hr1.y += _Dr1 * _6d1;
_E91 += _2f1 * (_Ar1._Ha1.x * _6d1 - _Ar1._Ha1.y * _5d1)
} else {
var _6s1 = _zr1._Ua1[0];
var _7s1 = _zr1._Ua1[1];
var _5M = _6s1._Qa1;
var _6M = _7s1._Qa1;
_W31(_5M >= 0.0 && _6M >= 0.0);
var _8s1 = _Hr1.x + (-_E91 * _6s1._Ha1.y) - _Fr1.x - (-_D91 * _6s1._Ga1.y);
var _9s1 = _Hr1.y + (_E91 * _6s1._Ha1.x) - _Fr1.y - (_D91 * _6s1._Ga1.x);
var _as1 = _Hr1.x + (-_E91 * _7s1._Ha1.y) - _Fr1.x - (-_D91 * _7s1._Ga1.y);
var _bs1 = _Hr1.y + (_E91 * _7s1._Ha1.x) - _Fr1.y - (_D91 * _7s1._Ga1.x);
var _cs1 = _8s1 * _771.x + _9s1 * _771.y;
var _ds1 = _as1 * _771.x + _bs1 * _771.y;
var _om1 = _cs1 - _6s1._8r1;
var _pm1 = _ds1 - _7s1._8r1;
_om1 -= _zr1._ir1._bB.x * _5M + _zr1._ir1._cG.x * _6M;
_pm1 -= _zr1._ir1._bB.y * _5M + _zr1._ir1._cG.y * _6M;
for (;;) {
var _ob = -(_zr1._6r1._bB.x * _om1 + _zr1._6r1._cG.x * _pm1);
var _es1 = -(_zr1._6r1._bB.y * _om1 + _zr1._6r1._cG.y * _pm1);
if (_ob >= 0.0 && _es1 >= 0.0) {
var _of = _ob - _5M;
var _pf = _es1 - _6M;
var _fs1 = _of * _771.x;
var _gs1 = _of * _771.y;
var _hs1 = _pf * _771.x;
var _is1 = _pf * _771.y;
_Fr1.x -= _Cr1 * (_fs1 + _hs1);
_Fr1.y -= _Cr1 * (_gs1 + _is1);
_D91 -= _1f1 * ((_6s1._Ga1.x * _gs1 - _6s1._Ga1.y * _fs1) + (_7s1._Ga1.x * _is1 - _7s1._Ga1.y * _hs1));
_Hr1.x += _Dr1 * (_fs1 + _hs1);
_Hr1.y += _Dr1 * (_gs1 + _is1);
_E91 += _2f1 * ((_6s1._Ha1.x * _gs1 - _6s1._Ha1.y * _fs1) + (_7s1._Ha1.x * _is1 - _7s1._Ha1.y * _hs1));
_6s1._Qa1 = _ob;
_7s1._Qa1 = _es1;
break
}
_ob = -_6s1._6r1 * _om1;
_es1 = 0.0;
_cs1 = 0.0;
_ds1 = _zr1._ir1._bB.y * _ob + _pm1;
if (_ob >= 0.0 && _ds1 >= 0.0) {
_of = _ob - _5M;
_pf = _es1 - _6M;
_fs1 = _of * _771.x;
_gs1 = _of * _771.y;
_hs1 = _pf * _771.x;
_is1 = _pf * _771.y;
_Fr1.x -= _Cr1 * (_fs1 + _hs1);
_Fr1.y -= _Cr1 * (_gs1 + _is1);
_D91 -= _1f1 * ((_6s1._Ga1.x * _gs1 - _6s1._Ga1.y * _fs1) + (_7s1._Ga1.x * _is1 - _7s1._Ga1.y * _hs1));
_Hr1.x += _Dr1 * (_fs1 + _hs1);
_Hr1.y += _Dr1 * (_gs1 + _is1);
_E91 += _2f1 * ((_6s1._Ha1.x * _gs1 - _6s1._Ha1.y * _fs1) + (_7s1._Ha1.x * _is1 - _7s1._Ha1.y * _hs1));
_6s1._Qa1 = _ob;
_7s1._Qa1 = _es1;
break
}
_ob = 0.0;
_es1 = -_7s1._6r1 * _pm1;
_cs1 = _zr1._ir1._cG.x * _es1 + _om1;
_ds1 = 0.0;
if (_es1 >= 0.0 && _cs1 >= 0.0) {
_of = _ob - _5M;
_pf = _es1 - _6M;
_fs1 = _of * _771.x;
_gs1 = _of * _771.y;
_hs1 = _pf * _771.x;
_is1 = _pf * _771.y;
_Fr1.x -= _Cr1 * (_fs1 + _hs1);
_Fr1.y -= _Cr1 * (_gs1 + _is1);
_D91 -= _1f1 * ((_6s1._Ga1.x * _gs1 - _6s1._Ga1.y * _fs1) + (_7s1._Ga1.x * _is1 - _7s1._Ga1.y * _hs1));
_Hr1.x += _Dr1 * (_fs1 + _hs1);
_Hr1.y += _Dr1 * (_gs1 + _is1);
_E91 += _2f1 * ((_6s1._Ha1.x * _gs1 - _6s1._Ha1.y * _fs1) + (_7s1._Ha1.x * _is1 - _7s1._Ha1.y * _hs1));
_6s1._Qa1 = _ob;
_7s1._Qa1 = _es1;
break
}
_ob = 0.0;
_es1 = 0.0;
_cs1 = _om1;
_ds1 = _pm1;
if (_cs1 >= 0.0 && _ds1 >= 0.0) {
_of = _ob - _5M;
_pf = _es1 - _6M;
_fs1 = _of * _771.x;
_gs1 = _of * _771.y;
_hs1 = _pf * _771.x;
_is1 = _pf * _771.y;
_Fr1.x -= _Cr1 * (_fs1 + _hs1);
_Fr1.y -= _Cr1 * (_gs1 + _is1);
_D91 -= _1f1 * ((_6s1._Ga1.x * _gs1 - _6s1._Ga1.y * _fs1) + (_7s1._Ga1.x * _is1 - _7s1._Ga1.y * _hs1));
_Hr1.x += _Dr1 * (_fs1 + _hs1);
_Hr1.y += _Dr1 * (_gs1 + _is1);
_E91 += _2f1 * ((_6s1._Ha1.x * _gs1 - _6s1._Ha1.y * _fs1) + (_7s1._Ha1.x * _is1 - _7s1._Ha1.y * _hs1));
_6s1._Qa1 = _ob;
_7s1._Qa1 = _es1;
break
}
break
}
}
this._xr1[_q91]._k2 = _D91;
this._xr1[_r91]._k2 = _E91
}
},
_js1: function () {
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _zr1 = this._sr1[_i2];
var _Xa1 = this._yr1[_zr1._kr1]._rq1();
for (var _nb = 0; _nb < _zr1._Wa1; ++_nb) {
_Xa1._Ua1[_nb]._Qa1 = _zr1._Ua1[_nb]._Qa1;
_Xa1._Ua1[_nb]._Ra1 = _zr1._Ua1[_nb]._Ra1
}
}
},
_ks1: function () {
var _ls1 = 0.0;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _ym1 = this._rr1[_i2];
var _q91 = _ym1._q91;
var _r91 = _ym1._r91;
var _dr1 = _ym1._dr1;
var _Cr1 = _ym1._br1;
var _1f1 = _ym1._fr1;
var _er1 = _ym1._er1;
var _Dr1 = _ym1._cr1;
var _2f1 = _ym1._gr1;
var _Wa1 = _ym1._Wa1;
var _1k1 = this._wr1[_q91]._j2;
var _Er1 = this._wr1[_q91]._a9;
var _3k1 = this._wr1[_r91]._j2;
var _Gr1 = this._wr1[_r91]._a9;
for (var _nb = 0; _nb < _Wa1; ++_nb) {
_qr1._tr1._qC._Yl(_Er1);
_qr1._ur1._qC._Yl(_Gr1);
_qr1._tr1._gE.x = _1k1.x - (_qr1._tr1._qC._j2 * _dr1.x - _qr1._tr1._qC._wy * _dr1.y);
_qr1._tr1._gE.y = _1k1.y - (_qr1._tr1._qC._wy * _dr1.x + _qr1._tr1._qC._j2 * _dr1.y);
_qr1._ur1._gE.x = _3k1.x - (_qr1._ur1._qC._j2 * _er1.x - _qr1._ur1._qC._wy * _er1.y);
_qr1._ur1._gE.y = _3k1.y - (_qr1._ur1._qC._wy * _er1.x + _qr1._ur1._qC._j2 * _er1.y);
_qr1._vr1._6b1(_ym1, _qr1._tr1, _qr1._ur1, _nb);
var _771 = _qr1._vr1._771;
var _Sa1 = _qr1._vr1._Sa1;
var _Tb1 = _qr1._vr1._Tb1;
var _ms1 = _Sa1.x - _1k1.x;
var _ns1 = _Sa1.y - _1k1.y;
var _os1 = _Sa1.x - _3k1.x;
var _ps1 = _Sa1.y - _3k1.y;
_ls1 = _761(_ls1, _Tb1);
var _061 = _b61(_g41 * (_Tb1 + _441), -_a41, 0.0);
var _Ir1 = _ms1 * _771.y - _ns1 * _771.x;
var _Jr1 = _os1 * _771.y - _ps1 * _771.x;
var _ir1 = _Cr1 + _Dr1 + _1f1 * _Ir1 * _Ir1 + _2f1 * _Jr1 * _Jr1;
var _nh1 = _ir1 > 0.0 ? -_061 / _ir1 : 0.0;
var _5d1 = _nh1 * _771.x;
var _6d1 = _nh1 * _771.y;
_1k1.x -= _Cr1 * _5d1;
_1k1.y -= _Cr1 * _6d1;
_Er1 -= _1f1 * (_ms1 * _6d1 - _ns1 * _5d1);
_3k1.x += _Dr1 * _5d1;
_3k1.y += _Dr1 * _6d1;
_Gr1 += _2f1 * (_os1 * _6d1 - _ps1 * _5d1)
}
this._wr1[_q91]._a9 = _Er1;
this._wr1[_r91]._a9 = _Gr1
}
return _ls1 >= -3.0 * _441
},
_qs1: function (_rs1, _ss1) {
var _ls1 = 0.0;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
var _ym1 = this._rr1[_i2];
var _q91 = _ym1._q91;
var _r91 = _ym1._r91;
var _dr1 = _ym1._dr1;
var _er1 = _ym1._er1;
var _Wa1 = _ym1._Wa1;
var _Cr1 = 0.0;
var _1f1 = 0.0;
if (_q91 == _rs1 || _q91 == _ss1) {
_Cr1 = _ym1._br1;
_1f1 = _ym1._fr1
}
var _Dr1 = 0.0;
var _2f1 = 0.0;
if (_r91 == _rs1 || _r91 == _ss1) {
_Dr1 = _ym1._cr1;
_2f1 = _ym1._gr1
}
var _1k1 = this._wr1[_q91]._j2;
var _Er1 = this._wr1[_q91]._a9;
var _3k1 = this._wr1[_r91]._j2;
var _Gr1 = this._wr1[_r91]._a9;
for (var _nb = 0; _nb < _Wa1; ++_nb) {
_qr1._tr1._qC._Yl(_Er1);
_qr1._ur1._qC._Yl(_Gr1);
_qr1._tr1._gE._mH(_K41._R41(_1k1, _V51(_qr1._tr1._qC, _dr1)));
_qr1._ur1._gE._mH(_K41._R41(_3k1, _V51(_qr1._ur1._qC, _er1)));
_qr1._vr1._6b1(_ym1, _qr1._tr1, _qr1._ur1, _nb);
var _771 = _qr1._vr1._771;
var _Sa1 = _qr1._vr1._Sa1;
var _Tb1 = _qr1._vr1._Tb1;
var _Ga1 = _K41._R41(_Sa1, _1k1);
var _Ha1 = _K41._R41(_Sa1, _3k1);
_ls1 = _761(_ls1, _Tb1);
var _061 = _b61(_h41 * (_Tb1 + _441),
-_a41, 0.0);
var _Ir1 = _H51(_Ga1, _771);
var _Jr1 = _H51(_Ha1, _771);
var _ir1 = _Cr1 + _Dr1 + _1f1 * _Ir1 * _Ir1 + _2f1 * _Jr1 * _Jr1;
var _nh1 = _ir1 > 0.0 ? -_061 / _ir1 : 0.0;
var _Wc1 = _K41.Multiply(_nh1, _771);
_1k1._R41(_K41.Multiply(_Cr1, _Wc1));
_Er1 -= _1f1 * _H51(_Ga1, _Wc1);
_3k1._Vj(_K41.Multiply(_Dr1, _Wc1));
_Gr1 += _2f1 * _H51(_Ha1, _Wc1)
}
this._wr1[_q91]._a9 = _Er1;
this._wr1[_r91]._a9 = _Gr1
}
return _ls1 >= -1.5 * _441;
}
};
function _mj1() {
this._Ik1 = [];
this._yr1 = [];
this._ts1 = [];
this._xr1 = [];
this._wr1 = []
}
var _us1 = _E31._P31("solve initialization", "solve");
var _vs1 = _E31._P31("warm starting", "solve initialization");
var _ws1 = _E31._P31("solve velocities", "solve");
var _xs1 = _E31._P31("solve positions", "solve");
_mj1._ys1 = new _Zi1();
_mj1._zs1 = new _or1();
_mj1._As1 = new _qr1();
_mj1.prototype = {
_bk: function () {
this._aj1 = 0;
this._ok1 = 0;
this._bj1 = 0
},
_6b1: function (_Bs1, _Cs1, _Ds1, listener) {
this._Es1 = listener;
this._Xk1 = _Bs1;
this._Yk1 = _Cs1;
this._Fs1 = _Ds1;
this._aj1 = 0;
this._ok1 = 0;
this._bj1 = 0;
this._Ik1.length = _Bs1;
this._yr1.length = _Cs1;
this._ts1.length = _Ds1;
this._xr1.length = _Bs1;
this._wr1.length = _Bs1
},
_851: function (_z31, _pz, _7g1) {
_us1.start();
var _l2 = _z31._Ri1;
for (var _i2 = 0; _i2 < this._aj1; ++_i2) {
var _99 = this._Ik1[_i2];
this._wr1[_i2]._j2._mH(_99._ng1._j2);
var _a9 = _99._ng1._a9;
this._xr1[_i2]._O9._mH(_99._sg1);
var _k2 = _99._tg1;
_99._ng1._y51._mH(_99._ng1._j2);
_99._ng1._A51 = _99._ng1._a9;
if (_99._VH == _1g1._Ag1) {
this._xr1[_i2]._O9.x += _l2 * ((_99._wg1 * _pz.x) + (_99._Cg1 * _99._xg1.x));
this._xr1[_i2]._O9.y += _l2 * ((_99._wg1 * _pz.y) + (_99._Cg1 * _99._xg1.y));
_k2 += _l2 * _99._Eg1 * _99._yg1;
this._xr1[_i2]._O9.x *= 1.0 / (1.0 + _l2 * _99._ug1);
this._xr1[_i2]._O9.y *= 1.0 / (1.0 + _l2 * _99._ug1);
_k2 *= 1.0 / (1.0 + _l2 * _99._vg1)
}
this._wr1[_i2]._a9 = _a9;
this._xr1[_i2]._k2 = _k2
}
_mj1._ys1._z31 = _z31;
_mj1._ys1.__i1 = this._wr1;
_mj1._ys1._0j1 = this._xr1;
_mj1._zs1._z31 = _z31;
_mj1._zs1._pr1 = this._yr1;
_mj1._zs1._Jc = this._ok1;
_mj1._zs1.__i1 = this._wr1;
_mj1._zs1._0j1 = this._xr1;
_mj1._zs1._Gs1 = this._Hs1;
_mj1._As1._OJ(_mj1._zs1);
_mj1._As1._Br1();
if (_z31._Wi1) {
_vs1.start();
_mj1._As1._Zr1();
_vs1.stop()
}
for (var _i2 = 0; _i2 < this._bj1; ++_i2) {
this._ts1[_i2]._Is1(_mj1._ys1)
}
_us1.stop();
_ws1.start();
for (var _i2 = 0; _i2 < _z31._Ui1; ++_i2) {
for (var _nb = 0; _nb < this._bj1; ++_nb) {
this._ts1[_nb].__r1(_mj1._ys1)
}
_mj1._As1.__r1()
}
_mj1._As1._js1();
_ws1.stop();
_xs1.start();
for (var _i2 = 0; _i2 < this._aj1; ++_i2) {
var _j2 = this._wr1[_i2]._j2;
var _a9 = this._wr1[_i2]._a9;
var _O9 = this._xr1[_i2]._O9;
var _k2 = this._xr1[_i2]._k2;
var _Js1 = _l2 * _O9.x;
var _Ks1 = _l2 * _O9.y;
var _Ls1 = _Js1 * _Js1 + _Ks1 * _Ks1;
if (_Ls1 > _d41) {
var _Ms1 = _c41 / _H41(_Ls1);
_O9.x *= _Ms1;
_O9.y *= _Ms1
}
var rotation = _l2 * _k2;
if (rotation * rotation > _f41) {
var _Ms1 = _e41 / _461(rotation);
_k2 *= _Ms1
}
_j2.x += _l2 * _O9.x;
_j2.y += _l2 * _O9.y;
_a9 += _l2 * _k2;
this._wr1[_i2]._a9 = _a9;
this._xr1[_i2]._k2 = _k2
}
var _Ns1 = !1;
for (var _i2 = 0; _i2 < _z31._Vi1; ++_i2) {
var _Os1 = _mj1._As1._ks1();
var _Ps1 = !0;
for (var _nb = 0; _nb < this._bj1; ++_nb) {
var _Qs1 = this._ts1[_nb]._ks1(_mj1._ys1);
_Ps1 = _Ps1 && _Qs1
}
if (_Os1 && _Ps1) {
_Ns1 = !0;
break
}
}
for (var _i2 = 0; _i2 < this._aj1; ++_i2) {
var body = this._Ik1[_i2];
body._ng1._j2._mH(this._wr1[_i2]._j2);
body._ng1._a9 = this._wr1[_i2]._a9;
body._sg1._mH(this._xr1[_i2]._O9);
body._tg1 = this._xr1[_i2]._k2;
body._0i1()
}
_xs1.stop();
this._Rs1(_mj1._As1._sr1);
if (_7g1) {
var _Ss1 = _Y31;
var _Ts1 = _j41 * _j41;
var _Us1 = _k41 * _k41;
for (var _i2 = 0; _i2 < this._aj1; ++_i2) {
var _99 = this._Ik1[_i2];
if (_99._W61() == _1g1._2g1) {
continue
}
if ((_99._fg1 & _1g1._ig1) == 0 || _99._tg1 * _99._tg1 > _Us1 || _G51(_99._sg1, _99._sg1) > _Ts1) {
_99._zg1 = 0.0;
_Ss1 = 0.0
} else {
_99._zg1 += _l2;
_Ss1 = _761(_Ss1, _99._zg1)
}
}
if (_Ss1 >= _i41 && _Ns1) {
for (var _i2 = 0; _i2 < this._aj1; ++_i2) {
var _99 = this._Ik1[_i2];
_99._wS(!1)
}
}
}
},
_Wj1: function (_Zk1, _rs1, _ss1) {
_W31(_rs1 < this._aj1);
_W31(_ss1 < this._aj1);
for (var _i2 = 0; _i2 < this._aj1; ++_i2) {
var _99 = this._Ik1[_i2];
this._wr1[_i2]._j2._mH(_99._ng1._j2);
this._wr1[_i2]._a9 = _99._ng1._a9;
this._xr1[_i2]._O9._mH(_99._sg1);
this._xr1[_i2]._k2 = _99._tg1
}
_mj1._zs1._pr1 = this._yr1;
_mj1._zs1._Jc = this._ok1;
_mj1._zs1._z31 = _Zk1;
_mj1._zs1.__i1 = this._wr1;
_mj1._zs1._0j1 = this._xr1;
_mj1._As1._OJ(_mj1._zs1);
for (var _i2 = 0; _i2 < _Zk1._Vi1; ++_i2) {
var _Os1 = _mj1._As1._qs1(_rs1, _ss1);
if (_Os1) {
break
}
}
this._Ik1[_rs1]._ng1._y51._mH(this._wr1[_rs1]._j2);
this._Ik1[_rs1]._ng1._A51 = this._wr1[_rs1]._a9;
this._Ik1[_ss1]._ng1._y51._mH(this._wr1[_ss1]._j2);
this._Ik1[_ss1]._ng1._A51 = this._wr1[_ss1]._a9;
_mj1._As1._Br1();
for (var _i2 = 0; _i2 < _Zk1._Ui1; ++_i2) {
_mj1._As1.__r1()
}
var _l2 = _Zk1._Ri1;
for (var _i2 = 0; _i2 < this._aj1; ++_i2) {
var _j2 = this._wr1[_i2]._j2;
var _a9 = this._wr1[_i2]._a9;
var _O9 = this._xr1[_i2]._O9;
var _k2 = this._xr1[_i2]._k2;
var _Vs1 = _K41.Multiply(_l2, _O9);
if (_G51(_Vs1, _Vs1) > _d41) {
var _Ms1 = _c41 / _Vs1.Length();
_O9.Multiply(_Ms1)
}
var rotation = _l2 * _k2;
if (rotation * rotation > _f41) {
var _Ms1 = _e41 / _461(rotation);
_k2 *= _Ms1
}
_j2._Vj(_K41.Multiply(_l2, _O9));
_a9 += _l2 * _k2;
this._wr1[_i2]._a9 = _a9;
this._xr1[_i2]._k2 = _k2;
var body = this._Ik1[_i2];
body._ng1._j2._mH(_j2);
body._ng1._a9 = _a9;
body._sg1._mH(_O9);
body._tg1 = _k2;
body._0i1()
}
this._Rs1(_mj1._As1._sr1)
},
_zk1: function (body) {
_W31(this._aj1 < this._Xk1);
body._eg1 = this._aj1;
this._Ik1[this._aj1] = body;
if (!this._wr1[this._aj1]) {
this._wr1[this._aj1] = new _Xi1();
this._xr1[this._aj1] = new _Yi1()
}++this._aj1
},
_Gk1: function (_3h1) {
_W31(this._ok1 < this._Yk1);
this._yr1[this._ok1++] = _3h1
},
_Hk1: function (_3i1) {
_W31(this._bj1 < this._Fs1);
this._ts1[this._bj1++] = _3i1;
},
_Rs1: function (_Ws1) {
if (this._Es1 == null) {
return
}
for (var _i2 = 0; _i2 < this._ok1; ++_i2) {
var _j2 = this._yr1[_i2];
var _zr1 = _Ws1[_i2];
var _nh1 = new _Di1();
_nh1._Jc = _zr1._Wa1;
for (var _nb = 0; _nb < _zr1._Wa1; ++_nb) {
_nh1._Ei1[_nb] = _zr1._Ua1[_nb]._Qa1;
_nh1._Fi1[_nb] = _zr1._Ua1[_nb]._Ra1
}
this._Es1._Li1(_j2, _nh1)
}
}
};
function _Xs1() {
this._Bq = new _K41();
this._Ys1 = 0;
this._Zs1 = 0
};
function __s1() {
this._wb1 = null;
this._3i1 = null;
this._Nj1 = null;
this._3m = null
};
function _0t1() {
this.type = _Kj1._1t1;
this._O81 = null;
this._Qj1 = null;
this._Rj1 = null;
this._Sj1 = !1
};
_0t1.prototype = {
_Y41: function (data, _Wk1, _2t1) {
this._Qj1 = _Wk1[data['bodyA']];
this._Rj1 = _Wk1[data['bodyB']];
this._Sj1 = data['collideConnected']
}
};
function _Kj1(_Og1) {
_W31(_Og1._Qj1 != _Og1._Rj1);
this._VH = _Og1.type;
this._qg1 = null;
this._rg1 = null;
this._Oj1 = _Og1._Qj1;
this._Mj1 = _Og1._Rj1;
this._Kz = 0;
this._4i1 = _Og1._Sj1;
this._vk1 = !1;
this._Fg1 = _Og1._O81;
this._Lj1 = new __s1();
this._Lj1._3i1 = null;
this._Lj1._wb1 = null;
this._Lj1._Nj1 = null;
this._Lj1._3m = null;
this._Pj1 = new __s1();
this._Pj1._3i1 = null;
this._Pj1._wb1 = null;
this._Pj1._Nj1 = null;
this._Pj1._3m = null
}
_Kj1.prototype = {
_W61: function () {
return this._VH
},
__k1: function () {
return this._Oj1
},
_0l1: function () {
return this._Mj1
},
_1l1: function () {},
_2l1: function () {},
_3t1: function (_Si1) {},
_4t1: function (_Si1) {},
_Yh1: function () {
return this._rg1
},
_X81: function () {
return this._Fg1
},
_Zh1: function (data) {
this._Fg1 = data
},
_Sh1: function () {
return this._Oj1._Sh1() && this._Mj1._Sh1()
},
_5t1: function () {
return this._4i1
},
_g91: function (_h91) {},
_Is1: function (data) {},
__r1: function (data) {},
_ks1: function (data) {},
_X41: function (out) {
var _xn = out || {};
_xn['bodyA'] = null;
_xn['bodyB'] = null;
_xn['type'] = this._VH;
_xn['collideConnected'] = this._4i1;
return _xn
}
};
_Kj1._6t1 = 0;
_Kj1._7t1 = 1;
_Kj1._8t1 = 2;
_Kj1._9t1 = 3;
_Kj1._1t1 = 0;
_Kj1._at1 = 1;
_Kj1._bt1 = 2;
_Kj1._3l1 = 3;
_Kj1._4l1 = 4;
_Kj1._8l1 = 5;
_Kj1._ct1 = 6;
_Kj1._dt1 = 7;
_Kj1._et1 = 8;
_Kj1._ft1 = 9;
_Kj1._gt1 = 10;
_Kj1._9l1 = 11;
_Kj1._Tg1 = function (_Og1) {
var _3i1 = null;
switch (_Og1.type) {
case _Kj1._3l1:
_3i1 = new _ht1(_Og1);
break;
case _Kj1._8l1:
_3i1 = new _it1(_Og1);
break;
case _Kj1._bt1:
_3i1 = new _jt1(_Og1);
break;
case _Kj1._at1:
_3i1 = new _kt1(_Og1);
break;
case _Kj1._4l1:
_3i1 = new _lt1(_Og1);
break;
case _Kj1._ct1:
_3i1 = new _mt1(_Og1);
break;
case _Kj1._dt1:
_3i1 = new _nt1(_Og1);
break;
case _Kj1._et1:
_3i1 = new _ot1(_Og1);
break;
case _Kj1._ft1:
_3i1 = new _pt1(_Og1);
break;
case _Kj1._gt1:
_3i1 = new _qt1(_Og1);
break;
case _Kj1._9l1:
_3i1 = new _rt1(_Og1);
break;
default:
_W31(!1);
break
}
return _3i1
};
_Kj1._8h1 = function (_3i1) {};
function _st1() {
this.parent.call(this);
this.type = _Kj1._at1;
this._tt1 = new _K41();
this._ut1 = new _K41();
this._vt1 = 0.0;
this._wt1 = 0.0;
this._xt1 = 0.0;
this._yt1 = 0.0;
this._zt1 = 0.0;
this._At1 = !1;
this._Bt1 = !1;
Object.seal(this)
}
_st1.prototype = {
_6b1: function (_Pk1, _Qk1, anchor) {
this._Qj1 = _Pk1;
this._Rj1 = _Qk1;
this._tt1 = this._Qj1._vh1(anchor);
this._ut1 = this._Rj1._vh1(anchor);
this._vt1 = this._Rj1._r51() - this._Qj1._r51()
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this._vt1 = data['referenceAngle'];
this._wt1 = data['lowerAngle'];
this._xt1 = data['upperAngle'];
this._yt1 = data['maxMotorTorque'];
this._zt1 = data['motorSpeed'];
this._At1 = data['enableLimit'];
this._Bt1 = data['enableMotor']
}
};
_st1._q31(_0t1);
function _kt1(_Og1) {
this.parent.call(this, _Og1);
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._Et1 = _Og1._vt1;
this._Ft1 = new __41();
this._Gt1 = 0.0;
this._Ht1 = _Og1._wt1;
this._It1 = _Og1._xt1;
this._Jt1 = _Og1._yt1;
this._Kt1 = _Og1._zt1;
this._Lt1 = _Og1._At1;
this._Mt1 = _Og1._Bt1;
this._Nt1 = _Kj1._6t1;
this._oq1 = 0;
this._pq1 = 0;
this._Ot1 = new _K41();
this._Pt1 = new _K41();
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._Bg1 = new _d51();
this._Wt1 = 0
}
_kt1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_Xt1: function () {
return this._Ct1
},
_Yt1: function () {
return this._Dt1
},
_Zt1: function () {
return this._Et1
},
__t1: function () {
var _Pk1 = this._Oj1;
var _Qk1 = this._Mj1;
return _Qk1._ng1._a9 - _Pk1._ng1._a9 - this._Et1
},
_0u1: function () {
var _Pk1 = this._Oj1;
var _Qk1 = this._Mj1;
return _Qk1._tg1 - _Pk1._tg1
},
_1u1: function () {
return this._Lt1
},
_2u1: function (_Mh1) {
if (_Mh1 != this._Lt1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Lt1 = _Mh1;
this._Ft1._2g = 0.0
}
},
_3u1: function () {
return this._Ht1
},
_4u1: function () {
return this._It1
},
_5u1: function (_5N, _981) {
_W31(_5N <= _981);
if (_5N != this._Ht1 || _981 != this._It1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Ft1._2g = 0.0;
this._Ht1 = _5N;
this._It1 = _981
}
},
_6u1: function () {
return this._Mt1
},
_7u1: function (_Mh1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Mt1 = _Mh1
},
_8u1: function (_d3) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Kt1 = _d3
},
_9u1: function () {
return this._Kt1
},
_au1: function (_lh1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Jt1 = _lh1
},
_bu1: function () {
return this._Jt1
},
_3t1: function (_Si1) {
var _Wc1 = new _K41(this._Ft1.x, this._Ft1.y);
return _K41.Multiply(_Si1, _Wc1)
},
_4t1: function (_Si1) {
return _Si1 * this._Ft1._2g
},
_cu1: function (_Si1) {
return _Si1 * this._Gt1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1 = this._Oj1._ng1._x51;
this._Rt1 = this._Mj1._ng1._x51;
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
this._Ot1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
this._Pt1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _9g1 = (_1f1 + _2f1 == 0.0);
this._Bg1._bB.x = _Cr1 + _Dr1 + this._Ot1.y * this._Ot1.y * _1f1 + this._Pt1.y * this._Pt1.y * _2f1;
this._Bg1._cG.x = -this._Ot1.y * this._Ot1.x * _1f1 - this._Pt1.y * this._Pt1.x * _2f1;
this._Bg1._f51.x = -this._Ot1.y * _1f1 - this._Pt1.y * _2f1;
this._Bg1._bB.y = this._Bg1._cG.x;
this._Bg1._cG.y = _Cr1 + _Dr1 + this._Ot1.x * this._Ot1.x * _1f1 + this._Pt1.x * this._Pt1.x * _2f1;
this._Bg1._f51.y = this._Ot1.x * _1f1 + this._Pt1.x * _2f1;
this._Bg1._bB._2g = this._Bg1._f51.x;
this._Bg1._cG._2g = this._Bg1._f51.y;
this._Bg1._f51._2g = _1f1 + _2f1;
this._Wt1 = _1f1 + _2f1;
if (this._Wt1 > 0.0) {
this._Wt1 = 1.0 / this._Wt1
}
if (this._Mt1 == !1 || _9g1) {
this._Gt1 = 0.0
}
if (this._Lt1 && _9g1 == !1) {
var _fu1 = _Gr1 - _Er1 - this._Et1;
if (_461(this._It1 - this._Ht1) < 2.0 * _541) {
this._Nt1 = _Kj1._9t1
} else if (_fu1 <= this._Ht1) {
if (this._Nt1 != _Kj1._7t1) {
this._Ft1._2g = 0.0
}
this._Nt1 = _Kj1._7t1
} else if (_fu1 >= this._It1) {
if (this._Nt1 != _Kj1._8t1) {
this._Ft1._2g = 0.0
}
this._Nt1 = _Kj1._8t1
} else {
this._Nt1 = _Kj1._6t1;
this._Ft1._2g = 0.0
}
} else {
this._Nt1 = _Kj1._6t1
}
if (data._z31._Wi1) {
this._Ft1.Multiply(data._z31._Ti1);
this._Gt1 *= data._z31._Ti1;
var _Wc1 = new _K41(this._Ft1.x, this._Ft1.y);
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * (_H51(this._Ot1, _Wc1) + this._Gt1 + this._Ft1._2g);
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * (_H51(this._Pt1, _Wc1) + this._Gt1 + this._Ft1._2g)
} else {
this._Ft1._L41();
this._Gt1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _9g1 = (_1f1 + _2f1 == 0.0);
if (this._Mt1 && this._Nt1 != _Kj1._9t1 && _9g1 == !1) {
var _gu1 = _E91 - _D91 - this._Kt1;
var _nh1 = -this._Wt1 * _gu1;
var _hu1 = this._Gt1;
var _iu1 = data._z31._Ri1 * this._Jt1;
this._Gt1 = _b61(this._Gt1 + _nh1, -_iu1, _iu1);
_nh1 = this._Gt1 - _hu1;
_D91 -= _1f1 * _nh1;
_E91 += _2f1 * _nh1
}
if (this._Lt1 && this._Nt1 != _Kj1._6t1 && _9g1 == !1) {
var _ju1 = _K41._R41(_K41._R41(_K41._Vj(_Hr1, _J51(_E91,
this._Pt1)), _Fr1), _J51(_D91, this._Ot1));
var _ku1 = _E91 - _D91;
var _gu1 = new __41(_ju1.x, _ju1.y, _ku1);
var _nh1 = this._Bg1._g51(_gu1)._O41();
if (this._Nt1 == _Kj1._9t1) {
this._Ft1._Vj(_nh1)
} else if (this._Nt1 == _Kj1._7t1) {
var _5s1 = this._Ft1._2g + _nh1._2g;
if (_5s1 < 0.0) {
var _lu1 = _K41._Vj(_ju1._O41(), _K41.Multiply(this._Ft1._2g, new _K41(this._Bg1._f51.x, this._Bg1._f51.y)));
var _mu1 = this._Bg1._j51(_lu1);
_nh1.x = _mu1.x;
_nh1.y = _mu1.y;
_nh1._2g = -this._Ft1._2g;
this._Ft1.x += _mu1.x;
this._Ft1.y += _mu1.y;
this._Ft1._2g = 0.0;
} else {
this._Ft1._Vj(_nh1)
}
} else if (this._Nt1 == _Kj1._8t1) {
var _5s1 = this._Ft1._2g + _nh1._2g;
if (_5s1 > 0.0) {
var _lu1 = _K41._Vj(_ju1._O41(), _K41.Multiply(this._Ft1._2g, new _K41(this._Bg1._f51.x, this._Bg1._f51.y)));
var _mu1 = this._Bg1._j51(_lu1);
_nh1.x = _mu1.x;
_nh1.y = _mu1.y;
_nh1._2g = -this._Ft1._2g;
this._Ft1.x += _mu1.x;
this._Ft1.y += _mu1.y;
this._Ft1._2g = 0.0
} else {
this._Ft1._Vj(_nh1)
}
}
var _Wc1 = new _K41(_nh1.x, _nh1.y);
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * (_H51(this._Ot1, _Wc1) + _nh1._2g);
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * (_H51(this._Pt1,
_Wc1) + _nh1._2g)
} else {
var _gu1 = _K41._R41(_K41._R41(_K41._Vj(_Hr1, _J51(_E91, this._Pt1)), _Fr1), _J51(_D91, this._Ot1));
var _nh1 = this._Bg1._j51(_gu1._O41());
this._Ft1.x += _nh1.x;
this._Ft1.y += _nh1.y;
_Fr1._R41(_K41.Multiply(_Cr1, _nh1));
_D91 -= _1f1 * _H51(this._Ot1, _nh1);
_Hr1._Vj(_K41.Multiply(_Dr1, _nh1));
_E91 += _2f1 * _H51(this._Pt1, _nh1)
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _nu1 = 0.0;
var _ou1 = 0.0;
var _9g1 = (this._Ut1 + this._Vt1 == 0.0);
if (this._Lt1 && this._Nt1 != _Kj1._6t1 && _9g1 == !1) {
var angle = _Gr1 - _Er1 - this._Et1;
var _pu1 = 0.0;
if (this._Nt1 == _Kj1._9t1) {
var _061 = _b61(angle - this._Ht1, -_b41, _b41);
_pu1 = -this._Wt1 * _061;
_nu1 = _461(_061)
} else if (this._Nt1 == _Kj1._7t1) {
var _061 = angle - this._Ht1;
_nu1 = -_061;
_061 = _b61(_061 + _541, -_b41, 0.0);
_pu1 = -this._Wt1 * _061
} else if (this._Nt1 == _Kj1._8t1) {
var _061 = angle - this._It1;
_nu1 = _061;
_061 = _b61(_061 - _541, 0.0, _b41);
_pu1 = -this._Wt1 * _061
}
_Er1 -= this._Ut1 * _pu1;
_Gr1 += this._Vt1 * _pu1
} {
_du1._Yl(_Er1);
_eu1._Yl(_Gr1);
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _061 = _K41._R41(_K41._R41(_K41._Vj(_3k1, _Ha1), _1k1), _Ga1);
_ou1 = _061.Length();
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _ir1 = new _151();
_ir1._bB.x = _Cr1 + _Dr1 + _1f1 * _Ga1.y * _Ga1.y + _2f1 * _Ha1.y * _Ha1.y;
_ir1._bB.y = -_1f1 * _Ga1.x * _Ga1.y - _2f1 * _Ha1.x * _Ha1.y;
_ir1._cG.x = _ir1._bB.y;
_ir1._cG.y = _Cr1 + _Dr1 + _1f1 * _Ga1.x * _Ga1.x + _2f1 * _Ha1.x * _Ha1.x;
var _nh1 = _ir1._851(_061)._O41();
_1k1._R41(_K41.Multiply(_Cr1, _nh1));
_Er1 -= _1f1 * _H51(_Ga1, _nh1);
_3k1._Vj(_K41.Multiply(_Dr1, _nh1));
_Gr1 += _2f1 * _H51(_Ha1, _nh1)
}
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
return _ou1 <= _441 && _nu1 <= _541
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this,
_xn);
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['referenceAngle'] = this._Et1;
_xn['lowerAngle'] = this._Ht1;
_xn['upperAngle'] = this._It1;
_xn['maxMotorTorque'] = this._Jt1;
_xn['motorSpeed'] = this._Kt1;
_xn['enableLimit'] = this._Lt1;
_xn['enableMotor'] = this._Mt1;
return _xn
}
};
_kt1._q31(_Kj1);
function _qu1() {
this.parent.call(this);
this.type = _Kj1._8l1;
this.target = new _K41(0.0, 0.0);
this._ru1 = 0.0;
this._su1 = 5.0;
this._tu1 = 0.7;
Object.seal(this)
}
_qu1._q31(_0t1);
function _it1(_Og1) {
this.parent.call(this,
_Og1);
_W31(_Og1.target._V41());
_W31(_A41(_Og1._ru1) && _Og1._ru1 >= 0.0);
_W31(_A41(_Og1._su1) && _Og1._su1 >= 0.0);
_W31(_A41(_Og1._tu1) && _Og1._tu1 >= 0.0);
this._uu1 = _Og1.target._X7();
this._Dt1 = _Z51(this._Mj1._C51(), this._uu1);
this._vu1 = _Og1._ru1;
this._Ft1 = new _K41();
this._wu1 = _Og1._su1;
this._xu1 = _Og1._tu1;
this._yu1 = 0.0;
this._zu1 = 0.0;
this._oq1 = 0;
this._pq1 = 0;
this._Pt1 = new _K41();
this._Rt1 = new _K41();
this._Tt1 = 0;
this._Vt1 = 0;
this._Bg1 = new _151();
this._Au1 = new _K41()
}
_it1.prototype = {
_1l1: function () {
return this._uu1;
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
return _K41.Multiply(_Si1, this._Ft1)
},
_4t1: function (_Si1) {
return _Si1 * 0.0
},
_Bu1: function (target) {
if (this._Mj1._Qh1() == !1) {
this._Mj1._wS(!0)
}
this._uu1._mH(target)
},
_Cu1: function () {
return this._uu1
},
_Du1: function (_ih1) {
this._vu1 = _ih1
},
_Eu1: function () {
return this._vu1
},
_Fu1: function (_Gu1) {
this._wu1 = _Gu1
},
_Hu1: function () {
return this._wu1
},
_Iu1: function (_Ms1) {
this._xu1 = _Ms1
},
_Ju1: function () {
return this._xu1
},
_g91: function (_h91) {
this._uu1._R41(_h91)
},
_Is1: function (data) {
this._pq1 = this._Mj1._eg1;
this._Rt1._mH(this._Mj1._ng1._x51);
this._Tt1 = this._Mj1._Cg1;
this._Vt1 = this._Mj1._Eg1;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _eu1 = new _q51(_Gr1);
var _S61 = this._Mj1._oh1();
var _Ku1 = 2.0 * __31 * this._wu1;
var _Xn = 2.0 * _S61 * this._xu1 * _Ku1;
var __l = _S61 * (_Ku1 * _Ku1);
var _l2 = data._z31._Ri1;
_W31(_Xn + _l2 * __l > _Z31);
this._zu1 = _l2 * (_Xn + _l2 * __l);
if (this._zu1 != 0.0) {
this._zu1 = 1.0 / this._zu1
}
this._yu1 = _l2 * __l * this._zu1;
this._Pt1._mH(_V51(_eu1, _K41._R41(this._Dt1, this._Rt1)));
var _ir1 = new _151();
_ir1._bB.x = this._Tt1 + this._Vt1 * this._Pt1.y * this._Pt1.y + this._zu1;
_ir1._bB.y = -this._Vt1 * this._Pt1.x * this._Pt1.y;
_ir1._cG.x = _ir1._bB.y;
_ir1._cG.y = this._Tt1 + this._Vt1 * this._Pt1.x * this._Pt1.x + this._zu1;
this._Bg1._mH(_ir1._551());
this._Au1._mH(_K41._R41(_K41._Vj(_3k1, this._Pt1), this._uu1));
this._Au1.Multiply(this._yu1);
_E91 *= 0.98;
if (data._z31._Wi1) {
this._Ft1.Multiply(data._z31._Ti1);
_Hr1._Vj(_K41.Multiply(this._Tt1,
this._Ft1));
_E91 += this._Vt1 * _H51(this._Pt1, this._Ft1)
} else {
this._Ft1._L41()
}
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _gu1 = _K41._Vj(_Hr1, _J51(_E91, this._Pt1));
var _nh1 = _K51(this._Bg1, (_K41._Vj(_K41._Vj(_gu1, this._Au1), _K41.Multiply(this._zu1, this._Ft1)))._O41());
var _hu1 = this._Ft1._X7();
this._Ft1._Vj(_nh1);
var _iu1 = data._z31._Ri1 * this._vu1;
if (this._Ft1._S41() > _iu1 * _iu1) {
this._Ft1.Multiply(_iu1 / this._Ft1.Length())
}
_nh1._mH(_K41._R41(this._Ft1, _hu1));
_Hr1._Vj(_K41.Multiply(this._Tt1, _nh1));
_E91 += this._Vt1 * _H51(this._Pt1, _nh1);
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
return !0
}
};
_it1._q31(_Kj1); /// @warning Do not use a zero or short length.
function _Lu1() {
this.parent.call(this);
this.type = _Kj1._3l1;
this._tt1 = new _K41(0.0, 0.0);
this._ut1 = new _K41(0.0, 0.0);
this.length = 1.0;
this._su1 = 0.0;
this._tu1 = 0.0;
Object.seal(this)
}
_Lu1.prototype = {
_6b1: function (_lB, _mB, _Mu1, _Nu1) {
this._Qj1 = _lB;
this._Rj1 = _mB;
this._tt1 = this._Qj1._vh1(_Mu1);
this._ut1 = this._Rj1._vh1(_Nu1);
var _Xn = _K41._R41(_Nu1, _Mu1);
this.length = _Xn.Length()
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this.length = data['length'];
this._su1 = data['frequencyHz'];
this._tu1 = data['dampingRatio']
}
};
_Lu1._q31(_0t1);
function _ht1(_Og1) {
this.parent.call(this, _Og1);
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._LL = _Og1.length;
this._wu1 = _Og1._su1;
this._xu1 = _Og1._tu1;
this._Ft1 = 0.0;
this._zu1 = 0.0;
this._Ou1 = 0.0;
this._oq1 = 0;
this._pq1 = 0;
this._Pu1 = new _K41();
this._Ot1 = new _K41();
this._Pt1 = new _K41();
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._Bg1 = 0
}
_ht1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
var _6f1 = _K41.Multiply((_Si1 * this._Ft1), this._Pu1);
return _6f1
},
_4t1: function (_Si1) {
return 0.0
},
_Xt1: function () {
return this._Ct1
},
_Yt1: function () {
return this._Dt1
},
_Qu1: function (length) {
this._LL = length
},
_Ru1: function () {
return this._LL
},
_Fu1: function (_Gu1) {
this._wu1 = _Gu1
},
_Hu1: function () {
return this._wu1
},
_Iu1: function (_Ms1) {
this._xu1 = _Ms1
},
_Ju1: function () {
return this._xu1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1._mH(this._Oj1._ng1._x51);
this._Rt1._mH(this._Mj1._ng1._x51);
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
this._Ot1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
this._Pt1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
this._Pu1 = _K41._R41(_K41._R41(_K41._Vj(_3k1, this._Pt1), _1k1), this._Ot1);
var length = this._Pu1.Length();
if (length > _441) {
this._Pu1.Multiply(1.0 / length)
} else {
this._Pu1._Yl(0.0, 0.0)
}
var _Su1 = _H51(this._Ot1, this._Pu1);
var _Tu1 = _H51(this._Pt1, this._Pu1);
var _Uu1 = this._St1 + this._Ut1 * _Su1 * _Su1 + this._Tt1 + this._Vt1 * _Tu1 * _Tu1;
this._Bg1 = _Uu1 != 0.0 ? 1.0 / _Uu1 : 0.0;
if (this._wu1 > 0.0) {
var _061 = length - this._LL;
var _Ku1 = 2.0 * __31 * this._wu1;
var _Xn = 2.0 * this._Bg1 * this._xu1 * _Ku1;
var __l = this._Bg1 * _Ku1 * _Ku1;
var _l2 = data._z31._Ri1;
this._zu1 = _l2 * (_Xn + _l2 * __l);
this._zu1 = this._zu1 != 0.0 ? 1.0 / this._zu1 : 0.0;
this._Ou1 = _061 * _l2 * __l * this._zu1;
_Uu1 += this._zu1;
this._Bg1 = _Uu1 != 0.0 ? 1.0 / _Uu1 : 0.0
} else {
this._zu1 = 0.0;
this._Ou1 = 0.0
}
if (data._z31._Wi1) {
this._Ft1 *= data._z31._Ti1;
var _Wc1 = _K41.Multiply(this._Ft1, this._Pu1);
_Fr1._R41(_K41.Multiply(this._St1, _Wc1));
_D91 -= this._Ut1 * _H51(this._Ot1, _Wc1);
_Hr1._Vj(_K41.Multiply(this._Tt1, _Wc1));
_E91 += this._Vt1 * _H51(this._Pt1, _Wc1)
} else {
this._Ft1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91;
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Vu1 = _K41._Vj(_Fr1, _J51(_D91, this._Ot1));
var _Wu1 = _K41._Vj(_Hr1, _J51(_E91, this._Pt1));
var _gu1 = _G51(this._Pu1, _K41._R41(_Wu1, _Vu1));
var _nh1 = -this._Bg1 * (_gu1 + this._Ou1 + this._zu1 * this._Ft1);
this._Ft1 += _nh1;
var _Wc1 = _K41.Multiply(_nh1, this._Pu1);
_Fr1._R41(_K41.Multiply(this._St1, _Wc1));
_D91 -= this._Ut1 * _H51(this._Ot1, _Wc1);
_Hr1._Vj(_K41.Multiply(this._Tt1, _Wc1));
_E91 += this._Vt1 * _H51(this._Pt1, _Wc1);
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
if (this._wu1 > 0.0) {
return !0
}
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _N9 = _K41._R41(_K41._R41(_K41._Vj(_3k1,
_Ha1), _1k1), _Ga1);
var length = _N9._T41();
var _061 = length - this._LL;
_061 = _b61(_061, -_a41, _a41);
var _nh1 = -this._Bg1 * _061;
var _Wc1 = _K41.Multiply(_nh1, _N9);
_1k1._R41(_K41.Multiply(this._St1, _Wc1));
_Er1 -= this._Ut1 * _H51(_Ga1, _Wc1);
_3k1._Vj(_K41.Multiply(this._Tt1, _Wc1));
_Gr1 += this._Vt1 * _H51(_Ha1, _Wc1);
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
return _461(_061) < _441
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this,
_xn);
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['length'] = this._LL;
_xn['frequencyHz'] = this._wu1;
_xn['dampingRatio'] = this._xu1;
return _xn
}
};
_ht1._q31(_Kj1);
function _Xu1() {
this.parent.call(this);
this.type = _Kj1._bt1;
this._tt1 = new _K41();
this._ut1 = new _K41();
this._Yu1 = new _K41(1.0, 0.0);
this._vt1 = 0.0;
this._At1 = !1;
this._Zu1 = 0.0;
this.__u1 = 0.0;
this._Bt1 = !1;
this._0v1 = 0.0;
this._zt1 = 0.0;
Object.seal(this)
}
_Xu1.prototype = {
_6b1: function (_Pk1, _Qk1, anchor, _0o) {
this._Qj1 = _Pk1;
this._Rj1 = _Qk1;
this._tt1 = this._Qj1._vh1(anchor);
this._ut1 = this._Rj1._vh1(anchor);
this._Yu1 = this._Qj1._xh1(_0o);
this._vt1 = this._Rj1._r51() - this._Qj1._r51()
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this._Yu1._Y41(data['localAxisA']);
this._vt1 = data['referenceAngle'];
this._At1 = data['enableLimit'];
this._Zu1 = data['lowerTranslation'];
this.__u1 = data['upperTranslation'];
this._Bt1 = data['enableMotor'];
this._0v1 = data['maxMotorForce'];
this._zt1 = data['motorSpeed']
}
};
_Xu1._q31(_0t1);
function _jt1(_Og1) {
this.parent.call(this, _Og1);
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._1v1 = _Og1._Yu1._X7();
this._1v1._T41();
this._2v1 = _J51(1.0, this._1v1);
this._Et1 = _Og1._vt1;
this._Ft1 = new __41();
this._Wt1 = 0.0;
this._Gt1 = 0.0;
this._3v1 = _Og1._Zu1;
this._4v1 = _Og1.__u1;
this._5v1 = _Og1._0v1;
this._Kt1 = _Og1._zt1;
this._Lt1 = _Og1._At1;
this._Mt1 = _Og1._Bt1;
this._Nt1 = _Kj1._6t1;
this._sf1 = new _K41();
this._6v1 = new _K41();
this._oq1 = 0;
this._pq1 = 0;
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._7v1 = 0, this._8v1 = 0;
this._9v1 = 0, this._av1 = 0;
this._bv1 = new _d51();
this._Wt1 = 0
}
_jt1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
return _K41.Multiply(_Si1, _K41._Vj(_K41.Multiply(this._Ft1.x, this._6v1), _K41.Multiply((this._Gt1 + this._Ft1._2g), this._sf1)))
},
_4t1: function (_Si1) {
return _Si1 * this._Ft1.y;
},
_Xt1: function () {
return this._Ct1
},
_Yt1: function () {
return this._Dt1
},
_cv1: function () {
return this._1v1
},
_Zt1: function () {
return this._Et1
},
_dv1: function () {
var _U91 = this._Oj1._sh1(this._Ct1);
var _V91 = this._Mj1._sh1(this._Dt1);
var _Xn = _K41._R41(_V91, _U91);
var _0o = this._Oj1._th1(this._1v1);
var _Vs1 = _G51(_Xn, _0o);
return _Vs1
},
_0u1: function () {
var _Pk1 = this._Oj1;
var _Qk1 = this._Mj1;
var _Ga1 = _V51(_Pk1._hd1._qC, _K41._R41(this._Ct1, _Pk1._ng1._x51));
var _Ha1 = _V51(_Qk1._hd1._qC, _K41._R41(this._Dt1, _Qk1._ng1._x51));
var __n = _K41._Vj(_Pk1._ng1._j2, _Ga1);
var _y61 = _K41._Vj(_Qk1._ng1._j2,
_Ha1);
var _Xn = _K41._R41(_y61, __n);
var _0o = _V51(_Pk1._hd1._qC, this._1v1);
var _Fr1 = _Pk1._sg1;
var _Hr1 = _Qk1._sg1;
var _D91 = _Pk1._tg1;
var _E91 = _Qk1._tg1;
var _d3 = _G51(_Xn, _J51(_D91, _0o)) + _G51(_0o, _K41._R41(_K41._R41(_K41._Vj(_Hr1, _J51(_E91, _Ha1)), _Fr1), _J51(_D91, _Ga1)));
return _d3
},
_1u1: function () {
return this._Lt1
},
_2u1: function (_Mh1) {
if (_Mh1 != this._Lt1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Lt1 = _Mh1;
this._Ft1._2g = 0.0
}
},
_3u1: function () {
return this._3v1
},
_4u1: function () {
return this._4v1
},
_5u1: function (_5N, _981) {
_W31(_5N <= _981);
if (_5N != this._3v1 || _981 != this._4v1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._3v1 = _5N;
this._4v1 = _981;
this._Ft1._2g = 0.0
}
},
_6u1: function () {
return this._Mt1
},
_7u1: function (_Mh1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Mt1 = _Mh1
},
_8u1: function (_d3) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Kt1 = _d3
},
_9u1: function () {
return this._Kt1
},
_ev1: function (_ih1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._5v1 = _ih1
},
_fv1: function () {
return this._5v1
},
_gv1: function (_Si1) {
return _Si1 * this._Gt1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1 = this._Oj1._ng1._x51;
this._Rt1 = this._Mj1._ng1._x51;
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _Xn = _K41._Vj(_K41._R41(_3k1, _1k1), _K41._R41(_Ha1, _Ga1));
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1; {
this._sf1 = _V51(_du1, this._1v1);
this._9v1 = _H51(_K41._Vj(_Xn, _Ga1), this._sf1);
this._av1 = _H51(_Ha1, this._sf1);
this._Wt1 = _Cr1 + _Dr1 + _1f1 * this._9v1 * this._9v1 + _2f1 * this._av1 * this._av1;
if (this._Wt1 > 0.0) {
this._Wt1 = 1.0 / this._Wt1
}
} {
this._6v1 = _V51(_du1, this._2v1);
this._7v1 = _H51(_K41._Vj(_Xn,
_Ga1), this._6v1);
this._8v1 = _H51(_Ha1, this._6v1);
var _Vr1 = _Cr1 + _Dr1 + _1f1 * this._7v1 * this._7v1 + _2f1 * this._8v1 * this._8v1;
var _Xr1 = _1f1 * this._7v1 + _2f1 * this._8v1;
var _hv1 = _1f1 * this._7v1 * this._9v1 + _2f1 * this._8v1 * this._av1;
var _Wr1 = _1f1 + _2f1;
if (_Wr1 == 0.0) {
_Wr1 = 1.0
}
var _iv1 = _1f1 * this._9v1 + _2f1 * this._av1;
var _jv1 = _Cr1 + _Dr1 + _1f1 * this._9v1 * this._9v1 + _2f1 * this._av1 * this._av1;
this._bv1._bB._Yl(_Vr1, _Xr1, _hv1);
this._bv1._cG._Yl(_Xr1, _Wr1, _iv1);
this._bv1._f51._Yl(_hv1, _iv1, _jv1)
}
if (this._Lt1) {
var _kv1 = _G51(this._sf1, _Xn);
if (_461(this._4v1 - this._3v1) < 2.0 * _441) {
this._Nt1 = _Kj1._9t1
} else if (_kv1 <= this._3v1) {
if (this._Nt1 != _Kj1._7t1) {
this._Nt1 = _Kj1._7t1;
this._Ft1._2g = 0.0
}
} else if (_kv1 >= this._4v1) {
if (this._Nt1 != _Kj1._8t1) {
this._Nt1 = _Kj1._8t1;
this._Ft1._2g = 0.0
}
} else {
this._Nt1 = _Kj1._6t1;
this._Ft1._2g = 0.0
}
} else {
this._Nt1 = _Kj1._6t1;
this._Ft1._2g = 0.0
}
if (this._Mt1 == !1) {
this._Gt1 = 0.0
}
if (data._z31._Wi1) {
this._Ft1.Multiply(data._z31._Ti1);
this._Gt1 *= data._z31._Ti1;
var _Wc1 = _K41._Vj(_K41.Multiply(this._Ft1.x, this._6v1), _K41.Multiply((this._Gt1 + this._Ft1._2g),
this._sf1));
var _lv1 = this._Ft1.x * this._7v1 + this._Ft1.y + (this._Gt1 + this._Ft1._2g) * this._9v1;
var _mv1 = this._Ft1.x * this._8v1 + this._Ft1.y + (this._Gt1 + this._Ft1._2g) * this._av1;
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * _lv1;
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * _mv1
} else {
this._Ft1._L41();
this._Gt1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
if (this._Mt1 && this._Nt1 != _Kj1._9t1) {
var _gu1 = _G51(this._sf1, _K41._R41(_Hr1, _Fr1)) + this._av1 * _E91 - this._9v1 * _D91;
var _nh1 = this._Wt1 * (this._Kt1 - _gu1);
var _hu1 = this._Gt1;
var _iu1 = data._z31._Ri1 * this._5v1;
this._Gt1 = _b61(this._Gt1 + _nh1, -_iu1, _iu1);
_nh1 = this._Gt1 - _hu1;
var _Wc1 = _K41.Multiply(_nh1, this._sf1);
var _lv1 = _nh1 * this._9v1;
var _mv1 = _nh1 * this._av1;
_Fr1._R41(_K41.Multiply(_Cr1,
_Wc1));
_D91 -= _1f1 * _lv1;
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * _mv1
}
var _ju1 = new _K41();
_ju1.x = _G51(this._6v1, _K41._R41(_Hr1, _Fr1)) + this._8v1 * _E91 - this._7v1 * _D91;
_ju1.y = _E91 - _D91;
if (this._Lt1 && this._Nt1 != _Kj1._6t1) {
var _ku1;
_ku1 = _G51(this._sf1, _K41._R41(_Hr1, _Fr1)) + this._av1 * _E91 - this._9v1 * _D91;
var _gu1 = new __41(_ju1.x, _ju1.y, _ku1);
var _QO = this._Ft1._X7();
var _nv1 = this._bv1._g51(_gu1._O41());
this._Ft1._Vj(_nv1);
if (this._Nt1 == _Kj1._7t1) {
this._Ft1._2g = _961(this._Ft1._2g, 0.0)
} else if (this._Nt1 == _Kj1._8t1) {
this._Ft1._2g = _761(this._Ft1._2g, 0.0)
}
var _99 = _K41._R41(_ju1._O41(), _K41.Multiply((this._Ft1._2g - _QO._2g), new _K41(this._bv1._f51.x, this._bv1._f51.y)));
var _ov1 = _K41._Vj(this._bv1._j51(_99), new _K41(_QO.x, _QO.y));
this._Ft1.x = _ov1.x;
this._Ft1.y = _ov1.y;
_nv1 = __41._R41(this._Ft1, _QO);
var _Wc1 = _K41._Vj(_K41.Multiply(_nv1.x, this._6v1), _K41.Multiply(_nv1._2g, this._sf1));
var _lv1 = _nv1.x * this._7v1 + _nv1.y + _nv1._2g * this._9v1;
var _mv1 = _nv1.x * this._8v1 + _nv1.y + _nv1._2g * this._av1;
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * _lv1;
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * _mv1
} else {
var _nv1 = this._bv1._j51(_ju1._O41());
this._Ft1.x += _nv1.x;
this._Ft1.y += _nv1.y;
var _Wc1 = _K41.Multiply(_nv1.x, this._6v1);
var _lv1 = _nv1.x * this._7v1 + _nv1.y;
var _mv1 = _nv1.x * this._8v1 + _nv1.y;
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * _lv1;
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * _mv1
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _Xn = _K41._R41(_K41._R41(_K41._Vj(_3k1, _Ha1), _1k1), _Ga1);
var _0o = _V51(_du1, this._1v1);
var _h_ = _H51(_K41._Vj(_Xn, _Ga1), _0o);
var _i_ = _H51(_Ha1, _0o);
var _pv1 = _V51(_du1, this._2v1);
var _4w = _H51(_K41._Vj(_Xn,
_Ga1), _pv1);
var _5w = _H51(_Ha1, _pv1);
var _nh1 = new __41();
var _qv1 = new _K41();
_qv1.x = _G51(_pv1, _Xn);
_qv1.y = _Gr1 - _Er1 - this._Et1;
var _rv1 = _461(_qv1.x);
var _nu1 = _461(_qv1.y);
var _5H = !1;
var _sv1 = 0.0;
if (this._Lt1) {
var _Vs1 = _G51(_0o, _Xn);
if (_461(this._4v1 - this._3v1) < 2.0 * _441) {
_sv1 = _b61(_Vs1, -_a41, _a41);
_rv1 = _961(_rv1, _461(_Vs1));
_5H = !0
} else if (_Vs1 <= this._3v1) {
_sv1 = _b61(_Vs1 - this._3v1 + _441, -_a41, 0.0);
_rv1 = _961(_rv1, this._3v1 - _Vs1);
_5H = !0
} else if (_Vs1 >= this._4v1) {
_sv1 = _b61(_Vs1 - this._4v1 - _441, 0.0, _a41);
_rv1 = _961(_rv1,
_Vs1 - this._4v1);
_5H = !0
}
}
if (_5H) {
var _Vr1 = _Cr1 + _Dr1 + _1f1 * _4w * _4w + _2f1 * _5w * _5w;
var _Xr1 = _1f1 * _4w + _2f1 * _5w;
var _hv1 = _1f1 * _4w * _h_ + _2f1 * _5w * _i_;
var _Wr1 = _1f1 + _2f1;
if (_Wr1 == 0.0) {
_Wr1 = 1.0
}
var _iv1 = _1f1 * _h_ + _2f1 * _i_;
var _jv1 = _Cr1 + _Dr1 + _1f1 * _h_ * _h_ + _2f1 * _i_ * _i_;
var _ir1 = new _d51();
_ir1._bB._Yl(_Vr1, _Xr1, _hv1);
_ir1._cG._Yl(_Xr1, _Wr1, _iv1);
_ir1._f51._Yl(_hv1, _iv1, _jv1);
var _061 = new __41();
_061.x = _qv1.x;
_061.y = _qv1.y;
_061._2g = _sv1;
_nh1 = _ir1._g51(_061._O41())
} else {
var _Vr1 = _Cr1 + _Dr1 + _1f1 * _4w * _4w + _2f1 * _5w * _5w;
var _Xr1 = _1f1 * _4w + _2f1 * _5w;
var _Wr1 = _1f1 + _2f1;
if (_Wr1 == 0.0) {
_Wr1 = 1.0
}
var _ir1 = new _151();
_ir1._bB._Yl(_Vr1, _Xr1);
_ir1._cG._Yl(_Xr1, _Wr1);
var _tv1 = _ir1._851(_qv1._O41());
_nh1.x = _tv1.x;
_nh1.y = _tv1.y;
_nh1._2g = 0.0
}
var _Wc1 = _K41._Vj(_K41.Multiply(_nh1.x, _pv1), _K41.Multiply(_nh1._2g, _0o));
var _lv1 = _nh1.x * _4w + _nh1.y + _nh1._2g * _h_;
var _mv1 = _nh1.x * _5w + _nh1.y + _nh1._2g * _i_;
_1k1._R41(_K41.Multiply(_Cr1, _Wc1));
_Er1 -= _1f1 * _lv1;
_3k1._Vj(_K41.Multiply(_Dr1, _Wc1));
_Gr1 += _2f1 * _mv1;
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
return _rv1 <= _441 && _nu1 <= _541
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['localAxisA'] = this._1v1._X41();
_xn['referenceAngle'] = this._Et1;
_xn['enableLimit'] = this._Lt1;
_xn['lowerTranslation'] = this._3v1;
_xn['upperTranslation'] = this._4v1;
_xn['enableMotor'] = this._Mt1;
_xn['maxMotorForce'] = this._5v1;
_xn['motorSpeed'] = this._Kt1;
return _xn
}
};
_jt1._q31(_Kj1);
function _uv1() {
this.parent.call(this);
this.type = _Kj1._ft1;
this._tt1 = new _K41();
this._ut1 = new _K41();
this._ru1 = 0.0;
this._vv1 = 0.0;
Object.seal(this)
}
_uv1.prototype = {
_6b1: function (_Pk1, _Qk1, anchor) {
this._Qj1 = _Pk1;
this._Rj1 = _Qk1;
this._tt1._mH(this._Qj1._vh1(anchor));
this._ut1._mH(this._Rj1._vh1(anchor))
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this._ru1 = data['maxForce'];
this._vv1 = data['maxTorque']
}
};
_uv1._q31(_0t1);
function _pt1(_Og1) {
this.parent.call(this, _Og1);
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._wv1 = new _K41();
this._xv1 = 0.0;
this._vu1 = _Og1._ru1;
this._yv1 = _Og1._vv1;
this._oq1 = 0;
this._pq1 = 0;
this._Ot1 = new _K41();
this._Pt1 = new _K41();
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._zv1 = new _151();
this._Av1 = 0
}
_pt1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
return _K41.Multiply(_Si1,
this._wv1)
},
_4t1: function (_Si1) {
return _Si1 * this._xv1
},
_Xt1: function () {
return this._Ct1
},
_Yt1: function () {
return this._Dt1
},
_Du1: function (_ih1) {
_W31(_A41(_ih1) && _ih1 >= 0.0);
this._vu1 = _ih1
},
_Eu1: function () {
return this._vu1
},
_Bv1: function (_lh1) {
_W31(_A41(_lh1) && _lh1 >= 0.0);
this._yv1 = _lh1
},
_Cv1: function () {
return this._yv1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1._mH(this._Oj1._ng1._x51);
this._Rt1._mH(this._Mj1._ng1._x51);
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
this._Ot1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
this._Pt1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _ir1 = new _151();
_ir1._bB.x = _Cr1 + _Dr1 + _1f1 * this._Ot1.y * this._Ot1.y + _2f1 * this._Pt1.y * this._Pt1.y;
_ir1._bB.y = -_1f1 * this._Ot1.x * this._Ot1.y - _2f1 * this._Pt1.x * this._Pt1.y;
_ir1._cG.x = _ir1._bB.y;
_ir1._cG.y = _Cr1 + _Dr1 + _1f1 * this._Ot1.x * this._Ot1.x + _2f1 * this._Pt1.x * this._Pt1.x;
this._zv1 = _ir1._551();
this._Av1 = _1f1 + _2f1;
if (this._Av1 > 0.0) {
this._Av1 = 1.0 / this._Av1
}
if (data._z31._Wi1) {
this._wv1.Multiply(data._z31._Ti1);
this._xv1 *= data._z31._Ti1;
var _Wc1 = new _K41(this._wv1.x, this._wv1.y);
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * (_H51(this._Ot1, _Wc1) + this._xv1);
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * (_H51(this._Pt1,
_Wc1) + this._xv1)
} else {
this._wv1._L41();
this._xv1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _l2 = data._z31._Ri1; {
var _gu1 = _E91 - _D91;
var _nh1 = -this._Av1 * _gu1;
var _hu1 = this._xv1;
var _iu1 = _l2 * this._yv1;
this._xv1 = _b61(this._xv1 + _nh1, -_iu1, _iu1);
_nh1 = this._xv1 - _hu1;
_D91 -= _1f1 * _nh1;
_E91 += _2f1 * _nh1
} {
var _ku1 = _K41._Vj(_Hr1, _K41._R41(_J51(_E91, this._Pt1), _K41._R41(_Fr1, _J51(_D91, this._Ot1))));
var _Dv1 = _K51(this._zv1, _ku1)._O41();
var _Ev1 = this._wv1._X7();
this._wv1._Vj(_Dv1);
var _Fv1 = _l2 * this._vu1;
if (this._wv1._S41() > _Fv1 * _Fv1) {
this._wv1._T41();
this._wv1.Multiply(_Fv1)
}
_Dv1 = _K41._R41(this._wv1, _Ev1);
_Fr1._R41(_K41.Multiply(_Cr1, _Dv1));
_D91 -= _1f1 * _H51(this._Ot1, _Dv1);
_Hr1._Vj(_K41.Multiply(_Dr1, _Dv1));
_E91 += _2f1 * _H51(this._Pt1,
_Dv1)
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
return !0
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['maxForce'] = this._vu1;
_xn['maxTorque'] = this._yv1;
return _xn
}
};
_pt1._q31(_Kj1);
function _Gv1() {
this.parent.call(this);
this.type = _Kj1._et1;
this._tt1 = new _K41(0.0, 0.0);
this._ut1 = new _K41(0.0,
0.0);
this._vt1 = 0.0;
this._su1 = 0.0;
this._tu1 = 0.0;
Object.seal(this)
}
_Gv1.prototype = {
_6b1: function (_Pk1, _Qk1, anchor) {
this._Qj1 = _Pk1;
this._Rj1 = _Qk1;
this._tt1._mH(this._Qj1._vh1(anchor));
this._ut1._mH(this._Rj1._vh1(anchor));
this._vt1 = this._Rj1._r51() - this._Qj1._r51()
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this._vt1 = data['referenceAngle'];
this._su1 = data['frequencyHz'];
this._tu1 = data['dampingRatio']
}
};
_Gv1._q31(_0t1);
function _ot1(_Og1) {
this.parent.call(this, _Og1);
this._Ou1 = 0;
this._zu1 = 0;
this._oq1 = 0;
this._pq1 = 0;
this._Ot1 = new _K41();
this._Pt1 = new _K41();
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._Bg1 = new _d51();
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._Et1 = _Og1._vt1;
this._wu1 = _Og1._su1;
this._xu1 = _Og1._tu1;
this._Ft1 = new __41()
}
_ot1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
var _Wc1 = new _K41(this._Ft1.x, this._Ft1.y);
return _K41.Multiply(_Si1, _Wc1)
},
_4t1: function (_Si1) {
return _Si1 * this._Ft1._2g
},
_Xt1: function () {
return this._Ct1
},
_Yt1: function () {
return this._Dt1
},
_Zt1: function () {
return this._Et1
},
_Fu1: function (_Gu1) {
this._wu1 = _Gu1;
},
_Hu1: function () {
return this._wu1
},
_Iu1: function (_Ms1) {
this._xu1 = _Ms1
},
_Ju1: function () {
return this._xu1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1._mH(this._Oj1._ng1._x51);
this._Rt1._mH(this._Mj1._ng1._x51);
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
this._Ot1._mH(_V51(_du1, _K41._R41(this._Ct1, this._Qt1)));
this._Pt1._mH(_V51(_eu1, _K41._R41(this._Dt1, this._Rt1)));
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _ir1 = new _d51();
_ir1._bB.x = _Cr1 + _Dr1 + this._Ot1.y * this._Ot1.y * _1f1 + this._Pt1.y * this._Pt1.y * _2f1;
_ir1._cG.x = -this._Ot1.y * this._Ot1.x * _1f1 - this._Pt1.y * this._Pt1.x * _2f1;
_ir1._f51.x = -this._Ot1.y * _1f1 - this._Pt1.y * _2f1;
_ir1._bB.y = _ir1._cG.x;
_ir1._cG.y = _Cr1 + _Dr1 + this._Ot1.x * this._Ot1.x * _1f1 + this._Pt1.x * this._Pt1.x * _2f1;
_ir1._f51.y = this._Ot1.x * _1f1 + this._Pt1.x * _2f1;
_ir1._bB._2g = _ir1._f51.x;
_ir1._cG._2g = _ir1._f51.y;
_ir1._f51._2g = _1f1 + _2f1;
if (this._wu1 > 0.0) {
_ir1._k51(this._Bg1);
var _Hv1 = _1f1 + _2f1;
var _5b = _Hv1 > 0.0 ? 1.0 / _Hv1 : 0.0;
var _061 = _Gr1 - _Er1 - this._Et1;
var _Ku1 = 2.0 * __31 * this._wu1;
var _Xn = 2.0 * _5b * this._xu1 * _Ku1;
var __l = _5b * _Ku1 * _Ku1;
var _l2 = data._z31._Ri1;
this._zu1 = _l2 * (_Xn + _l2 * __l);
this._zu1 = this._zu1 != 0.0 ? 1.0 / this._zu1 : 0.0;
this._Ou1 = _061 * _l2 * __l * this._zu1;
_Hv1 += this._zu1;
this._Bg1._f51._2g = _Hv1 != 0.0 ? 1.0 / _Hv1 : 0.0
} else {
_ir1._m51(this._Bg1);
this._zu1 = 0.0;
this._Ou1 = 0.0
}
if (data._z31._Wi1) {
this._Ft1.Multiply(data._z31._Ti1);
var _Wc1 = new _K41(this._Ft1.x, this._Ft1.y);
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * (_H51(this._Ot1, _Wc1) + this._Ft1._2g);
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * (_H51(this._Pt1, _Wc1) + this._Ft1._2g)
} else {
this._Ft1._L41()
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
if (this._wu1 > 0.0) {
var _ku1 = _E91 - _D91;
var _Dv1 = -this._Bg1._f51._2g * (_ku1 + this._Ou1 + this._zu1 * this._Ft1._2g);
this._Ft1._2g += _Dv1;
_D91 -= _1f1 * _Dv1;
_E91 += _2f1 * _Dv1;
var _ju1 = _K41._R41(_K41._R41(_K41._Vj(_Hr1, _J51(_E91, this._Pt1)), _Fr1), _J51(_D91, this._Ot1));
var _tv1 = _R51(this._Bg1, _ju1)._O41();
this._Ft1.x += _tv1.x;
this._Ft1.y += _tv1.y;
var _Wc1 = _tv1._X7();
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * _H51(this._Ot1, _Wc1);
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * _H51(this._Pt1, _Wc1)
} else {
var _ju1 = _K41._R41(_K41._R41(_K41._Vj(_Hr1,
_J51(_E91, this._Pt1)), _Fr1), _J51(_D91, this._Ot1));
var _ku1 = _E91 - _D91;
var _gu1 = new __41(_ju1.x, _ju1.y, _ku1);
var _nh1 = _Q51(this._Bg1, _gu1)._O41();
this._Ft1._Vj(_nh1);
var _Wc1 = new _K41(_nh1.x, _nh1.y);
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * (_H51(this._Ot1, _Wc1) + _nh1._2g);
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * (_H51(this._Pt1, _Wc1) + _nh1._2g)
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _ou1, _nu1;
var _ir1 = new _d51();
_ir1._bB.x = _Cr1 + _Dr1 + _Ga1.y * _Ga1.y * _1f1 + _Ha1.y * _Ha1.y * _2f1;
_ir1._cG.x = -_Ga1.y * _Ga1.x * _1f1 - _Ha1.y * _Ha1.x * _2f1;
_ir1._f51.x = -_Ga1.y * _1f1 - _Ha1.y * _2f1;
_ir1._bB.y = _ir1._cG.x;
_ir1._cG.y = _Cr1 + _Dr1 + _Ga1.x * _Ga1.x * _1f1 + _Ha1.x * _Ha1.x * _2f1;
_ir1._f51.y = _Ga1.x * _1f1 + _Ha1.x * _2f1;
_ir1._bB._2g = _ir1._f51.x;
_ir1._cG._2g = _ir1._f51.y;
_ir1._f51._2g = _1f1 + _2f1;
if (this._wu1 > 0.0) {
var _qv1 = _K41._R41(_K41._R41(_K41._Vj(_3k1, _Ha1), _1k1), _Ga1);
_ou1 = _qv1.Length();
_nu1 = 0.0;
var _Wc1 = _ir1._j51(_qv1)._O41();
_1k1._R41(_K41.Multiply(_Cr1, _Wc1));
_Er1 -= _1f1 * _H51(_Ga1, _Wc1);
_3k1._Vj(_K41.Multiply(_Dr1, _Wc1));
_Gr1 += _2f1 * _H51(_Ha1, _Wc1)
} else {
var _qv1 = _K41._R41(_K41._R41(_K41._Vj(_3k1, _Ha1), _1k1), _Ga1);
var _sv1 = _Gr1 - _Er1 - this._Et1;
_ou1 = _qv1.Length();
_nu1 = _461(_sv1);
var _061 = new __41(_qv1.x, _qv1.y, _sv1);
var _nh1 = _ir1._g51(_061)._O41();
var _Wc1 = new _K41(_nh1.x, _nh1.y);
_1k1._R41(_K41.Multiply(_Cr1, _Wc1));
_Er1 -= _1f1 * (_H51(_Ga1, _Wc1) + _nh1._2g);
_3k1._Vj(_K41.Multiply(_Dr1, _Wc1));
_Gr1 += _2f1 * (_H51(_Ha1, _Wc1) + _nh1._2g)
}
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
return _ou1 <= _441 && _nu1 <= _541
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this,
_xn);
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['referenceAngle'] = this._Et1;
_xn['frequencyHz'] = this._wu1;
_xn['dampingRatio'] = this._xu1;
return _xn
}
};
_ot1._q31(_Kj1);
function _Iv1() {
this.parent.call(this);
this.type = _Kj1._dt1;
this._tt1 = new _K41();
this._ut1 = new _K41();
this._Yu1 = new _K41(1.0, 0.0);
this._Bt1 = !1;
this._yt1 = 0.0;
this._zt1 = 0.0;
this._su1 = 2.0;
this._tu1 = 0.7;
Object.seal(this)
}
_Iv1.prototype = {
_6b1: function (_Pk1, _Qk1, anchor, _0o) {
this._Qj1 = _Pk1;
this._Rj1 = _Qk1;
this._tt1._mH(this._Qj1._vh1(anchor));
this._ut1._mH(this._Rj1._vh1(anchor));
this._Yu1._mH(this._Qj1._xh1(_0o))
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this._Yu1._Y41(data['localAxisA']);
this._Bt1 = data['enableMotor'];
this._yt1 = data['maxMotorTorque'];
this._zt1 = data['motorSpeed'];
this._su1 = data['frequencyHz'];
this._tu1 = data['dampingRatio']
}
};
_Iv1._q31(_0t1);
function _nt1(_Og1) {
this.parent.call(this, _Og1);
this._oq1 = 0;
this._pq1 = 0;
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._1v1 = _Og1._Yu1._X7();
this._2v1 = _J51(1.0, this._1v1);
this._Bg1 = 0.0;
this._Ft1 = 0.0;
this._Wt1 = 0.0;
this._Gt1 = 0.0;
this._Jv1 = 0.0;
this._Kv1 = 0.0;
this._Jt1 = _Og1._yt1;
this._Kt1 = _Og1._zt1;
this._Mt1 = _Og1._Bt1;
this._wu1 = _Og1._su1;
this._xu1 = _Og1._tu1;
this._Ou1 = 0.0;
this._zu1 = 0.0;
this._Lv1 = new _K41();
this._Mv1 = new _K41();
this._Nv1 = this._Ov1 = 0;
this._Pv1 = this._Qv1 = 0
}
_nt1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
return _K41.Multiply(_Si1, _K41._Vj(_K41.Multiply(this._Ft1, this._Mv1), _K41.Multiply(this._Kv1, this._Lv1)))
},
_4t1: function (_Si1) {
return _Si1 * this._Gt1;
},
_Xt1: function () {
return this._Ct1
},
_Yt1: function () {
return this._Dt1
},
_cv1: function () {
return this._1v1
},
_dv1: function () {
var _Pk1 = this._Oj1;
var _Qk1 = this._Mj1;
var _U91 = _Pk1._sh1(this._Ct1);
var _V91 = _Qk1._sh1(this._Dt1);
var _Xn = _K41._R41(_V91, _U91);
var _0o = _Pk1._th1(this._1v1);
var _Vs1 = _G51(_Xn, _0o);
return _Vs1
},
_0u1: function () {
var _D91 = this._Oj1._tg1;
var _E91 = this._Mj1._tg1;
return _E91 - _D91
},
_6u1: function () {
return this._Mt1
},
_7u1: function (_Mh1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Mt1 = _Mh1
},
_8u1: function (_d3) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Kt1 = _d3
},
_9u1: function () {
return this._Kt1
},
_au1: function (_lh1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._Jt1 = _lh1
},
_bu1: function () {
return this._Jt1
},
_cu1: function (_Si1) {
return _Si1 * this._Gt1
},
_Rv1: function (_Gu1) {
this._wu1 = _Gu1
},
_Sv1: function () {
return this._wu1
},
_Tv1: function (_Ms1) {
this._xu1 = _Ms1
},
_Uv1: function () {
return this._xu1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1._mH(this._Oj1._ng1._x51);
this._Rt1._mH(this._Mj1._ng1._x51);
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _Xn = _K41._R41(_K41._R41(_K41._Vj(_3k1, _Ha1), _1k1), _Ga1); {
this._Mv1._mH(_V51(_du1, this._2v1));
this._Pv1 = _H51(_K41._Vj(_Xn, _Ga1), this._Mv1);
this._Qv1 = _H51(_Ha1, this._Mv1);
this._Bg1 = _Cr1 + _Dr1 + _1f1 * this._Pv1 * this._Pv1 + _2f1 * this._Qv1 * this._Qv1;
if (this._Bg1 > 0.0) {
this._Bg1 = 1.0 / this._Bg1
}
}
this._Jv1 = 0.0;
this._Ou1 = 0.0;
this._zu1 = 0.0;
if (this._wu1 > 0.0) {
this._Lv1._mH(_V51(_du1, this._1v1));
this._Nv1 = _H51(_K41._Vj(_Xn, _Ga1), this._Lv1);
this._Ov1 = _H51(_Ha1, this._Lv1);
var _Uu1 = _Cr1 + _Dr1 + _1f1 * this._Nv1 * this._Nv1 + _2f1 * this._Ov1 * this._Ov1;
if (_Uu1 > 0.0) {
this._Jv1 = 1.0 / _Uu1;
var _061 = _G51(_Xn, this._Lv1);
var _Ku1 = 2.0 * __31 * this._wu1;
var _Qo1 = 2.0 * this._Jv1 * this._xu1 * _Ku1;
var __l = this._Jv1 * _Ku1 * _Ku1;
var _l2 = data._z31._Ri1;
this._zu1 = _l2 * (_Qo1 + _l2 * __l);
if (this._zu1 > 0.0) {
this._zu1 = 1.0 / this._zu1
}
this._Ou1 = _061 * _l2 * __l * this._zu1;
this._Jv1 = _Uu1 + this._zu1;
if (this._Jv1 > 0.0) {
this._Jv1 = 1.0 / this._Jv1
}
}
} else {
this._Kv1 = 0.0
}
if (this._Mt1) {
this._Wt1 = _1f1 + _2f1;
if (this._Wt1 > 0.0) {
this._Wt1 = 1.0 / this._Wt1
}
} else {
this._Wt1 = 0.0;
this._Gt1 = 0.0
}
if (data._z31._Wi1) {
this._Ft1 *= data._z31._Ti1;
this._Kv1 *= data._z31._Ti1;
this._Gt1 *= data._z31._Ti1;
var _Wc1 = _K41._Vj(_K41.Multiply(this._Ft1, this._Mv1), _K41.Multiply(this._Kv1, this._Lv1));
var _lv1 = this._Ft1 * this._Pv1 + this._Kv1 * this._Nv1 + this._Gt1;
var _mv1 = this._Ft1 * this._Qv1 + this._Kv1 * this._Ov1 + this._Gt1;
_Fr1._R41(_K41.Multiply(this._St1, _Wc1));
_D91 -= this._Ut1 * _lv1;
_Hr1._Vj(_K41.Multiply(this._Tt1, _Wc1));
_E91 += this._Vt1 * _mv1
} else {
this._Ft1 = 0.0;
this._Kv1 = 0.0;
this._Gt1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2; {
var _gu1 = _G51(this._Lv1, _K41._R41(_Hr1, _Fr1)) + this._Ov1 * _E91 - this._Nv1 * _D91;
var _nh1 = -this._Jv1 * (_gu1 + this._Ou1 + this._zu1 * this._Kv1);
this._Kv1 += _nh1;
var _Wc1 = _K41.Multiply(_nh1, this._Lv1);
var _lv1 = _nh1 * this._Nv1;
var _mv1 = _nh1 * this._Ov1;
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * _lv1;
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * _mv1
} {
var _gu1 = _E91 - _D91 - this._Kt1;
var _nh1 = -this._Wt1 * _gu1;
var _hu1 = this._Gt1;
var _iu1 = data._z31._Ri1 * this._Jt1;
this._Gt1 = _b61(this._Gt1 + _nh1, -_iu1, _iu1);
_nh1 = this._Gt1 - _hu1;
_D91 -= _1f1 * _nh1;
_E91 += _2f1 * _nh1
} {
var _gu1 = _G51(this._Mv1, _K41._R41(_Hr1, _Fr1)) + this._Qv1 * _E91 - this._Pv1 * _D91;
var _nh1 = -this._Bg1 * _gu1;
this._Ft1 += _nh1;
var _Wc1 = _K41.Multiply(_nh1, this._Mv1);
var _lv1 = _nh1 * this._Pv1;
var _mv1 = _nh1 * this._Qv1;
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * _lv1;
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * _mv1
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _Xn = _K41._Vj(_K41._R41(_3k1, _1k1), _K41._R41(_Ha1, _Ga1));
var _6M = _V51(_du1, this._2v1);
var _Vv1 = _H51(_K41._Vj(_Xn, _Ga1), _6M);
var _Wv1 = _H51(_Ha1, _6M);
var _061 = _G51(_Xn, _6M);
var __l = this._St1 + this._Tt1 + this._Ut1 * this._Pv1 * this._Pv1 + this._Vt1 * this._Qv1 * this._Qv1;
var _nh1;
if (__l != 0.0) {
_nh1 = -_061 / __l
} else {
_nh1 = 0.0
}
var _Wc1 = _K41.Multiply(_nh1, _6M);
var _lv1 = _nh1 * _Vv1;
var _mv1 = _nh1 * _Wv1;
_1k1._R41(_K41.Multiply(this._St1, _Wc1));
_Er1 -= this._Ut1 * _lv1;
_3k1._Vj(_K41.Multiply(this._Tt1, _Wc1));
_Gr1 += this._Vt1 * _mv1;
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
return _461(_061) <= _441
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['localAxisA'] = this._Xv1._X41();
_xn['enableMotor'] = this._Mt1;
_xn['maxMotorTorque'] = this._Jt1;
_xn['motorSpeed'] = this._Kt1;
_xn['frequencyHz'] = this._wu1;
_xn['dampingRatio'] = this._xu1;
return _xn
}
};
_nt1._q31(_Kj1);
function _Yv1() {
this.parent.call(this);
this.type = _Kj1._ct1;
this._Zv1 = null;
this.__v1 = null;
this._Ms1 = 1.0;
Object.seal(this)
}
_Yv1.prototype = {
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._Zv1 = data['joint1'];
this.__v1 = data['joint2'];
this._Ms1 = data['ratio']
}
};
_Yv1._q31(_0t1); /// @warning You have to manually destroy the gear joint if joint1 or joint2
function _mt1(_Og1) {
this.parent.call(this, _Og1);
this._0w1 = _Og1._Zv1;
this._1w1 = _Og1.__v1;
this._2w1 = this._0w1._W61();
this._3w1 = this._1w1._W61();
_W31(this._2w1 == _Kj1._at1 || this._2w1 == _Kj1._bt1);
_W31(this._3w1 == _Kj1._at1 || this._3w1 == _Kj1._bt1);
var _4w1, _5w1;
this._6w1 = this._0w1.__k1();
this._Oj1 = this._0w1._0l1();
var _7b1 = this._Oj1._hd1;
var _Er1 = this._Oj1._ng1._a9;
var _7w1 = this._6w1._hd1;
var _8w1 = this._6w1._ng1._a9;
this._Ct1 = new _K41();
this._Dt1 = new _K41();
this._9w1 = new _K41();
this._aw1 = new _K41();
this._bw1 = new _K41();
this._cw1 = new _K41();
if (this._2w1 == _Kj1._at1) {
var _dw1 = _Og1._Zv1;
this._9w1._mH(_dw1._Ct1);
this._Ct1._mH(_dw1._Dt1);
this._ew1 = _dw1._Et1;
this._bw1._L41();
_4w1 = _Er1 - _8w1 - this._ew1
} else {
var _fw1 = _Og1._Zv1;
this._9w1._mH(_fw1._Ct1);
this._Ct1._mH(_fw1._Dt1);
this._ew1 = _fw1._Et1;
this._bw1._mH(_fw1._1v1);
var _gw1 = this._9w1;
var _U91 = _W51(_7w1._qC, _K41._Vj(_V51(_7b1._qC, this._Ct1), _K41._R41(_7b1._gE, _7w1._gE)));
_4w1 = _G51(_K41._R41(_U91,
_gw1), this._bw1)
}
this._hw1 = this._1w1.__k1();
this._Mj1 = this._1w1._0l1();
var _9b1 = this._Mj1._hd1;
var _Gr1 = this._Mj1._ng1._a9;
var _iw1 = this._hw1._hd1;
var _jw1 = this._hw1._ng1._a9;
if (this._3w1 == _Kj1._at1) {
var _dw1 = _Og1.__v1;
this._aw1._mH(_dw1._Ct1);
this._Dt1._mH(_dw1._Dt1);
this._kw1 = _dw1._Et1;
this._cw1._L41();
_5w1 = _Gr1 - _jw1 - this._kw1
} else {
var _fw1 = _Og1.__v1;
this._aw1._mH(_fw1._Ct1);
this._Dt1._mH(_fw1._Dt1);
this._kw1 = _fw1._Et1;
this._cw1._mH(_fw1._1v1);
var _lw1 = this._aw1;
var _V91 = _W51(_iw1._qC, _K41._Vj(_V51(_9b1._qC,
this._Dt1), _K41._R41(_9b1._gE, _iw1._gE)));
_5w1 = _G51(_K41._R41(_V91, _lw1), this._cw1)
}
this._mw1 = _Og1._Ms1;
this._nw1 = _4w1 + this._mw1 * _5w1;
this._Ft1 = 0.0;
this._oq1 = this._pq1 = this._ow1 = this._pw1 = 0;
this._qw1 = new _K41();
this._rw1 = new _K41();
this._sw1 = new _K41();
this._tw1 = new _K41();
this._uw1 = this._vw1 = this._ww1 = this._xw1 = 0;
this._yw1 = this._zw1 = this._Aw1 = this._Bw1 = 0;
this._Cw1 = new _K41(), this._Dw1 = new _K41();
this._Ew1 = this._Fw1 = this._Gw1 = this._Hw1 = 0;
this._Bg1 = 0
}
_mt1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
var _Wc1 = _K41.Multiply(this._Ft1, this._Cw1);
return _K41.Multiply(_Si1, _Wc1)
},
_4t1: function (_Si1) {
var _Iw1 = this._Ft1 * this._Ew1;
return _Si1 * _Iw1
},
_Jw1: function () {
return this._0w1
},
_Kw1: function () {
return this._1w1
},
_Lw1: function (_Ms1) {
_W31(_A41(_Ms1));
this._mw1 = _Ms1
},
_Mw1: function () {
return this._mw1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._ow1 = this._6w1._eg1;
this._pw1 = this._hw1._eg1;
this._qw1._mH(this._Oj1._ng1._x51);
this._rw1._mH(this._Mj1._ng1._x51);
this._sw1._mH(this._6w1._ng1._x51);
this._tw1._mH(this._hw1._ng1._x51);
this._uw1 = this._Oj1._Cg1;
this._vw1 = this._Mj1._Cg1;
this._ww1 = this._6w1._Cg1;
this._xw1 = this._hw1._Cg1;
this._yw1 = this._Oj1._Eg1;
this._zw1 = this._Mj1._Eg1;
this._Aw1 = this._6w1._Eg1;
this._Bw1 = this._hw1._Eg1;
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _8w1 = data.__i1[this._ow1]._a9;
var _Nw1 = data._0j1[this._ow1]._O9._X7();
var _Ow1 = data._0j1[this._ow1]._k2;
var _jw1 = data.__i1[this._pw1]._a9;
var _Pw1 = data._0j1[this._pw1]._O9._X7();
var _Qw1 = data._0j1[this._pw1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1),
_Rw1 = new _q51(_8w1),
_Sw1 = new _q51(_jw1);
this._Bg1 = 0.0;
if (this._2w1 == _Kj1._at1) {
this._Cw1._L41();
this._Ew1 = 1.0;
this._Gw1 = 1.0;
this._Bg1 += this._yw1 + this._Aw1
} else {
var _N9 = _V51(_Rw1, this._bw1);
var _Tw1 = _V51(_Rw1, _K41._R41(this._9w1, this._sw1));
var _Ga1 = _V51(_du1,
_K41._R41(this._Ct1, this._qw1));
this._Cw1._mH(_N9);
this._Gw1 = _H51(_Tw1, _N9);
this._Ew1 = _H51(_Ga1, _N9);
this._Bg1 += this._ww1 + this._uw1 + this._Aw1 * this._Gw1 * this._Gw1 + this._yw1 * this._Ew1 * this._Ew1;
}
if (this._3w1 == _Kj1._at1) {
this._Dw1._L41();
this._Fw1 = this._mw1;
this._Hw1 = this._mw1;
this._Bg1 += this._mw1 * this._mw1 * (this._zw1 + this._Bw1)
} else {
var _N9 = _V51(_Sw1, this._cw1);
var _Uw1 = _V51(_Sw1, _K41._R41(this._aw1, this._tw1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._rw1));
this._Dw1._mH(_K41.Multiply(this._mw1, _N9));
this._Hw1 = this._mw1 * _H51(_Uw1, _N9);
this._Fw1 = this._mw1 * _H51(_Ha1, _N9);
this._Bg1 += this._mw1 * this._mw1 * (this._xw1 + this._vw1) + this._Bw1 * this._Hw1 * this._Hw1 + this._zw1 * this._Fw1 * this._Fw1
}
this._Bg1 = this._Bg1 > 0.0 ? 1.0 / this._Bg1 : 0.0;
if (data._z31._Wi1) {
_Fr1._Vj(_K41.Multiply((this._uw1 * this._Ft1), this._Cw1));
_D91 += this._yw1 * this._Ft1 * this._Ew1;
_Hr1._Vj(_K41.Multiply((this._vw1 * this._Ft1), this._Dw1));
_E91 += this._zw1 * this._Ft1 * this._Fw1;
_Nw1._R41(_K41.Multiply((this._ww1 * this._Ft1), this._Cw1));
_Ow1 -= this._Aw1 * this._Ft1 * this._Gw1;
_Pw1._R41(_K41.Multiply((this._xw1 * this._Ft1), this._Dw1));
_Qw1 -= this._Bw1 * this._Ft1 * this._Hw1
} else {
this._Ft1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91;
data._0j1[this._ow1]._O9._mH(_Nw1);
data._0j1[this._ow1]._k2 = _Ow1;
data._0j1[this._pw1]._O9._mH(_Pw1);
data._0j1[this._pw1]._k2 = _Qw1
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Nw1 = data._0j1[this._ow1]._O9._X7();
var _Ow1 = data._0j1[this._ow1]._k2;
var _Pw1 = data._0j1[this._pw1]._O9._X7();
var _Qw1 = data._0j1[this._pw1]._k2;
var _gu1 = _G51(this._Cw1, _K41._R41(_Fr1, _Nw1)) + _G51(this._Dw1, _K41._R41(_Hr1, _Pw1));
_gu1 += (this._Ew1 * _D91 - this._Gw1 * _Ow1) + (this._Fw1 * _E91 - this._Hw1 * _Qw1);
var _nh1 = -this._Bg1 * _gu1;
this._Ft1 += _nh1;
_Fr1._Vj(_K41.Multiply((this._uw1 * _nh1), this._Cw1));
_D91 += this._yw1 * _nh1 * this._Ew1;
_Hr1._Vj(_K41.Multiply((this._vw1 * _nh1), this._Dw1));
_E91 += this._zw1 * _nh1 * this._Fw1;
_Nw1._R41(_K41.Multiply((this._ww1 * _nh1), this._Cw1));
_Ow1 -= this._Aw1 * _nh1 * this._Gw1;
_Pw1._R41(_K41.Multiply((this._xw1 * _nh1), this._Dw1));
_Qw1 -= this._Bw1 * _nh1 * this._Hw1;
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91;
data._0j1[this._ow1]._O9._mH(_Nw1);
data._0j1[this._ow1]._k2 = _Ow1;
data._0j1[this._pw1]._O9._mH(_Pw1);
data._0j1[this._pw1]._k2 = _Qw1
},
_ks1: function (data) {
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Vw1 = data.__i1[this._ow1]._j2._X7();
var _8w1 = data.__i1[this._ow1]._a9;
var _Ww1 = data.__i1[this._pw1]._j2._X7();
var _jw1 = data.__i1[this._pw1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1),
_Rw1 = new _q51(_8w1),
_Sw1 = new _q51(_jw1);
var _rv1 = 0.0;
var _4w1, _5w1;
var _Xw1 = new _K41(),
_Yw1 = new _K41();
var _Zw1, __w1, _0x1, _1x1;
var _S61 = 0.0;
if (this._2w1 == _Kj1._at1) {
_Xw1._L41();
_Zw1 = 1.0;
_0x1 = 1.0;
_S61 += this._yw1 + this._Aw1;
_4w1 = _Er1 - _8w1 - this._ew1
} else {
var _N9 = _V51(_Rw1, this._bw1);
var _Tw1 = _V51(_Rw1, _K41._R41(this._9w1, this._sw1));
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._qw1));
_Xw1._mH(_N9);
_0x1 = _H51(_Tw1, _N9);
_Zw1 = _H51(_Ga1, _N9);
_S61 += this._ww1 + this._uw1 + this._Aw1 * _0x1 * _0x1 + this._yw1 * _Zw1 * _Zw1;
var _gw1 = _K41._R41(this._9w1, this._sw1);
var _U91 = _W51(_Rw1, _K41._Vj(_Ga1, _K41._R41(_1k1, _Vw1)));
_4w1 = _G51(_K41._R41(_U91, _gw1), this._bw1)
}
if (this._3w1 == _Kj1._at1) {
_Yw1._L41();
__w1 = this._mw1;
_1x1 = this._mw1;
_S61 += this._mw1 * this._mw1 * (this._zw1 + this._Bw1);
_5w1 = _Gr1 - _jw1 - this._kw1
} else {
var _N9 = _V51(_Sw1, this._cw1);
var _Uw1 = _V51(_Sw1, _K41._R41(this._aw1, this._tw1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._rw1));
_Yw1._mH(_K41.Multiply(this._mw1, _N9));
_1x1 = this._mw1 * _H51(_Uw1, _N9);
__w1 = this._mw1 * _H51(_Ha1, _N9);
_S61 += this._mw1 * this._mw1 * (this._xw1 + this._vw1) + this._Bw1 * _1x1 * _1x1 + this._zw1 * __w1 * __w1;
var _lw1 = _K41._R41(this._aw1, this._tw1);
var _V91 = _W51(_Sw1, _K41._Vj(_Ha1, _K41._R41(_3k1, _Ww1)));
_5w1 = _G51(_K41._R41(_V91, _lw1), this._cw1)
}
var _061 = (_4w1 + this._mw1 * _5w1) - this._nw1;
var _nh1 = 0.0;
if (_S61 > 0.0) {
_nh1 = -_061 / _S61
}
_1k1._Vj(_K41.Multiply(this._uw1, _K41.Multiply(_nh1, _Xw1)));
_Er1 += this._yw1 * _nh1 * _Zw1;
_3k1._Vj(_K41.Multiply(this._vw1, _K41.Multiply(_nh1, _Yw1)));
_Gr1 += this._zw1 * _nh1 * __w1;
_Vw1._R41(_K41.Multiply(this._ww1, _K41.Multiply(_nh1, _Xw1)));
_8w1 -= this._Aw1 * _nh1 * _0x1;
_Ww1._R41(_K41.Multiply(this._xw1, _K41.Multiply(_nh1, _Yw1)));
_jw1 -= this._Bw1 * _nh1 * _1x1;
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
data.__i1[this._ow1]._j2._mH(_Vw1);
data.__i1[this._ow1]._a9 = _8w1;
data.__i1[this._pw1]._j2._mH(_Ww1);
data.__i1[this._pw1]._a9 = _jw1;
return _rv1 < _441
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['joint1'] = this._0w1._2x1;
_xn['joint2'] = this._1w1._2x1;
_xn['ratio'] = this._mw1;
return _xn
}
};
_mt1._q31(_Kj1);
function _3x1() {
this.parent.call(this);
this.type = _Kj1._9l1;
this._4x1 = new _K41();
this._5x1 = 0.0;
this._ru1 = 1.0;
this._vv1 = 1.0;
this._6x1 = 0.3;
Object.seal(this)
}
_3x1.prototype = {
_6b1: function (_Pk1, _Qk1) {
this._Qj1 = _Pk1;
this._Rj1 = _Qk1;
var _7x1 = this._Rj1._ZR();
this._4x1._mH(this._Qj1._vh1(_7x1));
var _8x1 = this._Qj1._r51();
var _9x1 = this._Rj1._r51();
this._5x1 = _9x1 - _8x1
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._4x1._Y41(data['linearOffset']);
this._5x1 = data['angularOffset'];
this._ru1 = data['maxForce'];
this._vv1 = data['maxTorque'];
this._6x1 = data['correctionFactor']
}
};
_3x1._q31(_0t1);
function _rt1(_Og1) {
this.parent.call(this, _Og1);
this._ax1 = _Og1._4x1._X7();
this._bx1 = _Og1._5x1;
this._wv1 = new _K41();
this._xv1 = 0.0;
this._vu1 = _Og1._ru1;
this._yv1 = _Og1._vv1;
this._cx1 = _Og1._6x1;
this._oq1 = 0;
this._pq1 = 0;
this._Ot1 = new _K41();
this._Pt1 = new _K41();
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._dx1 = new _K41();
this._ex1 = 0;
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._zv1 = new _151();
this._Av1 = 0
}
_rt1.prototype = {
_1l1: function () {
return this._Oj1._ZR()
},
_2l1: function () {
return this._Mj1._ZR()
},
_3t1: function (_Si1) {
return _K41.Multiply(_Si1, this._wv1)
},
_4t1: function (_Si1) {
return _Si1 * this._xv1
},
_fx1: function (_4x1) {
if (_4x1.x != this._ax1.x || _4x1.y != this._ax1.y) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._ax1._mH(_4x1)
}
},
_bl1: function () {
return this._ax1
},
_gx1: function (_5x1) {
if (_5x1 != this._bx1) {
this._Oj1._wS(!0);
this._Mj1._wS(!0);
this._bx1 = _5x1
}
},
_hx1: function () {
return this._bx1
},
_Du1: function (_ih1) {
_W31(_A41(_ih1) && _ih1 >= 0.0);
this._vu1 = _ih1
},
_Eu1: function () {
return this._vu1
},
_Bv1: function (_lh1) {
_W31(_A41(_lh1) && _lh1 >= 0.0);
this._yv1 = _lh1
},
_Cv1: function () {
return this._yv1
},
_ix1: function (_jx1) {
_W31(_A41(_jx1) && 0.0 <= _jx1 && _jx1 <= 1.0);
this._cx1 = _jx1
},
_kx1: function () {
return this._cx1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1._mH(this._Oj1._ng1._x51);
this._Rt1._mH(this._Mj1._ng1._x51);
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
this._Ot1._mH(_V51(_du1, this._Qt1._O41()));
this._Pt1._mH(_V51(_eu1, this._Rt1._O41()));
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _ir1 = new _151();
_ir1._bB.x = _Cr1 + _Dr1 + _1f1 * this._Ot1.y * this._Ot1.y + _2f1 * this._Pt1.y * this._Pt1.y;
_ir1._bB.y = -_1f1 * this._Ot1.x * this._Ot1.y - _2f1 * this._Pt1.x * this._Pt1.y;
_ir1._cG.x = _ir1._bB.y;
_ir1._cG.y = _Cr1 + _Dr1 + _1f1 * this._Ot1.x * this._Ot1.x + _2f1 * this._Pt1.x * this._Pt1.x;
this._zv1._mH(_ir1._551());
this._Av1 = _1f1 + _2f1;
if (this._Av1 > 0.0) {
this._Av1 = 1.0 / this._Av1
}
this._dx1.x = _3k1.x + this._Pt1.x - _1k1.x - this._Ot1.x - (_du1._j2 * this._ax1.x - _du1._wy * this._ax1.y);
this._dx1.y = _3k1.y + this._Pt1.y - _1k1.y - this._Ot1.y - (_du1._wy * this._ax1.x + _du1._j2 * this._ax1.y);
this._ex1 = _Gr1 - _Er1 - this._bx1;
if (data._z31._Wi1) {
this._wv1.Multiply(data._z31._Ti1);
this._xv1 *= data._z31._Ti1;
var _Wc1 = new _K41(this._wv1.x, this._wv1.y);
_Fr1._R41(_K41.Multiply(_Cr1, _Wc1));
_D91 -= _1f1 * (_H51(this._Ot1, _Wc1) + this._xv1);
_Hr1._Vj(_K41.Multiply(_Dr1, _Wc1));
_E91 += _2f1 * (_H51(this._Pt1, _Wc1) + this._xv1)
} else {
this._wv1._L41();
this._xv1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Cr1 = this._St1,
_Dr1 = this._Tt1;
var _1f1 = this._Ut1,
_2f1 = this._Vt1;
var _l2 = data._z31._Ri1;
var _lx1 = data._z31._Si1; {
var _gu1 = _E91 - _D91 + _lx1 * this._cx1 * this._ex1;
var _nh1 = -this._Av1 * _gu1;
var _hu1 = this._xv1;
var _iu1 = _l2 * this._yv1;
this._xv1 = _b61(this._xv1 + _nh1, -_iu1, _iu1);
_nh1 = this._xv1 - _hu1;
_D91 -= _1f1 * _nh1;
_E91 += _2f1 * _nh1
} {
var _gu1 = new _K41(_Hr1.x + (-_E91 * this._Pt1.x) - _Fr1.x - (-_D91 * this._Ot1.x) + _lx1 * this._cx1 * this._dx1.x, _Hr1.y + (_E91 * this._Pt1.y) - _Fr1.y - (_D91 * this._Ot1.y) + _lx1 * this._cx1 * this._dx1.y);
var _nh1 = _K51(this._zv1, _gu1)._O41();
var _hu1 = this._wv1._X7();
this._wv1._Vj(_nh1);
var _iu1 = _l2 * this._vu1;
if (this._wv1._S41() > _iu1 * _iu1) {
this._wv1._T41();
this._wv1.Multiply(_iu1)
}
_nh1._mH(_K41._R41(this._wv1, _hu1));
_Fr1._R41(_K41.Multiply(_Cr1, _nh1));
_D91 -= _1f1 * _H51(this._Ot1, _nh1);
_Hr1._Vj(_K41.Multiply(_Dr1, _nh1));
_E91 += _2f1 * _H51(this._Pt1, _nh1)
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
return !0
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['linearOffset'] = this._ax1._X41();
_xn['angularOffset'] = this._bx1;
_xn['maxForce'] = this._vu1;
_xn['maxTorque'] = this._yv1;
_xn['correctionFactor'] = this._cx1;
return _xn
}
};
_rt1._q31(_Kj1);
var _mx1 = 2.0;
function _nx1() {
this.parent.call(this);
this.type = _Kj1._4l1;
this._ox1 = new _K41(-1.0, 1.0);
this._px1 = new _K41(1.0, 1.0);
this._tt1 = new _K41(-1.0, 0.0);
this._ut1 = new _K41(1.0, 0.0);
this._qx1 = 0.0;
this._rx1 = 0.0;
this._Ms1 = 1.0;
this._Sj1 = !0;
Object.seal(this)
}
_nx1.prototype = {
_6b1: function (_Pk1, _Qk1, _sx1, _tx1, _ux1, _vx1, _79) {
this._Qj1 = _Pk1;
this._Rj1 = _Qk1;
this._ox1._mH(_sx1);
this._px1._mH(_tx1);
this._tt1._mH(this._Qj1._vh1(_ux1));
this._ut1._mH(this._Rj1._vh1(_vx1));
var _wx1 = _K41._R41(_ux1, _sx1);
this._qx1 = _wx1.Length();
var _xx1 = _K41._R41(_vx1, _tx1);
this._rx1 = _xx1.Length();
this._Ms1 = _79;
_W31(this._Ms1 > _Z31)
},
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._ox1._Y41(data['groundAnchorA']);
this._px1._Y41(data['groundAnchorB']);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this._qx1 = data['lengthA'];
this._rx1 = data['lengthB'];
this._Ms1 = data['ratio']
}
};
_nx1._q31(_0t1);
function _lt1(_Og1) {
this.parent.call(this, _Og1);
this._oq1 = 0;
this._pq1 = 0;
this._yx1 = new _K41();
this._zx1 = new _K41();
this._Ot1 = new _K41();
this._Pt1 = new _K41();
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0;
this._Bg1 = 0;
this._Ax1 = _Og1._ox1._X7();
this._Bx1 = _Og1._px1._X7();
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._Cx1 = _Og1._qx1;
this._Dx1 = _Og1._rx1;
_W31(_Og1._Ms1 != 0.0);
this._mw1 = _Og1._Ms1;
this._nw1 = _Og1._qx1 + this._mw1 * _Og1._rx1;
this._Ft1 = 0.0
}
_lt1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
var _Wc1 = _K41.Multiply(this._Ft1, this._zx1);
return _K41.Multiply(_Si1, _Wc1)
},
_4t1: function (_Si1) {
return 0.0
},
_6l1: function () {
return this._Ax1
},
_7l1: function () {
return this._Bx1
},
_Ex1: function () {
return this._Cx1
},
_Fx1: function () {
return this._Dx1
},
_Mw1: function () {
return this._mw1
},
_Gx1: function () {
var _gE = this._Oj1._sh1(this._Ct1);
var _wy = this._Ax1;
var _Xn = _K41._R41(_gE, _wy);
return _Xn.Length()
},
_Hx1: function () {
var _gE = this._Mj1._sh1(this._Dt1);
var _wy = this._Bx1;
var _Xn = _K41._R41(_gE, _wy);
return _Xn.Length()
},
_g91: function (_h91) {
this._Ax1._R41(_h91);
this._Bx1._R41(_h91)
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1._mH(this._Oj1._ng1._x51);
this._Rt1._mH(this._Mj1._ng1._x51);
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
this._Ot1._mH(_V51(_du1, _K41._R41(this._Ct1, this._Qt1)));
this._Pt1._mH(_V51(_eu1, _K41._R41(this._Dt1, this._Rt1)));
this._yx1._mH(_K41._Vj(_1k1, _K41._R41(this._Ot1, this._Ax1)));
this._zx1._mH(_K41._Vj(_3k1, _K41._R41(this._Pt1, this._Bx1)));
var _qx1 = this._yx1.Length();
var _rx1 = this._zx1.Length();
if (_qx1 > 10.0 * _441) {
this._yx1.Multiply(1.0 / _qx1)
} else {
this._yx1._L41()
}
if (_rx1 > 10.0 * _441) {
this._zx1.Multiply(1.0 / _rx1)
} else {
this._zx1._L41();
}
var _Ix1 = _H51(this._Ot1, this._yx1);
var _Jx1 = _H51(this._Pt1, this._zx1);
var _Cr1 = this._St1 + this._Ut1 * _Ix1 * _Ix1;
var _Dr1 = this._Tt1 + this._Vt1 * _Jx1 * _Jx1;
this._Bg1 = _Cr1 + this._mw1 * this._mw1 * _Dr1;
if (this._Bg1 > 0.0) {
this._Bg1 = 1.0 / this._Bg1
}
if (data._z31._Wi1) {
this._Ft1 *= data._z31._Ti1;
var _Kx1 = _K41.Multiply(-(this._Ft1), this._yx1);
var _Lx1 = _K41.Multiply((-this._mw1 * this._Ft1),
this._zx1);
_Fr1._Vj(_K41.Multiply(this._St1, _Kx1));
_D91 += this._Ut1 * _H51(this._Ot1, _Kx1);
_Hr1._Vj(_K41.Multiply(this._Tt1, _Lx1));
_E91 += this._Vt1 * _H51(this._Pt1, _Lx1)
} else {
this._Ft1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Vu1 = _K41._Vj(_Fr1,
_J51(_D91, this._Ot1));
var _Wu1 = _K41._Vj(_Hr1, _J51(_E91, this._Pt1));
var _gu1 = -_G51(this._yx1, _Vu1) - this._mw1 * _G51(this._zx1, _Wu1);
var _nh1 = -this._Bg1 * _gu1;
this._Ft1 += _nh1;
var _Kx1 = _K41.Multiply(-_nh1, this._yx1);
var _Lx1 = _K41.Multiply(-this._mw1, _K41.Multiply(_nh1, this._zx1));
_Fr1._Vj(_K41.Multiply(this._St1, _Kx1));
_D91 += this._Ut1 * _H51(this._Ot1, _Kx1);
_Hr1._Vj(_K41.Multiply(this._Tt1, _Lx1));
_E91 += this._Vt1 * _H51(this._Pt1, _Lx1);
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _Mx1 = _K41._Vj(_1k1, _K41._R41(_Ga1, this._Ax1));
var _Nx1 = _K41._Vj(_3k1, _K41._R41(_Ha1, this._Bx1));
var _qx1 = _Mx1.Length();
var _rx1 = _Nx1.Length();
if (_qx1 > 10.0 * _441) {
_Mx1.Multiply(1.0 / _qx1)
} else {
_Mx1._L41()
}
if (_rx1 > 10.0 * _441) {
_Nx1.Multiply(1.0 / _rx1)
} else {
_Nx1._L41()
}
var _Ix1 = _H51(_Ga1, _Mx1);
var _Jx1 = _H51(_Ha1, _Nx1);
var _Cr1 = this._St1 + this._Ut1 * _Ix1 * _Ix1;
var _Dr1 = this._Tt1 + this._Vt1 * _Jx1 * _Jx1;
var _S61 = _Cr1 + this._mw1 * this._mw1 * _Dr1;
if (_S61 > 0.0) {
_S61 = 1.0 / _S61
}
var _061 = this._nw1 - _qx1 - this._mw1 * _rx1;
var _rv1 = _461(_061);
var _nh1 = -_S61 * _061;
var _Kx1 = _K41.Multiply(-_nh1, _Mx1);
var _Lx1 = _K41.Multiply(-this._mw1, _K41.Multiply(_nh1, _Nx1));
_1k1._Vj(_K41.Multiply(this._St1, _Kx1));
_Er1 += this._Ut1 * _H51(_Ga1,
_Kx1);
_3k1._Vj(_K41.Multiply(this._Tt1, _Lx1));
_Gr1 += this._Vt1 * _H51(_Ha1, _Lx1);
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
return _rv1 < _441
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['groundAnchorA'] = this._Ax1._X41();
_xn['groundAnchorB'] = this._Bx1._X41();
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['lengthA'] = this._Cx1;
_xn['lengthB'] = this._Dx1;
_xn['ratio'] = this._mw1;
return _xn
}
};
_lt1._q31(_Kj1);
function _Ox1() {
this.parent.call(this);
this.type = _Kj1._gt1;
this._tt1 = new _K41(-1.0, 0.0);
this._ut1 = new _K41(1.0, 0.0);
this._Px1 = 0.0;
Object.seal(this)
}
_Ox1.prototype = {
_Y41: function (data, _Wk1, _2t1) {
this.parent.prototype._Y41.call(this, data, _Wk1, _2t1);
this._tt1._Y41(data['localAnchorA']);
this._ut1._Y41(data['localAnchorB']);
this._Px1 = data['maxLength']
}
};
_Ox1._q31(_0t1);
function _qt1(_Og1) {
this.parent.call(this, _Og1);
this._Ct1 = _Og1._tt1._X7();
this._Dt1 = _Og1._ut1._X7();
this._Qx1 = _Og1._Px1;
this._Bg1 = 0.0;
this._Ft1 = 0.0;
this._Rx1 = _Kj1._6t1;
this._LL = 0.0;
this._oq1 = 0;
this._pq1 = 0;
this._Pu1 = new _K41();
this._Ot1 = new _K41();
this._Pt1 = new _K41();
this._Qt1 = new _K41();
this._Rt1 = new _K41();
this._St1 = 0;
this._Tt1 = 0;
this._Ut1 = 0;
this._Vt1 = 0
}
_qt1.prototype = {
_1l1: function () {
return this._Oj1._sh1(this._Ct1)
},
_2l1: function () {
return this._Mj1._sh1(this._Dt1)
},
_3t1: function (_Si1) {
var _6f1 = _K41.Multiply((_Si1 * this._Ft1), this._Pu1);
return _6f1
},
_4t1: function (_Si1) {
return 0.0
},
_Xt1: function () {
return this._Ct1
},
_Yt1: function () {
return this._Dt1
},
_Sx1: function (length) {
this._Qx1 = length
},
_Tx1: function () {
return this._Qx1
},
_Ux1: function () {
return this._Rx1
},
_Is1: function (data) {
this._oq1 = this._Oj1._eg1;
this._pq1 = this._Mj1._eg1;
this._Qt1._mH(this._Oj1._ng1._x51);
this._Rt1._mH(this._Mj1._ng1._x51);
this._St1 = this._Oj1._Cg1;
this._Tt1 = this._Mj1._Cg1;
this._Ut1 = this._Oj1._Eg1;
this._Vt1 = this._Mj1._Eg1;
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
this._Ot1._mH(_V51(_du1, _K41._R41(this._Ct1, this._Qt1)));
this._Pt1._mH(_V51(_eu1, _K41._R41(this._Dt1, this._Rt1)));
this._Pu1._mH(_K41._R41(_K41._R41(_K41._Vj(_3k1, this._Pt1), _1k1), this._Ot1));
this._LL = this._Pu1.Length();
var _061 = this._LL - this._Qx1;
if (_061 > 0.0) {
this._Rx1 = _Kj1._8t1
} else {
this._Rx1 = _Kj1._6t1
}
if (this._LL > _441) {
this._Pu1.Multiply(1.0 / this._LL)
} else {
this._Pu1._L41();
this._Bg1 = 0.0;
this._Ft1 = 0.0;
return
}
var _Vx1 = _H51(this._Ot1, this._Pu1);
var _Wx1 = _H51(this._Pt1, this._Pu1);
var _Uu1 = this._St1 + this._Ut1 * _Vx1 * _Vx1 + this._Tt1 + this._Vt1 * _Wx1 * _Wx1;
this._Bg1 = _Uu1 != 0.0 ? 1.0 / _Uu1 : 0.0;
if (data._z31._Wi1) {
this._Ft1 *= data._z31._Ti1;
var _Wc1 = _K41.Multiply(this._Ft1, this._Pu1);
_Fr1._R41(_K41.Multiply(this._St1, _Wc1));
_D91 -= this._Ut1 * _H51(this._Ot1, _Wc1);
_Hr1._Vj(_K41.Multiply(this._Tt1, _Wc1));
_E91 += this._Vt1 * _H51(this._Pt1, _Wc1)
} else {
this._Ft1 = 0.0
}
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91;
},
__r1: function (data) {
var _Fr1 = data._0j1[this._oq1]._O9._X7();
var _D91 = data._0j1[this._oq1]._k2;
var _Hr1 = data._0j1[this._pq1]._O9._X7();
var _E91 = data._0j1[this._pq1]._k2;
var _Vu1 = _K41._Vj(_Fr1, _J51(_D91, this._Ot1));
var _Wu1 = _K41._Vj(_Hr1, _J51(_E91, this._Pt1));
var _061 = this._LL - this._Qx1;
var _gu1 = _G51(this._Pu1, _K41._R41(_Wu1, _Vu1));
if (_061 < 0.0) {
_gu1 += data._z31._Si1 * _061
}
var _nh1 = -this._Bg1 * _gu1;
var _hu1 = this._Ft1;
this._Ft1 = _761(0.0, this._Ft1 + _nh1);
_nh1 = this._Ft1 - _hu1;
var _Wc1 = _K41.Multiply(_nh1, this._Pu1);
_Fr1._R41(_K41.Multiply(this._St1, _Wc1));
_D91 -= this._Ut1 * _H51(this._Ot1, _Wc1);
_Hr1._Vj(_K41.Multiply(this._Tt1, _Wc1));
_E91 += this._Vt1 * _H51(this._Pt1, _Wc1);
data._0j1[this._oq1]._O9._mH(_Fr1);
data._0j1[this._oq1]._k2 = _D91;
data._0j1[this._pq1]._O9._mH(_Hr1);
data._0j1[this._pq1]._k2 = _E91
},
_ks1: function (data) {
var _1k1 = data.__i1[this._oq1]._j2._X7();
var _Er1 = data.__i1[this._oq1]._a9;
var _3k1 = data.__i1[this._pq1]._j2._X7();
var _Gr1 = data.__i1[this._pq1]._a9;
var _du1 = new _q51(_Er1),
_eu1 = new _q51(_Gr1);
var _Ga1 = _V51(_du1, _K41._R41(this._Ct1, this._Qt1));
var _Ha1 = _V51(_eu1, _K41._R41(this._Dt1, this._Rt1));
var _N9 = _K41._R41(_K41._R41(_K41._Vj(_3k1, _Ha1), _1k1), _Ga1);
var length = _N9._T41();
var _061 = length - this._Qx1;
_061 = _b61(_061, 0.0, _a41);
var _nh1 = -this._Bg1 * _061;
var _Wc1 = _K41.Multiply(_nh1, _N9);
_1k1._R41(_K41.Multiply(this._St1, _Wc1));
_Er1 -= this._Ut1 * _H51(_Ga1, _Wc1);
_3k1._Vj(_K41.Multiply(this._Tt1,
_Wc1));
_Gr1 += this._Vt1 * _H51(_Ha1, _Wc1);
data.__i1[this._oq1]._j2._mH(_1k1);
data.__i1[this._oq1]._a9 = _Er1;
data.__i1[this._pq1]._j2._mH(_3k1);
data.__i1[this._pq1]._a9 = _Gr1;
return length - this._Qx1 < _441
},
_X41: function (out) {
var _xn = out || {};
this.parent.prototype._X41.call(this, _xn);
_xn['localAnchorA'] = this._Ct1._X41();
_xn['localAnchorB'] = this._Dt1._X41();
_xn['maxLength'] = this._Qx1;
return _xn
}
};
_qt1._q31(_Kj1);
var _Xx1 = Math.exp;
function _Yx1() {
this.vertices = null;
this._Jc = 0;
this._Zx1 = null;
this._pz = new _K41();
this._kl1 = 0.1;
this.__x1 = 0.9;
this._0y1 = 0.1
}
function _1y1() {
this._F71 = 0;
this._2y1 = null;
this._3y1 = null;
this._4y1 = null;
this._5y1 = null;
this._6y1 = null;
this._7y1 = null;
this._8y1 = 0;
this._hj1 = new _K41();
this._9y1 = 1.0;
this._ay1 = 0.1
}
_1y1.prototype = {
_6b1: function (_Og1) {
_W31(_Og1._Jc >= 3);
this._F71 = _Og1._Jc;
this._2y1 = new Array(this._F71);
this._3y1 = new Array(this._F71);
this._4y1 = new Array(this._F71);
this._5y1 = new Array(this._F71);
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
this._2y1[_i2] = _Og1.vertices[_i2]._X7();
this._3y1[_i2] = _Og1.vertices[_i2]._X7();
this._4y1[_i2] = new _K41();
var _5b = _Og1._Zx1[_i2];
if (_5b > 0.0) {
this._5y1[_i2] = 1.0 / _5b
} else {
this._5y1[_i2] = 0.0
}
}
var _7c1 = this._F71 - 1;
var _by1 = this._F71 - 2;
this._6y1 = new Array(_7c1);
this._7y1 = new Array(_by1);
for (var _i2 = 0; _i2 < _7c1; ++_i2) {
var __n = this._2y1[_i2];
var _y61 = this._2y1[_i2 + 1];
this._6y1[_i2] = _M51(__n, _y61)
}
for (var _i2 = 0; _i2 < _by1; ++_i2) {
var __n = this._2y1[_i2];
var _y61 = this._2y1[_i2 + 1];
var _x81 = this._2y1[_i2 + 2];
var _o71 = _K41._R41(_y61, __n);
var _Qo1 = _K41._R41(_x81, _y61);
var _a9 = _H51(_o71, _Qo1);
var _99 = _G51(_o71,
_Qo1);
this._7y1[_i2] = _I41(_a9, _99)
}
this._hj1 = _Og1._pz._X7();
this._8y1 = _Og1._kl1;
this._9y1 = _Og1.__x1;
this._ay1 = _Og1._0y1
},
_Tj1: function (_l2, _B91) {
if (_l2 == 0.0) {
return
}
var _Xn = _Xx1(-_l2 * this._8y1);
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
this._3y1[_i2]._mH(this._2y1[_i2]);
if (this._5y1[_i2] > 0.0) {
this._4y1[_i2]._Vj(_K41.Multiply(_l2, this._hj1))
}
this._4y1[_i2].Multiply(_Xn);
this._2y1[_i2]._Vj(_K41.Multiply(_l2, this._4y1[_i2]))
}
for (var _i2 = 0; _i2 < _B91; ++_i2) {
this._cy1();
this._dy1();
this._cy1()
}
var _lx1 = 1.0 / _l2;
for (var _i2 = 0; _i2 < this._F71; ++_i2) {
this._4y1[_i2] = _K41.Multiply(_lx1, _K41._R41(this._2y1[_i2], this._3y1[_i2]))
}
},
_vi: function () {
return this._F71
},
_ey1: function () {
return this._2y1
},
_cd: function (_fy1) {
var _j2 = new _j61(0.4, 0.5, 0.7);
for (var _i2 = 0; _i2 < this._F71 - 1; ++_i2) {
_fy1._x61(this._2y1[_i2], this._2y1[_i2 + 1], _j2)
}
},
_gy1: function (angle) {
var _by1 = this._F71 - 2;
for (var _i2 = 0; _i2 < _by1; ++_i2) {
this._7y1[_i2] = angle
}
},
_cy1: function () {
var _7c1 = this._F71 - 1;
for (var _i2 = 0; _i2 < _7c1; ++_i2) {
var __n = this._2y1[_i2];
var _y61 = this._2y1[_i2 + 1];
var _Xn = _K41._R41(_y61, __n);
var _Iw1 = _Xn._T41();
var _hy1 = this._5y1[_i2];
var _iy1 = this._5y1[_i2 + 1];
if (_hy1 + _iy1 == 0.0) {
continue
}
var _4w = _hy1 / (_hy1 + _iy1);
var _5w = _iy1 / (_hy1 + _iy1);
__n._R41(_K41.Multiply(this._9y1 * _4w * (this._6y1[_i2] - _Iw1), _Xn));
_y61._Vj(_K41.Multiply(this._9y1 * _5w * (this._6y1[_i2] - _Iw1), _Xn))
}
},
_dy1: function () {
var _by1 = this._F71 - 2;
for (var _i2 = 0; _i2 < _by1; ++_i2) {
var __n = this._2y1[_i2];
var _y61 = this._2y1[_i2 + 1];
var _x81 = this._2y1[_i2 + 2];
var _jy1 = this._5y1[_i2];
var _ky1 = this._5y1[_i2 + 1];
var _ly1 = this._5y1[_i2 + 2];
var _o71 = _K41._R41(_y61, __n);
var _Qo1 = _K41._R41(_x81, _y61);
var _my1 = _o71._S41();
var _ny1 = _Qo1._S41();
if (_my1 * _ny1 == 0.0) {
continue
}
var _a9 = _H51(_o71, _Qo1);
var _99 = _G51(_o71, _Qo1);
var angle = _I41(_a9, _99);
var _oy1 = _K41.Multiply((-1.0 / _my1), _o71._W41());
var _py1 = _K41.Multiply((1.0 / _ny1), _Qo1._W41());
var _qy1 = _K41._O41(_oy1);
var _ry1 = _K41._R41(_oy1, _py1);
var _sy1 = _py1;
var _S61 = _jy1 * _G51(_qy1, _qy1) + _ky1 * _G51(_ry1, _ry1) + _ly1 * _G51(_sy1, _sy1);
if (_S61 == 0.0) {
continue
}
_S61 = 1.0 / _S61;
var _061 = angle - this._7y1[_i2];
while (_061 > __31) {
angle -= 2 * __31;
_061 = angle - this._7y1[_i2]
}
while (_061 < -__31) {
angle += 2.0 * __31;
_061 = angle - this._7y1[_i2]
}
var _nh1 = -this._ay1 * _S61 * _061;
__n._Vj(_K41.Multiply((_jy1 * _nh1), _qy1));
_y61._Vj(_K41.Multiply((_ky1 * _nh1), _ry1));
_x81._Vj(_K41.Multiply((_ly1 * _nh1), _sy1))
}
}
};
var _ty1 = {
/*@param {b2World} world */
_uy1: function (_dg1) {
var _vy1 = []; /*@type Number */
var _i2; /*@type String */
var _wy1; /*@type b2Body */
var _99; /*@type b2Fixture */
var _7z; /*@type b2Shape */
var _f71;
for (_99 = _dg1._ck1(); _99; _99 = _99._Yh1()) {
for (_7z = _99._Vh1(); _7z; _7z = _7z._Yh1()) {
_f71 = _7z._hi1();
_7z._xy1 = _vy1.length;
_vy1.push(_f71._X41())
}
}
var _yy1 = [];
for (_99 = _dg1._ck1(); _99; _99 = _99._Yh1()) {
_99._zy1 = [];
for (_7z = _99._Vh1(); _7z; _7z = _7z._Yh1()) {
_wy1 = _7z._X41();
_wy1['shape'] = _7z._xy1;
delete _7z._xy1;
_99._zy1.push(_yy1.length);
_yy1.push(_wy1)
}
}
var _Wk1 = [];
for (_99 = _dg1._ck1(); _99; _99 = _99._Yh1()) {
_wy1 = _99._X41();
_wy1._yy1 = [];
for (_i2 = 0; _i2 < _99._zy1.length; ++_i2) _wy1._yy1.push(_99._zy1[_i2]);
delete _99._zy1;
_99._Ay1 = _Wk1.length;
_Wk1.push(_wy1)
};
var _2t1 = []; /*@type b2Joint */
var _nb;
for (_nb = _dg1._Wh1(), _i2 = 0; _nb; _nb = _nb._Yh1(), ++_i2) _nb._2x1 = _i2;
for (_nb = _dg1._Wh1(); _nb; _nb = _nb._Yh1()) {
if (_nb._W61() === _Kj1._8l1) continue;
_wy1 = _nb._X41();
_wy1['bodyA'] = _nb.__k1()._Ay1;
_wy1['bodyB'] = _nb._0l1()._Ay1;
_2t1.push(_wy1)
}
for (_nb = _dg1._Wh1(); _nb; _nb = _nb._Yh1()) delete _nb._2x1;
for (_99 = _dg1._ck1(); _99; _99 = _99._Yh1()) delete _99._Ay1;
var _i9 = {
_vy1: _vy1,
_yy1: _yy1,
_Wk1: _Wk1,
_2t1: _2t1
};
return _i9
},
/*@param {b2World} world */ _By1: function (_wy1, _dg1, clear) {
var _Cy1 = JSON.parse(_wy1);
if (clear) {
for (var _99 = _dg1._ck1(); _99;) {
var _3m = _99._Yh1();
_dg1._Dj1(_99);
_99 = _3m
}
for (var _nb = _dg1._Wh1(); _nb;) {
var _3m = _nb._Yh1();
_dg1._Gj1(_nb);
_nb = _3m
}
}
var _vy1 = [];
for (var _i2 = 0; _i2 < _Cy1._vy1.length; ++_i2) {
var _Dy1 = _Cy1._vy1[_i2];
var _f71;
switch (_Dy1._VH) {
case _U61._871:
_f71 = new _d71();
break;
case _U61._971:
_f71 = new _p71();
break;
case _U61._b71:
_f71 = new _D71();
break;
case _U61._a71:
_f71 = new _V71();
break
}
_f71._Y41(_Dy1);
_vy1.push(_f71)
}
var _yy1 = [];
for (_i2 = 0; _i2 < _Cy1._yy1.length; ++_i2) {
var _Ey1 = _Cy1._yy1[_i2];
var _8S = new _Qg1();
_8S._Y41(_Ey1);
_8S._f71 = _vy1[_Ey1['shape']];
_yy1.push(_8S)
}
var _Wk1 = [];
for (_i2 = 0; _i2 < _Cy1._Wk1.length; ++_i2) {
var _Fy1 = _Cy1._Wk1[_i2];
var _Og1 = new _0g1();
_Og1._Y41(_Fy1);
var body = _dg1._KS(_Og1);
for (var x = 0; x < _Fy1._yy1.length; ++x) body._Ng1(_yy1[_Fy1._yy1[x]]);
_Wk1.push(body)
}
var _2t1 = [];
var _Gy1 = [];
for (_i2 = 0; _i2 < _Cy1._2t1.length; ++_i2) {
var _Hy1 = _Cy1._2t1[_i2];
var _Iy1;
switch (_Hy1.type) {
case _Kj1._at1:
_Iy1 = new _st1();
break;
case _Kj1._bt1:
_Iy1 = new _Xu1();
break;
case _Kj1._3l1:
_Iy1 = new _Lu1();
break;
case _Kj1._4l1:
_Iy1 = new _nx1();
break;
case _Kj1._ct1:
_Iy1 = new _Yv1();
break;
case _Kj1._dt1:
_Iy1 = new _Iv1();
break;
case _Kj1._et1:
_Iy1 = new _Gv1();
break;
case _Kj1._ft1:
_Iy1 = new _uv1();
break;
case _Kj1._gt1:
_Iy1 = new _Ox1();
break;
case _Kj1._9l1:
_Iy1 = new _3x1();
break;
default:
throw new Error('unknown joint')
}
_Iy1._Y41(_Hy1, _Wk1);
if (_Hy1.type === _Kj1._ct1) {
_Gy1.push([_Iy1, _2t1.length]);
_2t1.push(null)
} else {
var _3i1 = _dg1._Jj1(_Iy1);
_2t1.push(_3i1)
}
}
for (_i2 = 0; _i2 < _Gy1.length; ++_i2) {
_Gy1[_i2][0]._Zv1 = _2t1[_Gy1[_i2][0]._Zv1];
_Gy1[_i2][0].__v1 = _2t1[_Gy1[_i2][0].__v1];
_3i1 = _dg1._Jj1(_Gy1[_i2][0]);
_2t1[_Gy1[_i2][1]] = _3i1
}
}
};
var _Jy1 = (function () {
function _Ky1(_xn) {
return new _K41(_xn ? (_xn.x || 0) : 0, _xn ? (_xn.y || 0) : 0)
}
function _Ly1(_xn) {
var _My1 = new Array(_xn.x.length);
for (var _i2 = 0; _i2 < _My1.length; ++_i2) _My1[_i2] = new _K41(_xn.x[_i2], _xn.y[_i2]);
return _My1
}
function _Ny1(_xn, _Oy1) {
var name = _xn.name;
var _Ji;
if (typeof (_xn['int']) !== 'undefined') _Ji = _xn['int'];
else if (typeof (_xn['float']) !== 'undefined') _Ji = _xn['float'];
else if (typeof (_xn['string']) !== 'undefined') _Ji = _xn['string'];
else if (typeof (_xn['bool']) !== 'undefined') _Ji = _xn['bool'];
else if (typeof (_xn._Py1) !== 'undefined') _Ji = _Ky1(_xn._Py1);
else throw new Error("unknown property type");
if (_Oy1.hasOwnProperty(name)) throw new Error("custom property possibly overwriting an existing one");
_Oy1[name] = _Ji
}
function _Qy1(_xn, body) {
var _Og1 = new _Qg1();
_Og1._471 = _xn._471 || 0;
_Og1._Lq._6i1 = typeof (_xn['filter-categoryBits']) === 'undefined' ? 1 : _xn['filter-categoryBits'];
_Og1._Lq._7i1 = typeof (_xn['filter-maskBits']) === 'undefined' ? 65535 : _xn['filter-maskBits'];
_Og1._Lq._8i1 = typeof (_xn['filter-groupIndex']) === 'undefined' ? 0 : _xn['filter-groupIndex'];
_Og1._oz = _xn._oz || 0;
_Og1._9i1 = _xn._9i1 || 0;
_Og1._ai1 = _xn._ii1 || 0;
var _f71;
if (typeof (_xn._k91) !== 'undefined') {
_f71 = new _d71();
_f71._e71 = _Ky1(_xn._k91._u61);
_f71._V61 = _xn._k91._v61 || 0
} else if (typeof (_xn._Sa) !== 'undefined') {
var vertices = _Ly1(_xn._Sa.vertices);
_f71 = new _V71();
_f71._Yl(vertices, vertices.length)
} else if (typeof (_xn._l91) !== 'undefined') {
var vertices = _Ly1(_xn._l91.vertices);
_f71 = new _D71();
_f71._F71 = vertices.length;
_f71._E71 = vertices;
if (_f71._J71 = _xn._l91._Ry1) _f71._H71 = _Ky1(_xn._l91._Q71);
if (_f71._I71 = _xn._l91._Sy1) _f71._G71 = _Ky1(_xn._l91._O71)
} else throw new Error("unknown shape type");
_Og1._f71 = _f71;
var _8S = body._Ng1(_Og1);
_8S.name = _xn.name;
if (_xn._Ty1)
for (var _i2 = 0; _i2 < _xn._Ty1.length; ++_i2) _Ny1(_xn, _8S)
}
function _Uy1(_xn, _dg1) {
var _Og1 = new _0g1();
_Og1.type = _xn.type || _1g1._2g1;
_Og1.angle = _xn.angle || 0;
_Og1._6g1 = _xn._6g1 || 0;
_Og1._4g1 = _xn._4g1 || 0;
_Og1._8g1 = _xn._8g1 || !1;
_Og1._ag1 = _xn._ag1 || !1;
_Og1._9g1 = _xn._9g1 || !1;
_Og1._5g1 = _xn._5g1 || !1;
_Og1._3g1 = _Ky1(_xn._3g1);
_Og1._bg1 = typeof (_xn._bg1) !== 'undefined' ? _xn._bg1 : 1;
var _Vy1 = new _R61();
_Vy1._S61 = _xn['massData-mass'] || 0;
_Vy1._u61 = _Ky1(_xn['massData-center']);
_Vy1._T61 = _xn['massData-I'] || 0;
_Og1.position = _Ky1(_xn.position);
var body = _dg1._KS(_Og1);
body.name = _xn.name;
body._rh1(_Vy1);
if (_xn._8S)
for (var _i2 = 0; _i2 < _xn._8S.length; ++_i2) _Qy1(_xn._8S[_i2], body);
if (_xn._Ty1)
for (_i2 = 0; _i2 < _xn._Ty1.length; ++_i2) _Ny1(_xn, body);
return body
}
var _Wy1 = {
'revolute': _st1,
'distance': _Lu1,
'prismatic': _Xu1,
'wheel': _Iv1,
'rope': _Ox1,
'motor': _3x1,
'weld': _Gv1,
'friction': _uv1
};
function _Xy1(_xn, _dg1, _Wk1) {
if (!_Wy1[_xn.type]) throw new Error("unknown joint type");
var _Yy1 = new _Wy1[_xn.type]();
switch (_Yy1.type) {
case _Kj1._at1:
_Yy1._tt1 = _Ky1(_xn._ux1);
_Yy1._ut1 = _Ky1(_xn._vx1);
_Yy1._At1 = _xn._At1 || !1;
_Yy1._Bt1 = _xn._Bt1 || !1;
_Yy1._wt1 = _xn._Zy1 || 0;
_Yy1._yt1 = _xn._yt1 || 0;
_Yy1._zt1 = _xn._zt1 || 0;
_Yy1._vt1 = _xn.__y1 || 0;
_Yy1._xt1 = _xn._0z1 || 0;
break;
case _Kj1._3l1:
_Yy1._tt1 = _Ky1(_xn._ux1);
_Yy1._ut1 = _Ky1(_xn._vx1);
_Yy1._tu1 = _xn._tu1 || 0;
_Yy1._su1 = _xn._1z1 || 0;
_Yy1.length = _xn.length || 0;
break;
case _Kj1._bt1:
_Yy1._tt1 = _Ky1(_xn._ux1);
_Yy1._ut1 = _Ky1(_xn._vx1);
_Yy1._At1 = _xn._At1 || !1;
_Yy1._Bt1 = _xn._Bt1 || !1;
_Yy1._Yu1 = _Ky1(_xn._Yu1);
_Yy1._Zu1 = _xn._Zy1 || 0;
_Yy1._0v1 = _xn._0v1 || 0;
_Yy1._zt1 = _xn._zt1 || 0;
_Yy1._vt1 = _xn.__y1 || 0;
_Yy1.__u1 = _xn._0z1 || 0;
break;
case _Kj1._dt1:
_Yy1._tt1 = _Ky1(_xn._ux1);
_Yy1._ut1 = _Ky1(_xn._vx1);
_Yy1._Bt1 = _xn._Bt1 || !1;
_Yy1._Yu1 = _Ky1(_xn._Yu1);
_Yy1._yt1 = _xn._yt1 || 0;
_Yy1._zt1 = _xn._zt1 || 0;
_Yy1._tu1 = _xn._2z1 || 0;
_Yy1._su1 = _xn._3z1 || 0;
break;
case _Kj1._gt1:
_Yy1._tt1 = _Ky1(_xn._ux1);
_Yy1._ut1 = _Ky1(_xn._vx1);
_Yy1._Px1 = _xn._Px1 || 0;
break;
case _Kj1._9l1:
_Yy1._4x1 = _Ky1(_xn._ux1);
_Yy1._5x1 = _xn.__y1 || 0;
_Yy1._ru1 = _xn._ru1 || 0;
_Yy1._vv1 = _xn._vv1 || 0;
_Yy1._6x1 = _xn._6x1 || 0;
break;
case _Kj1._et1:
_Yy1._tt1 = _Ky1(_xn._ux1);
_Yy1._ut1 = _Ky1(_xn._vx1);
_Yy1._vt1 = _xn.__y1 || 0;
_Yy1._tu1 = _xn._tu1 || 0;
_Yy1._su1 = _xn._su1 || 0;
break;
case _Kj1._ft1:
_Yy1._tt1 = _Ky1(_xn._ux1);
_Yy1._ut1 = _Ky1(_xn._vx1);
_Yy1._ru1 = _xn._ru1 || 0;
_Yy1._vv1 = _xn._vv1 || 0;
break;
default:
throw new Error("wat?");
}
_Yy1._Qj1 = _Wk1[_xn._Qj1 || 0];
_Yy1._Rj1 = _Wk1[_xn._Rj1 || 0];
_Yy1._Sj1 = _xn._Sj1 || !1;
var _3i1 = _dg1._Jj1(_Yy1);
_3i1.name = _xn.name;
if (_xn._Ty1)
for (var _i2 = 0; _i2 < _xn._Ty1.length; ++_i2) _Ny1(_xn, _3i1);
return _3i1
}
function _4z1() {
this._dg1 = null;
this._Vi1 = 0;
this._Ui1 = 0;
this._5z1 = 0;
this._yy1 = {};
this._Wk1 = {};
this._2t1 = {};
Object.seal(this)
}
function _6z1(_xn, _dg1) {
var _gw = new _4z1();
_gw._dg1 = _dg1 = _dg1 || new _0h1(new _K41(0, 0));
_gw._Vi1 = _xn._Vi1 || 0;
_gw._Ui1 = _xn._Ui1 || 0;
_gw._5z1 = _xn._5z1 || 0;
if (_xn._pz) _dg1._pk1(_Ky1(_xn._pz));
_dg1._dk1(_xn._7g1 || !1);
_dg1._rk1(_xn._7z1 || !1);
_dg1._fk1(_xn._Wi1 || !1);
_dg1._hk1(_xn._8z1 || !1);
_dg1._jk1(_xn._9z1 || !1);
var _Wk1 = [];
var _az1 = _xn.body;
if (_az1) {
for (var _i2 = 0; _i2 < _az1.length; ++_i2) {
var body = _Uy1(_az1[_i2], _dg1);
_Wk1.push(body);
for (var _7z = body._Vh1(); _7z; _7z = _7z._Yh1()) {
if (!_gw._yy1[_7z.name]) _gw._yy1[_7z.name] = [];
_gw._yy1[_7z.name].push(_7z)
}
if (!_gw._Wk1[body.name]) _gw._Wk1[body.name] = [];
_gw._Wk1[body.name].push(body)
}
}
var _2t1 = [];
var _bz1 = _xn._3i1;
if (_bz1) {
for (_i2 = 0; _i2 < _bz1.length; ++_i2) {
var _3i1 = _Xy1(_bz1[_i2], _dg1, _Wk1);
_2t1.push(_3i1);
if (!_gw._2t1[_3i1.name]) _gw._2t1[_3i1.name] = [];
_gw._2t1[_3i1.name].push(_3i1)
}
}
return _gw
}
var _i9 = {
_6z1: _6z1
};
return _i9
})();
var _cz1 = [{
"trimmed": "version",
"name": "b2_version",
"def": _z41
}, {
"trimmed": "Vec2",
"name": "b2Vec2",
"def": _K41
}, {
"trimmed": "Vec3",
"name": "b2Vec3",
"def": __41
}, {
"trimmed": "Mat22",
"name": "b2Mat22",
"def": _151
}, {
"trimmed": "Mat33",
"name": "b2Mat33",
"def": _d51
}, {
"trimmed": "Rot",
"name": "b2Rot",
"def": _q51
}, {
"trimmed": "Transform",
"name": "b2Transform",
"def": _u51
}, {
"trimmed": "Sweep",
"name": "b2Sweep",
"def": _w51
}, {
"trimmed": "Dot_v2_v2",
"name": "b2Dot_v2_v2",
"def": _G51
}, {
"trimmed": "Cross_v2_v2",
"name": "b2Cross_v2_v2",
"def": _H51
}, {
"trimmed": "Cross_v2_f",
"name": "b2Cross_v2_f",
"def": _I51
}, {
"trimmed": "Cross_f_v2",
"name": "b2Cross_f_v2",
"def": _J51
}, {
"trimmed": "Mul_m22_v2",
"name": "b2Mul_m22_v2",
"def": _K51
}, {
"trimmed": "MulT_m22_v2",
"name": "b2MulT_m22_v2",
"def": _L51
}, {
"trimmed": "Distance",
"name": "b2Distance",
"def": _M51
}, {
"trimmed": "DistanceSquared",
"name": "b2DistanceSquared",
"def": _N51
}, {
"trimmed": "Dot_v3_v3",
"name": "b2Dot_v3_v3",
"def": _h51
}, {
"trimmed": "Cross_v3_v3",
"name": "b2Cross_v3_v3",
"def": _i51
}, {
"trimmed": "Mul_m22_m22",
"name": "b2Mul_m22_m22",
"def": _O51
}, {
"trimmed": "MulT_m22_m22",
"name": "b2MulT_m22_m22",
"def": _P51
}, {
"trimmed": "Mul_m33_v3",
"name": "b2Mul_m33_v3",
"def": _Q51
}, {
"trimmed": "Mul22_m33_v2",
"name": "b2Mul22_m33_v2",
"def": _R51
}, {
"trimmed": "Mul_r_r",
"name": "b2Mul_r_r",
"def": _S51
}, {
"trimmed": "MulT_r_r",
"name": "b2MulT_r_r",
"def": _U51
}, {
"trimmed": "Mul_r_v2",
"name": "b2Mul_r_v2",
"def": _V51
}, {
"trimmed": "MulT_r_v2",
"name": "b2MulT_r_v2",
"def": _W51
}, {
"trimmed": "Mul_t_v2",
"name": "b2Mul_t_v2",
"def": _X51
}, {
"trimmed": "Min_v2",
"name": "b2Min_v2",
"def": _861
}, {
"trimmed": "Max_v2",
"name": "b2Max_v2",
"def": _a61
}, {
"trimmed": "Clamp",
"name": "b2Clamp",
"def": _b61
}, {
"trimmed": "MulT_t_v2",
"name": "b2MulT_t_v2",
"def": _Z51
}, {
"trimmed": "Mul_t_t",
"name": "b2Mul_t_t",
"def": __51
}, {
"trimmed": "MulT_t_t",
"name": "b2MulT_t_t",
"def": _161
}, {
"trimmed": "Clamp_v2",
"name": "b2Clamp_v2",
"def": _d61
}, {
"trimmed": "NextPowerOfTwo",
"name": "b2NextPowerOfTwo",
"def": _e61
}, {
"trimmed": "Abs_v2",
"name": "b2Abs_v2",
"def": _561
}, {
"trimmed": "Abs_m22",
"name": "b2Abs_m22",
"def": _661
}, {
"trimmed": "IsPowerOfTwo",
"name": "b2IsPowerOfTwo",
"def": _f61
}, {
"trimmed": "RandomFloat",
"name": "b2RandomFloat",
"def": _h61
}, {
"trimmed": "Timer",
"name": "b2Timer",
"def": _O61
}, {
"trimmed": "Color",
"name": "b2Color",
"def": _j61
}, {
"trimmed": "Draw",
"name": "b2Draw",
"def": _k61
}, {
"trimmed": "ContactID",
"name": "b2ContactID",
"def": _Ja1
}, {
"trimmed": "ManifoldPoint",
"name": "b2ManifoldPoint",
"def": _Oa1
}, {
"trimmed": "Manifold",
"name": "b2Manifold",
"def": _Ta1
}, {
"trimmed": "WorldManifold",
"name": "b2WorldManifold",
"def": _4b1
}, {
"trimmed": "GetPointStates",
"name": "b2GetPointStates",
"def": _nb1
}, {
"trimmed": "ClipVertex",
"name": "b2ClipVertex",
"def": _sb1
}, {
"trimmed": "RayCastInput",
"name": "b2RayCastInput",
"def": _tb1
}, {
"trimmed": "RayCastOutput",
"name": "b2RayCastOutput",
"def": _ub1
}, {
"trimmed": "AABB",
"name": "b2AABB",
"def": _vb1
}, {
"trimmed": "CollideCircles",
"name": "b2CollideCircles",
"def": _Lb1
}, {
"trimmed": "CollidePolygonAndCircle",
"name": "b2CollidePolygonAndCircle",
"def": _Pb1
}, {
"trimmed": "FindMaxSeparation",
"name": "b2FindMaxSeparation",
"def": _0c1
}, {
"trimmed": "FindIncidentEdge",
"name": "b2FindIncidentEdge",
"def": _ec1
}, {
"trimmed": "CollidePolygons",
"name": "b2CollidePolygons",
"def": _oc1
}, {
"trimmed": "CollideEdgeAndCircle",
"name": "b2CollideEdgeAndCircle",
"def": _Uc1
}, {
"trimmed": "EPAxis",
"name": "b2EPAxis",
"def": _7d1
}, {
"trimmed": "TempPolygon",
"name": "b2TempPolygon",
"def": _bd1
}, {
"trimmed": "ReferenceFace",
"name": "b2ReferenceFace",
"def": _cd1
}, {
"trimmed": "EPCollider",
"name": "b2EPCollider",
"def": _fd1
}, {
"trimmed": "CollideEdgeAndPolygon",
"name": "b2CollideEdgeAndPolygon",
"def": _Vd1
}, {
"trimmed": "ClipSegmentToLine",
"name": "b2ClipSegmentToLine",
"def": _Rc1
}, {
"trimmed": "TestShapeOverlap",
"name": "b2TestShapeOverlap",
"def": _3e1
}, {
"trimmed": "TestOverlap",
"name": "b2TestOverlap",
"def": __81
}, {
"trimmed": "Shape",
"name": "b2Shape",
"def": _U61
}, {
"trimmed": "MassData",
"name": "b2MassData",
"def": _R61
}, {
"trimmed": "CircleShape",
"name": "b2CircleShape",
"def": _d71
}, {
"trimmed": "EdgeShape",
"name": "b2EdgeShape",
"def": _p71
}, {
"trimmed": "ChainShape",
"name": "b2ChainShape",
"def": _D71
}, {
"trimmed": "PolygonShape",
"name": "b2PolygonShape",
"def": _V71
}, {
"trimmed": "Pair",
"name": "b2Pair",
"def": _y81
}, {
"trimmed": "PairLessThan",
"name": "b2PairLessThan",
"def": _B81
}, {
"trimmed": "BroadPhase",
"name": "b2BroadPhase",
"def": _E81
}, {
"trimmed": "DistanceProxy",
"name": "b2DistanceProxy",
"def": _j91
}, {
"trimmed": "SimplexCache",
"name": "b2SimplexCache",
"def": _o91
}, {
"trimmed": "DistanceInput",
"name": "b2DistanceInput",
"def": _s91
}, {
"trimmed": "DistanceOutput",
"name": "b2DistanceOutput",
"def": _y91
}, {
"trimmed": "SimplexVertex",
"name": "b2SimplexVertex",
"def": _C91
}, {
"trimmed": "Simplex",
"name": "b2Simplex",
"def": _F91
}, {
"trimmed": "DistanceFunc",
"name": "b2DistanceFunc",
"def": _ra1
}, {
"trimmed": "TreeNode",
"name": "b2TreeNode",
"def": _7e1
}, {
"trimmed": "DynamicTree",
"name": "b2DynamicTree",
"def": _G81
}, {
"trimmed": "TOIInput",
"name": "b2TOIInput",
"def": _df1
}, {
"trimmed": "TOIOutput",
"name": "b2TOIOutput",
"def": _hf1
}, {
"trimmed": "SeparationFunction",
"name": "b2SeparationFunction",
"def": _mf1
}, {
"trimmed": "TimeOfImpact",
"name": "b2TimeOfImpact",
"def": _Jf1
}, {
"trimmed": "BodyDef",
"name": "b2BodyDef",
"def": _0g1
}, {
"trimmed": "Body",
"name": "b2Body",
"def": _1g1
}, {
"trimmed": "Filter",
"name": "b2Filter",
"def": _5i1
}, {
"trimmed": "FixtureDef",
"name": "b2FixtureDef",
"def": _Qg1
}, {
"trimmed": "Fixture",
"name": "b2Fixture",
"def": _Sg1
}, {
"trimmed": "DestructionListener",
"name": "b2DestructionListener",
"def": _ui1
}, {
"trimmed": "ContactFilter",
"name": "b2ContactFilter",
"def": _zi1
}, {
"trimmed": "ContactImpulse",
"name": "b2ContactImpulse",
"def": _Di1
}, {
"trimmed": "ContactListener",
"name": "b2ContactListener",
"def": _Gi1
}, {
"trimmed": "QueryCallback",
"name": "b2QueryCallback",
"def": _Mi1
}, {
"trimmed": "RayCastCallback",
"name": "b2RayCastCallback",
"def": _Pi1
}, {
"trimmed": "TimeStep",
"name": "b2TimeStep",
"def": _Qi1
}, {
"trimmed": "Position",
"name": "b2Position",
"def": _Xi1
}, {
"trimmed": "Velocity",
"name": "b2Velocity",
"def": _Yi1
}, {
"trimmed": "SolverData",
"name": "b2SolverData",
"def": _Zi1
}, {
"trimmed": "World",
"name": "b2World",
"def": _0h1
}, {
"trimmed": "MixFriction",
"name": "b2MixFriction",
"def": _aq1
}, {
"trimmed": "MixRestitution",
"name": "b2MixRestitution",
"def": _dq1
}, {
"trimmed": "ContactRegister",
"name": "b2ContactRegister",
"def": _gq1
}, {
"trimmed": "ContactEdge",
"name": "b2ContactEdge",
"def": _iq1
}, {
"trimmed": "Contact",
"name": "b2Contact",
"def": _uk1
}, {
"trimmed": "CircleContact",
"name": "b2CircleContact",
"def": _Hq1
}, {
"trimmed": "PolygonContact",
"name": "b2PolygonContact",
"def": _Qq1
}, {
"trimmed": "ChainAndCircleContact",
"name": "b2ChainAndCircleContact",
"def": _Lq1
}, {
"trimmed": "ChainAndPolygonContact",
"name": "b2ChainAndPolygonContact",
"def": _Mq1
}, {
"trimmed": "EdgeAndCircleContact",
"name": "b2EdgeAndCircleContact",
"def": _Nq1
}, {
"trimmed": "EdgeAndPolygonContact",
"name": "b2EdgeAndPolygonContact",
"def": _Oq1
}, {
"trimmed": "PolygonAndCircleContact",
"name": "b2PolygonAndCircleContact",
"def": _Pq1
}, {
"trimmed": "defaultFilter",
"name": "b2_defaultFilter",
"def": __q1
}, {
"trimmed": "defaultListener",
"name": "b2_defaultListener",
"def": _0r1
}, {
"trimmed": "ContactManager",
"name": "b2ContactManager",
"def": _6j1
}, {
"trimmed": "VelocityConstraintPoint",
"name": "b2VelocityConstraintPoint",
"def": _5r1
}, {
"trimmed": "ContactPositionConstraint",
"name": "b2ContactPositionConstraint",
"def": _9r1
}, {
"trimmed": "ContactVelocityConstraint",
"name": "b2ContactVelocityConstraint",
"def": _hr1
}, {
"trimmed": "PositionSolverManifold",
"name": "b2PositionSolverManifold",
"def": _lr1
}, {
"trimmed": "ContactSolverDef",
"name": "b2ContactSolverDef",
"def": _or1
}, {
"trimmed": "ContactSolver",
"name": "b2ContactSolver",
"def": _qr1
}, {
"trimmed": "Island",
"name": "b2Island",
"def": _mj1
}, {
"trimmed": "Jacobian",
"name": "b2Jacobian",
"def": _Xs1
}, {
"trimmed": "JointEdge",
"name": "b2JointEdge",
"def": __s1
}, {
"trimmed": "JointDef",
"name": "b2JointDef",
"def": _0t1
}, {
"trimmed": "Joint",
"name": "b2Joint",
"def": _Kj1
}, {
"trimmed": "RevoluteJointDef",
"name": "b2RevoluteJointDef",
"def": _st1
}, {
"trimmed": "RevoluteJoint",
"name": "b2RevoluteJoint",
"def": _kt1
}, {
"trimmed": "MouseJointDef",
"name": "b2MouseJointDef",
"def": _qu1
}, {
"trimmed": "MouseJoint",
"name": "b2MouseJoint",
"def": _it1
}, {
"trimmed": "DistanceJointDef",
"name": "b2DistanceJointDef",
"def": _Lu1
}, {
"trimmed": "DistanceJoint",
"name": "b2DistanceJoint",
"def": _ht1
}, {
"trimmed": "PrismaticJointDef",
"name": "b2PrismaticJointDef",
"def": _Xu1
}, {
"trimmed": "PrismaticJoint",
"name": "b2PrismaticJoint",
"def": _jt1
}, {
"trimmed": "FrictionJointDef",
"name": "b2FrictionJointDef",
"def": _uv1
}, {
"trimmed": "FrictionJoint",
"name": "b2FrictionJoint",
"def": _pt1
}, {
"trimmed": "WeldJointDef",
"name": "b2WeldJointDef",
"def": _Gv1
}, {
"trimmed": "WeldJoint",
"name": "b2WeldJoint",
"def": _ot1
}, {
"trimmed": "WheelJointDef",
"name": "b2WheelJointDef",
"def": _Iv1
}, {
"trimmed": "WheelJoint",
"name": "b2WheelJoint",
"def": _nt1
}, {
"trimmed": "GearJointDef",
"name": "b2GearJointDef",
"def": _Yv1
}, {
"trimmed": "GearJoint",
"name": "b2GearJoint",
"def": _mt1
}, {
"trimmed": "MotorJointDef",
"name": "b2MotorJointDef",
"def": _3x1
}, {
"trimmed": "MotorJoint",
"name": "b2MotorJoint",
"def": _rt1
}, {
"trimmed": "PulleyJointDef",
"name": "b2PulleyJointDef",
"def": _nx1
}, {
"trimmed": "PulleyJoint",
"name": "b2PulleyJoint",
"def": _lt1
}, {
"trimmed": "RopeJointDef",
"name": "b2RopeJointDef",
"def": _Ox1
}, {
"trimmed": "RopeJoint",
"name": "b2RopeJoint",
"def": _qt1
}, {
"trimmed": "RopeDef",
"name": "b2RopeDef",
"def": _Yx1
}, {
"trimmed": "Rope",
"name": "b2Rope",
"def": _1y1
}, {
"trimmed": "maxManifoldPoints",
"name": "b2_maxManifoldPoints",
"def": _041
}, {
"trimmed": "maxPolygonVertices",
"name": "b2_maxPolygonVertices",
"def": _141
}, {
"trimmed": "aabbExtension",
"name": "b2_aabbExtension",
"def": _241
}, {
"trimmed": "aabbMultiplier",
"name": "b2_aabbMultiplier",
"def": _341
}, {
"trimmed": "linearSlop",
"name": "b2_linearSlop",
"def": _441
}, {
"trimmed": "angularSlop",
"name": "b2_angularSlop",
"def": _541
}, {
"trimmed": "polygonRadius",
"name": "b2_polygonRadius",
"def": _641
}, {
"trimmed": "maxSubSteps",
"name": "b2_maxSubSteps",
"def": _741
}, {
"trimmed": "maxTOIContacts",
"name": "b2_maxTOIContacts",
"def": _841
}, {
"trimmed": "velocityThreshold",
"name": "b2_velocityThreshold",
"def": _941
}, {
"trimmed": "maxLinearCorrection",
"name": "b2_maxLinearCorrection",
"def": _a41
}, {
"trimmed": "maxAngularCorrection",
"name": "b2_maxAngularCorrection",
"def": _b41
}, {
"trimmed": "maxTranslation",
"name": "b2_maxTranslation",
"def": _c41
}, {
"trimmed": "maxTranslationSquared",
"name": "b2_maxTranslationSquared",
"def": _d41
}, {
"trimmed": "maxRotation",
"name": "b2_maxRotation",
"def": _e41
}, {
"trimmed": "maxRotationSquared",
"name": "b2_maxRotationSquared",
"def": _f41
}, {
"trimmed": "baumgarte",
"name": "b2_baumgarte",
"def": _g41
}, {
"trimmed": "toiBaugarte",
"name": "b2_toiBaugarte",
"def": _h41
}, {
"trimmed": "timeToSleep",
"name": "b2_timeToSleep",
"def": _i41
}, {
"trimmed": "linearSleepTolerance",
"name": "b2_linearSleepTolerance",
"def": _j41
}, {
"trimmed": "angularSleepTolerance",
"name": "b2_angularSleepTolerance",
"def": _k41
}, {
"trimmed": "epsilon",
"name": "b2_epsilon",
"def": _Z31
}, {
"trimmed": "JsonSerializer",
"name": "b2JsonSerializer",
"def": _ty1
}, {
"trimmed": "RUBELoader",
"name": "b2RUBELoader",
"def": _Jy1
}, {
"trimmed": "Profiler",
"name": "b2Profiler",
"def": _E31
}, {
"trimmed": "ParticleDef",
"name": "b2ParticleDef",
"def": _Am1
}, {
"trimmed": "ParticleColor",
"name": "b2ParticleColor",
"def": _rm1
}, {
"trimmed": "ParticleGroupDef",
"name": "b2ParticleGroupDef",
"def": _Lm1
}, {
"trimmed": "ParticleGroup",
"name": "b2ParticleGroup",
"def": _Pm1
}, {
"trimmed": "ParticleSystem",
"name": "b2ParticleSystem",
"def": _oj1
}];
if (typeof (b2_compatibility) !== "undefined" && typeof (window) !== "undefined") {
for (var _i2 = 0; _i2 < _cz1.length; ++_i2) window[_cz1[_i2]["name"]] = _cz1[_i2]["def"]
} else {
var _mB = {};
for (var _i2 = 0; _i2 < _cz1.length; ++_i2) _mB[_cz1[_i2]["trimmed"]] = _cz1[_i2]["def"];
if (typeof (module) !== "undefined") module._dz1 = _mB;
else window["b2"] = _mB;
}
})();
/*
* This class lets you encode animated GIF files
* Base class : http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm
* @author Kevin Weiner (original Java version - kweiner@fmsware.com)
* @author Thibault Imbert (AS3 version - bytearray.org)
* @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif)
* @version 0.1 AS3 implementation
*/
_ez1 = function () {
for (var _i2 = 0, _SB = {}; _i2 < 256; _i2++) _SB[_i2] = String.fromCharCode(_i2);
function _fz1() {
this._gz1 = [];
};
_fz1.prototype._hz1 = function () {
for (var _O9 = '', _gb = this._gz1.length, _i2 = 0; _i2 < _gb; _i2++) _O9 += _SB[this._gz1[_i2]];
return _O9
};
_fz1.prototype._iz1 = function (_Ji) {
this._gz1.push(_Ji)
};
_fz1.prototype._jz1 = function (_r5) {
for (var _gb = _r5.length, _i2 = 0; _i2 < _gb; _i2++) this._iz1(_r5.charCodeAt(_i2))
};
_fz1.prototype._kz1 = function (_lz1, offset, length) {
for (var _gb = length || _lz1.length, _i2 = offset || 0; _i2 < _gb; _i2++) this._iz1(_lz1[_i2])
};
var _dz1 = {};
var width;
var height;
var _w1 = null;
var _mz1;
var repeat = -1;
var _nz1 = 0;
var _oz1 = !1;
var out;
var _I9;
var _pz1;
var _qz1;
var colorDepth;
var _rz1;
var _sz1 = [];
var _tz1 = 7;
var dispose = -1;
var _uz1 = !1;
var _vz1 = !0;
var _wz1 = !1;
var _xz1 = 10;
var _yz1 = "Generated by jsgif (https://github.com/antimatter15/jsgif/)";
/*
* Sets the delay time between each frame, or changes it for subsequent frames
* (applies to last frame added)
* int delay time in milliseconds
* @param ms
*/
var _zz1 = _dz1._zz1 = function _zz1(_vv) {
_nz1 = Math.round(_vv / 10)
};
/*
* Sets the GIF frame disposal code for the last added frame and any
*
* subsequent frames. Default is 0 if no transparent color has been set,
* otherwise 2.
* @param code
* int disposal code.
*/
var _Az1 = _dz1._Az1 = function _Az1(_4Z) {
if (_4Z >= 0) dispose = _4Z
};
/*
* Sets the number of times the set of GIF frames should be played. Default is
* 1; 0 means play indefinitely. Must be invoked before the first image is
* added.
*
* @param iter
* int number of iterations.
* @return
*/
var _Bz1 = _dz1._Bz1 = function _Bz1(_za1) {
if (_za1 >= 0) repeat = _za1
};
/*
* Sets the transparent color for the last added frame and any subsequent
* frames. Since all colors are subject to modification in the quantization
* process, the color in the final palette for each frame closest to the given
* color becomes the transparent color for that frame. May be set to null to
* indicate no transparent color.
* @param
* Color to be treated as transparent on display.
*/
var _Cz1 = _dz1._Cz1 = function _Cz1(_j2) {
_w1 = _j2
};
/*
* Sets the comment for the block comment
* @param
* string to be insterted as comment
*/
var _Dz1 = _dz1._Dz1 = function _Dz1(_j2) {
_yz1 = _j2
};
/*
* The addFrame method takes an incoming BitmapData object to create each frames
* @param
* BitmapData object to be treated as a GIF's frame
*/
var _Ez1 = _dz1._Ez1 = function _Ez1(_af, _Fz1) {
if ((_af === null) || !_oz1 || out === null) {
throw new Error("Please call start method before calling addFrame")
}
var _Zy = !0;
try {
if (!_Fz1) {
_I9 = _af.getImageData(0, 0, _af.canvas.width, _af.canvas.height).data;
if (!_wz1) _Gz1(_af.canvas.width, _af.canvas.height)
} else {
if (_af instanceof ImageData) {
_I9 = _af.data;
if (!_Hz1 || width != _af.width || height != _af.height) {
_Gz1(_af.width, _af.height)
} else {}
} else if (_af instanceof Uint8ClampedArray) {
if (_af.length == (width * height * 4)) {
_I9 = _af
} else {
console.log("Please set the correct size: ImageData length mismatch");
_Zy = !1
}
} else {
console.log("Please provide correct input");
_Zy = !1
}
}
_Iz1();
if (_xz1 == 0) _Jz1();
else _Kz1();
if (_vz1) {
_Lz1();
_Mz1();
if (repeat >= 0) {
_Nz1()
}
}
_Oz1();
if (_yz1 !== '') {
_Pz1()
}
_Qz1();
if (!_vz1) _Mz1();
_Rz1();
_vz1 = !1
} catch (e) {
_Zy = !1
}
return _Zy
};
/*
* @description: Downloads the encoded gif with the given name
* No need of any conversion from the stream data (out) to base64
* Solves the issue of large file sizes when there are more frames
* and does not involve in creation of any temporary data in the process
* so no wastage of memory, and speeds up the process of downloading
* to just calling this function.
* @parameter {String} filename filename used for downloading the gif
*/
var download = _dz1.download = function download(_Sz1) {
if (out === null || _uz1 == !1) {
console.log("Please call start method and add frames and call finish method before calling download")
} else {
_Sz1 = _Sz1 !== undefined ? (_Sz1.endsWith(".gif") ? _Sz1 : _Sz1 + ".gif") : "download.gif";
var _Tz1 = document.createElement("a");
_Tz1.download = _Sz1;
_Tz1.href = URL.createObjectURL(new Blob([new Uint8Array(out._gz1)], {
type: "image/gif"
}));
_Tz1.click()
}
};
var _Uz1 = _dz1._Uz1 = function _Uz1() {
if (!_oz1) return !1;
var _Zy = !0;
_oz1 = !1;
try {
out._iz1(0x3b);
_uz1 = !0
} catch (e) {
_Zy = !1
}
return _Zy;
};
var _M31 = function _M31() {
_mz1 = 0;
_I9 = null;
_pz1 = null;
_qz1 = null;
_rz1 = null;
_uz1 = !1;
_vz1 = !0
};
/*
* * Sets frame rate in frames per second. Equivalent to
* setDelay(1000/fps)
.
* @param fps
* float frame rate (frames per second)
*/
var _Vz1 = _dz1._Vz1 = function _Vz1(_xL) {
if (_xL != 0xf) _nz1 = Math.round(100 / _xL)
};
/*
* Sets quality of color quantization (conversion of images to the maximum 256
* colors allowed by the GIF specification). Lower values (minimum = 1)
* produce better colors, but slow processing significantly. 10 is the
* default, and produces good color mapping at reasonable speeds. Values
* greater than 20 do not yield significant improvements in speed.
* @param quality
* int greater than 0.
* @return
*/
var _Wz1 = _dz1._Wz1 = function _Wz1(_Xz1) {
_xz1 = _Xz1
};
/*
* Sets the GIF frame size. The default size is the size of the first frame
* added if this method is not invoked.
* @param w
* int frame width.
* @param h
* int frame width.
*/
var _Gz1 = _dz1._Gz1 = function _Gz1(_k2, _l2) {
if (_oz1 && !_vz1) return;
width = _k2;
height = _l2;
if (width < 1) width = 320;
if (height < 1) height = 240;
_wz1 = !0
};
/*
* Initiates GIF file creation on the given stream.
* @param os
* OutputStream on which GIF images are written.
* @return false if initial write failed.
*/
var start = _dz1.start = function start() {
_M31();
var _Zy = !0;
_uz1 = !1;
out = new _fz1();
try {
out._jz1("GIF89a")
} catch (e) {
_Zy = !1
}
return _oz1 = _Zy
};
var _Yz1 = _dz1._Yz1 = function _Yz1() {
_M31();
var _Zy = !0;
_uz1 = !1;
out = new _fz1();
return _oz1 = _Zy
};
var _Kz1 = function _Kz1() {
var _0y = _pz1.length;
var _Zz1 = _0y / 3;
_qz1 = [];
var __z1 = new _0A1(_pz1, _0y, _xz1);
_rz1 = __z1._1A1();
var __l = 0;
for (var _nb = 0; _nb < _Zz1; _nb++) {
var index = __z1.map(_pz1[__l++] & 0xff, _pz1[__l++] & 0xff, _pz1[__l++] & 0xff);
_sz1[index] = !0;
_qz1[_nb] = index
}
_pz1 = null;
colorDepth = 8;
_tz1 = 7;
if (_w1 !== null) {
_mz1 = _2A1(_w1)
}
};
var _Jz1 = function _Jz1() {
var _0y = _pz1.length;
var _Zz1 = _0y / 3;
_qz1 = [];
_rz1 = [];
for (var _79 = 0; _79 < 8; _79++) {
for (var _89 = 0; _89 < 8; _89++) {
for (var _99 = 0; _99 < 4; _99++) {
var index = 32 * _79 + 4 * _89 + _99;
_rz1[index * 3 + 0] = floor((_99 + 0.5) * 255 / 4);
_rz1[index * 3 + 2] = floor((_79 + 0.5) * 255 / 8);
_rz1[index * 3 + 1] = floor((_89 + 0.5) * 255 / 8)
}
}
}
var __l = 0;
for (var _nb = 0; _nb < _Zz1; _nb++) {
var _99 = floor((4 * (_pz1[__l++] & 0xff) / 256));
var _89 = floor((8 * (_pz1[__l++] & 0xff) / 256));
var _79 = floor((8 * (_pz1[__l++] & 0xff) / 256));
var index = _79 * 32 + _89 * 4 + _99;
_sz1[index] = !0;
_qz1[_nb] = index
}
_pz1 = null;
colorDepth = 8;
_tz1 = 7;
if (_w1 !== null) {
_mz1 = 0
}
};
var _2A1 = function _2A1(_j2) {
if (_rz1 === null) return -1;
var _79 = (_j2 & 0xFF0000) >> 16;
var _89 = (_j2 & 0x00FF00) >> 8;
var _99 = (_j2 & 0x0000FF);
var _3A1 = 0;
var _4A1 = 256 * 256 * 256;
var _0y = _rz1.length;
for (var _i2 = 0; _i2 < _0y;) {
var _Qp1 = _79 - (_rz1[_i2++] & 0xff);
var _Rp1 = _89 - (_rz1[_i2++] & 0xff);
var _Sp1 = _99 - (_rz1[_i2] & 0xff);
var _Xn = _Qp1 * _Qp1 + _Rp1 * _Rp1 + _Sp1 * _Sp1;
var index = _i2 / 3;
if (_sz1[index] && (_Xn < _4A1)) {
_4A1 = _Xn;
_3A1 = index
}
_i2++
}
return _3A1
};
var _5A1 = _dz1._5A1 = function _5A1() {
return width
};
var _6A1 = _dz1._6A1 = function _6A1() {
return height
};
var _Iz1 = function _Iz1() {
var _k2 = width;
var _l2 = height;
_pz1 = [];
var data = _I9;
var _Jc = 0;
for (var _i2 = 0; _i2 < _l2; _i2++) {
for (var _nb = 0; _nb < _k2; _nb++) {
var _99 = (_i2 * _k2 * 4) + _nb * 4;
_pz1[_Jc++] = data[_99];
_pz1[_Jc++] = data[_99 + 1];
_pz1[_Jc++] = data[_99 + 2]
}
}
};
var _Oz1 = function _Oz1() {
out._iz1(0x21);
out._iz1(0xf9);
out._iz1(4);
var _7A1;
var _8A1;
if (_w1 === null) {
_7A1 = 0;
_8A1 = 0
} else {
_7A1 = 1;
_8A1 = 2
}
if (dispose >= 0) {
_8A1 = dispose & 7
}
_8A1 <<= 2;
out._iz1(0 | _8A1 | 0 | _7A1);
_9A1(_nz1);
out._iz1(_mz1);
out._iz1(0)
};
var _Pz1 = function _Pz1() {
out._iz1(0x21);
out._iz1(0xfe);
out._iz1(_yz1.length);
out._jz1(_yz1);
out._iz1(0)
};
var _Qz1 = function _Qz1() {
out._iz1(0x2c);
_9A1(0);
_9A1(0);
_9A1(width);
_9A1(height);
if (_vz1) {
out._iz1(0)
} else {
out._iz1(0x80 | 0 | 0 | 0 | _tz1)
}
};
var _Lz1 = function _Lz1() {
_9A1(width);
_9A1(height);
out._iz1((0x80 | 0x70 | 0x00 | _tz1));
out._iz1(0);
out._iz1(0)
};
var _Nz1 = function _Nz1() {
out._iz1(0x21);
out._iz1(0xff);
out._iz1(11);
out._jz1("NETSCAPE" + "2.0");
out._iz1(3);
out._iz1(1);
_9A1(repeat);
out._iz1(0);
};
var _Mz1 = function _Mz1() {
out._kz1(_rz1);
var _3b = (3 * 256) - _rz1.length;
for (var _i2 = 0; _i2 < _3b; _i2++) out._iz1(0)
};
var _9A1 = function _9A1(_aA1) {
out._iz1(_aA1 & 0xFF);
out._iz1((_aA1 >> 8) & 0xFF)
};
var _Rz1 = function _Rz1() {
var _bA1 = new _cA1(width, height, _qz1, colorDepth);
_bA1.encode(out)
};
var _dA1 = _dz1._dA1 = function _dA1() {
return out
};
var _eA1 = _dz1._eA1 = function _eA1(_fA1, _gA1) {
_oz1 = _fA1;
_vz1 = _gA1
};
return _dz1
};
/*
* This class handles LZW encoding
* Adapted from Jef Poskanzer's Java port by way of J. M. G. Elliott.
* @author Kevin Weiner (original Java version - kweiner@fmsware.com)
* @author Thibault Imbert (AS3 version - bytearray.org)
* @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif)
* @version 0.1 AS3 implementation
*/
_cA1 = function () {
var _dz1 = {};
var _hA1 = -1;
var _iA1;
var _jA1;
var _kA1;
var _lA1;
var _mA1;
var _nA1; // David Rowley (mgardi@watdcsu.waterloo.edu)
var _oA1 = 12;
var _pA1 = 5003;
var _qA1;
var _rA1 = _oA1;
var _sA1;
var _tA1 = 1 << _oA1;
var _uA1 = [];
var _vA1 = [];
var _wA1 = _pA1;
var _xA1 = 0;
var _yA1 = !1;
var _zA1;
var _AA1;
var _BA1;
var _CA1 = 0;
var _DA1 = 0;
var _EA1 = [0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF];
var _FA1;
var _GA1 = [];
var _cA1 = _dz1._cA1 = function _cA1(width, height, _pz1, _HA1) {
_iA1 = width;
_jA1 = height;
_kA1 = _pz1;
_lA1 = Math.max(2, _HA1)
};
var _IA1 = function _IA1(_j2, _JA1) {
_GA1[_FA1++] = _j2;
if (_FA1 >= 254) _KA1(_JA1)
};
var _LA1 = function _LA1(_JA1) {
_MA1(_wA1);
_xA1 = _AA1 + 2;
_yA1 = !0;
_cC(_AA1, _JA1)
};
var _MA1 = function _MA1(_wA1) {
for (var _i2 = 0; _i2 < _wA1; ++_i2) _uA1[_i2] = -1
};
var compress = _dz1.compress = function compress(_NA1, _JA1) {
var _OA1;
var _i2;
var _j2;
var _PA1;
var _8A1;
var _QA1;
var _RA1;
_zA1 = _NA1;
_yA1 = !1;
_qA1 = _zA1;
_sA1 = _SA1(_qA1);
_AA1 = 1 << (_NA1 - 1);
_BA1 = _AA1 + 1;
_xA1 = _AA1 + 2;
_FA1 = 0;
_PA1 = _TA1();
_RA1 = 0;
for (_OA1 = _wA1; _OA1 < 65536; _OA1 *= 2) ++_RA1;
_RA1 = 8 - _RA1;
_QA1 = _wA1;
_MA1(_QA1);
_cC(_AA1, _JA1);
_UA1: while ((_j2 = _TA1()) != _hA1) {
_OA1 = (_j2 << _rA1) + _PA1;
_i2 = (_j2 << _RA1) ^ _PA1;
if (_uA1[_i2] == _OA1) {
_PA1 = _vA1[_i2];
continue
} else if (_uA1[_i2] >= 0) {
_8A1 = _QA1 - _i2;
if (_i2 === 0) _8A1 = 1;
do {
if ((_i2 -= _8A1) < 0) _i2 += _QA1;
if (_uA1[_i2] == _OA1) {
_PA1 = _vA1[_i2];
continue _UA1
}
} while (_uA1[_i2] >= 0)
}
_cC(_PA1, _JA1);
_PA1 = _j2;
if (_xA1 < _tA1) {
_vA1[_i2] = _xA1++;
_uA1[_i2] = _OA1
} else _LA1(_JA1)
}
_cC(_PA1, _JA1);
_cC(_BA1, _JA1)
};
var encode = _dz1.encode = function encode(_VA1) {
_VA1._iz1(_lA1);
_mA1 = _iA1 * _jA1;
_nA1 = 0;
compress(_lA1 + 1, _VA1);
_VA1._iz1(0)
};
var _KA1 = function _KA1(_JA1) {
if (_FA1 > 0) {
_JA1._iz1(_FA1);
_JA1._kz1(_GA1, 0, _FA1);
_FA1 = 0
}
};
var _SA1 = function _SA1(_qA1) {
return (1 << _qA1) - 1
};
var _TA1 = function _TA1() {
if (_mA1 === 0) return _hA1;
--_mA1;
var _WA1 = _kA1[_nA1++];
return _WA1 & 0xff
};
var _cC = function _cC(_4Z, _JA1) {
_CA1 &= _EA1[_DA1];
if (_DA1 > 0) _CA1 |= (_4Z << _DA1);
else _CA1 = _4Z;
_DA1 += _qA1;
while (_DA1 >= 8) {
_IA1((_CA1 & 0xff), _JA1);
_CA1 >>= 8;
_DA1 -= 8
}
if (_xA1 > _sA1 || _yA1) {
if (_yA1) {
_sA1 = _SA1(_qA1 = _zA1);
_yA1 = !1
} else {
++_qA1;
if (_qA1 == _rA1) _sA1 = _tA1;
else _sA1 = _SA1(_qA1)
}
}
if (_4Z == _BA1) {
while (_DA1 > 0) {
_IA1((_CA1 & 0xff), _JA1);
_CA1 >>= 8;
_DA1 -= 8
}
_KA1(_JA1)
}
};
_cA1.apply(this, arguments);
return _dz1
};
/* * This class handles Neural-Net quantization algorithm
* @author Kevin Weiner (original Java version - kweiner@fmsware.com)
* @author Thibault Imbert (AS3 version - bytearray.org)
* @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif)
* @version 0.1 AS3 implementation
*/
_0A1 = function () {
var _dz1 = {};
var _XA1 = 256;
var _YA1 = 499;
var _ZA1 = 491;
var __A1 = 487;
var _0B1 = 503;
var _1B1 = (3 * _0B1);
var _2B1 = (_XA1 - 1);
var _3B1 = 4;
var _4B1 = 100;
var _5B1 = 16;
var _6B1 = (1 << _5B1);
var _7B1 = 10;
var _8B1 = (1 << _7B1);
var _9B1 = 10;
var _D51 = (_6B1 >> _9B1);
var _aB1 = (_6B1 << (_7B1 - _9B1));
var _bB1 = (_XA1 >> 3);
var _cB1 = 6;
var _dB1 = (1 << _cB1);
var _eB1 = (_bB1 * _dB1);
var _fB1 = 30;
var _gB1 = 10;
var _hB1 = (1 << _gB1);
var _iB1;
var _jB1 = 8;
var _kB1 = (1 << _jB1);
var _lB1 = (_gB1 + _jB1);
var _mB1 = (1 << _lB1);
var _nB1;
var _oB1;
var _pB1;
var _qB1;
var _rB1 = [];
var _Oq = [];
var _sB1 = [];
var _tB1 = [];
var _0A1 = _dz1._0A1 = function _0A1(_uB1,
_0y, _xz1) {
var _i2;
var _gE;
_nB1 = _uB1;
_oB1 = _0y;
_pB1 = _xz1;
_qB1 = new Array(_XA1);
for (_i2 = 0; _i2 < _XA1; _i2++) {
_qB1[_i2] = new Array(4);
_gE = _qB1[_i2];
_gE[0] = _gE[1] = _gE[2] = (_i2 << (_3B1 + 8)) / _XA1;
_sB1[_i2] = _6B1 / _XA1;
_Oq[_i2] = 0
}
};
var _vB1 = function _vB1() {
var map = [];
var index = new Array(_XA1);
for (var _i2 = 0; _i2 < _XA1; _i2++) index[_qB1[_i2][3]] = _i2;
var __l = 0;
for (var _gb = 0; _gb < _XA1; _gb++) {
var _nb = index[_gb];
map[__l++] = (_qB1[_nb][0]);
map[__l++] = (_qB1[_nb][1]);
map[__l++] = (_qB1[_nb][2])
}
return map
};
var _wB1 = function _wB1() {
var _i2;
var _nb;
var _xB1;
var _yB1;
var _gE;
var _qC;
var _zB1;
var _AB1;
_zB1 = 0;
_AB1 = 0;
for (_i2 = 0; _i2 < _XA1; _i2++) {
_gE = _qB1[_i2];
_xB1 = _i2;
_yB1 = _gE[1];
for (_nb = _i2 + 1; _nb < _XA1; _nb++) {
_qC = _qB1[_nb];
if (_qC[1] < _yB1) {
_xB1 = _nb;
_yB1 = _qC[1]
}
}
_qC = _qB1[_xB1];
if (_i2 != _xB1) {
_nb = _qC[0];
_qC[0] = _gE[0];
_gE[0] = _nb;
_nb = _qC[1];
_qC[1] = _gE[1];
_gE[1] = _nb;
_nb = _qC[2];
_qC[2] = _gE[2];
_gE[2] = _nb;
_nb = _qC[3];
_qC[3] = _gE[3];
_gE[3] = _nb
}
if (_yB1 != _zB1) {
_rB1[_zB1] = (_AB1 + _i2) >> 1;
for (_nb = _zB1 + 1; _nb < _yB1; _nb++) _rB1[_nb] = _i2;
_zB1 = _yB1;
_AB1 = _i2
}
}
_rB1[_zB1] = (_AB1 + _2B1) >> 1;
for (_nb = _zB1 + 1; _nb < 256; _nb++) _rB1[_nb] = _2B1;
};
var _BB1 = function _BB1() {
var _i2;
var _nb;
var _99;
var _89;
var _79;
var _v61;
var _bG;
var alpha;
var _z31;
var _CB1;
var _DB1;
var _gE;
var _WA1;
var _EB1;
if (_oB1 < _1B1) _pB1 = 1;
_iB1 = 30 + ((_pB1 - 1) / 3);
_gE = _nB1;
_WA1 = 0;
_EB1 = _oB1;
_DB1 = _oB1 / (3 * _pB1);
_CB1 = (_DB1 / _4B1) | 0;
alpha = _hB1;
_v61 = _eB1;
_bG = _v61 >> _cB1;
if (_bG <= 1) _bG = 0;
for (_i2 = 0; _i2 < _bG; _i2++) _tB1[_i2] = alpha * (((_bG * _bG - _i2 * _i2) * _kB1) / (_bG * _bG));
if (_oB1 < _1B1) _z31 = 3;
else if ((_oB1 % _YA1) !== 0) _z31 = 3 * _YA1;
else {
if ((_oB1 % _ZA1) !== 0) _z31 = 3 * _ZA1;
else {
if ((_oB1 % __A1) !== 0) _z31 = 3 * __A1;
else _z31 = 3 * _0B1
}
}
_i2 = 0;
while (_i2 < _DB1) {
_99 = (_gE[_WA1 + 0] & 0xff) << _3B1;
_89 = (_gE[_WA1 + 1] & 0xff) << _3B1;
_79 = (_gE[_WA1 + 2] & 0xff) << _3B1;
_nb = _FB1(_99, _89, _79);
_GB1(alpha, _nb, _99, _89, _79);
if (_bG !== 0) _HB1(_bG, _nb, _99, _89, _79);
_WA1 += _z31;
if (_WA1 >= _EB1) _WA1 -= _oB1;
_i2++;
if (_CB1 === 0) _CB1 = 1;
if (_i2 % _CB1 === 0) {
alpha -= alpha / _iB1;
_v61 -= _v61 / _fB1;
_bG = _v61 >> _cB1;
if (_bG <= 1) _bG = 0;
for (_nb = 0; _nb < _bG; _nb++) _tB1[_nb] = alpha * (((_bG * _bG - _nb * _nb) * _kB1) / (_bG * _bG))
}
}
};
var map = _dz1.map = function map(_99,
_89, _79) {
var _i2;
var _nb;
var _zn;
var _a9;
var _IB1;
var _gE;
var _JB1;
_IB1 = 1000;
_JB1 = -1;
_i2 = _rB1[_89];
_nb = _i2 - 1;
while ((_i2 < _XA1) || (_nb >= 0)) {
if (_i2 < _XA1) {
_gE = _qB1[_i2];
_zn = _gE[1] - _89;
if (_zn >= _IB1) _i2 = _XA1;
else {
_i2++;
if (_zn < 0) _zn = -_zn;
_a9 = _gE[0] - _99;
if (_a9 < 0) _a9 = -_a9;
_zn += _a9;
if (_zn < _IB1) {
_a9 = _gE[2] - _79;
if (_a9 < 0) _a9 = -_a9;
_zn += _a9;
if (_zn < _IB1) {
_IB1 = _zn;
_JB1 = _gE[3]
}
}
}
}
if (_nb >= 0) {
_gE = _qB1[_nb];
_zn = _89 - _gE[1];
if (_zn >= _IB1) _nb = -1;
else {
_nb--;
if (_zn < 0) _zn = -_zn;
_a9 = _gE[0] - _99;
if (_a9 < 0) _a9 = -_a9;
_zn += _a9;
if (_zn < _IB1) {
_a9 = _gE[2] - _79;
if (_a9 < 0) _a9 = -_a9;
_zn += _a9;
if (_zn < _IB1) {
_IB1 = _zn;
_JB1 = _gE[3]
}
}
}
}
}
return (_JB1)
};
var _1A1 = _dz1._1A1 = function _1A1() {
_BB1();
_KB1();
_wB1();
return _vB1()
};
var _KB1 = function _KB1() {
var _i2;
var _nb;
for (_i2 = 0; _i2 < _XA1; _i2++) {
_qB1[_i2][0] >>= _3B1;
_qB1[_i2][1] >>= _3B1;
_qB1[_i2][2] >>= _3B1;
_qB1[_i2][3] = _i2
}
};
var _HB1 = function _HB1(_bG, _i2, _99, _89, _79) {
var _nb;
var __l;
var _i61;
var _8Z;
var _a9;
var _5b;
var _gE;
_i61 = _i2 - _bG;
if (_i61 < -1) _i61 = -1;
_8Z = _i2 + _bG;
if (_8Z > _XA1) _8Z = _XA1;
_nb = _i2 + 1;
__l = _i2 - 1;
_5b = 1;
while ((_nb < _8Z) || (__l > _i61)) {
_a9 = _tB1[_5b++];
if (_nb < _8Z) {
_gE = _qB1[_nb++];
try {
_gE[0] -= (_a9 * (_gE[0] - _99)) / _mB1;
_gE[1] -= (_a9 * (_gE[1] - _89)) / _mB1;
_gE[2] -= (_a9 * (_gE[2] - _79)) / _mB1;
} catch (e) {}
}
if (__l > _i61) {
_gE = _qB1[__l--];
try {
_gE[0] -= (_a9 * (_gE[0] - _99)) / _mB1;
_gE[1] -= (_a9 * (_gE[1] - _89)) / _mB1;
_gE[2] -= (_a9 * (_gE[2] - _79)) / _mB1
} catch (e) {}
}
}
};
var _GB1 = function _GB1(alpha, _i2, _99, _89, _79) {
var _3b = _qB1[_i2];
_3b[0] -= (alpha * (_3b[0] - _99)) / _hB1;
_3b[1] -= (alpha * (_3b[1] - _89)) / _hB1;
_3b[2] -= (alpha * (_3b[2] - _79)) / _hB1
};
var _FB1 = function _FB1(_99, _89, _79) {
var _i2;
var _zn;
var _a9;
var _LB1;
var _MB1;
var _NB1;
var _OB1;
var _IB1;
var _PB1;
var _3b;
_IB1 = ~(1 << 31);
_PB1 = _IB1;
_NB1 = -1;
_OB1 = _NB1;
for (_i2 = 0; _i2 < _XA1; _i2++) {
_3b = _qB1[_i2];
_zn = _3b[0] - _99;
if (_zn < 0) _zn = -_zn;
_a9 = _3b[1] - _89;
if (_a9 < 0) _a9 = -_a9;
_zn += _a9;
_a9 = _3b[2] - _79;
if (_a9 < 0) _a9 = -_a9;
_zn += _a9;
if (_zn < _IB1) {
_IB1 = _zn;
_NB1 = _i2
}
_LB1 = _zn - ((_Oq[_i2]) >> (_5B1 - _3B1));
if (_LB1 < _PB1) {
_PB1 = _LB1;
_OB1 = _i2
}
_MB1 = (_sB1[_i2] >> _9B1);
_sB1[_i2] -= _MB1;
_Oq[_i2] += (_MB1 << _7B1)
}
_sB1[_NB1] += _D51;
_Oq[_NB1] -= _aB1;
return (_OB1)
};
_0A1.apply(this, arguments);
return _dz1
};
function _QB1() {
var _RB1 = "#define MATRIX_VIEW 0\n" + "#define MATRIX_PROJECTION 1\n" + "#define MATRIX_WORLD 2\n" + "#define MATRIX_WORLD_VIEW 3\n" + "#define MATRIX_WORLD_VIEW_PROJECTION 4\n" + "#define MATRICES_MAX 5\n" + "#define FOG_SETTINGS 0\n" + "#define FOG_COLOUR 1\n" + "\n" + "uniform mat4 matrices[MATRICES_MAX];\n" + "uniform vec4 fogParameters[2];\n" + "\n" + "attribute vec3 vertex;\n" + "attribute vec4 color;\n" + "attribute vec2 UV;\n" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "float CalcFogFactor(vec4 pos)\n" + "{\n" + " vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n" + " vec4 fogParams = fogParameters[FOG_SETTINGS];\n" + " return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " fcolor = color;\n" + " texc = UV;\n" + " vec4 pos = vec4(vertex.xyz, 1);\n" + " fogFactor = CalcFogFactor(pos);\n" + " fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n" + " gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n" + " gl_PointSize = 1.0;\n" + "}";
return _RB1
}
function _SB1() {
var _TB1 = "precision highp float;\n" + "uniform sampler2D pTexure;\n" + "uniform bool alphaTestEnabled;\n" + "uniform float alphaRefValue;" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "void DoAlphaTest(vec4 SrcColour)\n" + "{\n" + " if (alphaTestEnabled)\n" + " {\n" + " if (SrcColour.a <= alphaRefValue)\n" + " {\n" + " discard;\n" + " }\n" + " }\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 color = texture2D(pTexure, texc).rgba * fcolor.rgba;\n" + " DoAlphaTest(color);\n" + " gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n" + "}\n";
return _TB1
}
function _UB1() {
var _VB1 = "#define LIGHTS_MAX 8\n" + "#define MATRIX_VIEW 0\n" + "#define MATRIX_PROJECTION 1\n" + "#define MATRIX_WORLD 2\n" + "#define MATRIX_WORLD_VIEW 3\n" + "#define MATRIX_WORLD_VIEW_PROJECTION 4\n" + "#define MATRICES_MAX 5\n" + "#define FOG_SETTINGS 0\n" + "#define FOG_COLOUR 1\n" + "\n" + "uniform mat4 matrices[MATRICES_MAX];\n" + "uniform vec4 fogParameters[2];\n" + "\n" + "uniform vec4 dirlightdir[LIGHTS_MAX];\n" + "uniform vec4 pointlightpos[LIGHTS_MAX];\n" + "uniform vec4 lightcol[LIGHTS_MAX];\n" + "uniform vec4 ambientcol;\n" + "\n" + "attribute vec3 vertex;\n" + "attribute vec3 normal;\n" + "attribute vec4 color;\n" + "attribute vec2 UV;\n" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "float CalcFogFactor(vec4 pos)\n" + "{\n" + " vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n" + " vec4 fogParams = fogParameters[FOG_SETTINGS];\n" + " return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n" + "}\n" + "\n" + "vec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n" + "{\n" + " float dotresult = dot(ws_normal, dir.xyz);\n" + " dotresult = max(0.0, dotresult);\n" + " return dotresult * diffusecol;\n" + "}\n" + "\n" + "vec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n" + "{\n" + " float atten = 0.0;\n" + "\n" + " vec3 diffvec = ws_pos - posrange.xyz;\n" + " float veclen = length(diffvec);\n" + " if (veclen <= posrange.w)\n" + " {\n" + " atten = 1.0 / (1.0 + (veclen / posrange.w));\n" + " }\n" + "\n" + " diffvec /= veclen;\n" + " float dotresult = dot(ws_normal, diffvec);\n" + " dotresult = max(0.0, dotresult);\n" + "\n" + " return (diffusecol * dotresult * atten);\n" + "}\n" + "\n" + "vec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n" + "{\n" + " vec3 ws_normal;\n" + " vec3 ws_pos;\n" + " vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n" + "\n" + " ws_normal = (matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n" + " ws_normal = -normalize(ws_normal);\n" + " ws_pos = (matrices[MATRIX_WORLD] * objectspacepos).xyz;\n" + "\n" + " vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);\n" + " for(int i = 0; i < LIGHTS_MAX; i++)\n" + " {\n" + " accumcol += DoDirLight(ws_normal, dirlightdir[i], lightcol[i]);\n" + " }\n" + " for(int i = 0; i < LIGHTS_MAX; i++)\n" + " {\n" + " accumcol += DoPointLight(ws_pos, ws_normal, pointlightpos[i], lightcol[i]);\n" + " }\n" + " accumcol *= vertexcolour;\n" + " accumcol += ambientcol;\n" + " return min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 pos = vec4(vertex.xyz, 1);\n" + " vec4 lcolor = DoLighting(color, pos, normal);\n" + " fcolor = vec4(lcolor.xyz, 1);\n" + " fogFactor = CalcFogFactor(pos);\n" + " fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n" + " texc = UV;\n" + " gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n" + " gl_PointSize = 1.0;\n" + "}";
return _VB1
}
function _WB1() {
var _TB1 = "precision highp float;\n" + "uniform sampler2D pTexure;\n" + "uniform bool alphaTestEnabled;\n" + "uniform float alphaRefValue;" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "void DoAlphaTest(vec4 SrcColour)\n" + "{\n" + " if (alphaTestEnabled)\n" + " {\n" + " if (SrcColour.a <= alphaRefValue)\n" + " {\n" + " discard;\n" + " }\n" + " }\n" + "}\n" + "\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 color = texture2D( pTexure, texc ).rgba * fcolor.rgba;\n" + " DoAlphaTest(color);\n" + " gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n" + "}\n";
return _TB1
} /*@constructor */
function _XB1(_YB1, _C11) {
var _ZB1 = null;
var __B1 = null,
_0C1 = null,
_1C1 = null;
var _2C1 = 0;
var _3C1, _4C1, _5C1;
var _6C1, _7C1, _8C1 = [];
var _9C1, _aC1, _bC1, _cC1;
var _dC1, _eC1;
var _fC1 = 0;
Object.defineProperties(this, {
_gC1: {
get: function () {
return _ZB1
}
},
_hC1: {
get: function () {
return (_ZB1 !== null && _ZB1 !== undefined)
}
},
_pe: {
get: function () {
return _1C1
}
},
_Ne: {
get: function () {
return _6C1
}
},
_dh: {
get: function () {
return _7C1
}
},
_iC1: {
get: function () {
return _3C1
}
},
_jC1: {
get: function () {
return _4C1
}
},
_kC1: {
get: function () {
return _9C1
}
},
_lC1: {
get: function () {
return _aC1
}
},
_mC1: {
get: function () {
return _bC1
},
set: function (_Ji) {
_bC1 = _Ji
}
},
_nC1: {
get: function () {
return _cC1
},
set: function (_Ji) {
_cC1 = _Ji
}
},
_Kw: {
get: function () {
return _dC1
}
}
});
(function () {
_ZB1 = _oC1(_YB1, _C11);
if (_ZB1) {
_pC1(_ZB1);
var _qC1 = _ZB1.getParameter(_ZB1.MAX_TEXTURE_IMAGE_UNITS);
_dC1 = (_qC1 < _de._rC1) ? _qC1 : _de._rC1;
_eC1 = _ZB1.getParameter(_ZB1.MAX_TEXTURE_SIZE);
_0C1 = new _sC1(_C11._tC1);
_1C1 = new _uC1(_dC1, 32, _0C1, _C11._tC1);
__B1 = new _vC1(_0C1, _1C1);
_wC1();
_xC1();
_yC1();
_0C1._fu(_3C1);
_zC1()
}
})();
function _zC1() {
_AC1 = (_ZB1.getExtension('EXT_texture_filter_anisotropic') || _ZB1.getExtension('MOZ_EXT_texture_filter_anisotropic') || _ZB1.getExtension('WEBKIT_EXT_texture_filter_anisotropic'))
}
function _pC1(_BC1) {
_sC1.prototype._BC1 = _BC1;
_vC1.prototype._BC1 = _BC1;
_Yg.prototype._BC1 = _BC1;
_CC1.prototype._BC1 = _BC1;
_DC1.prototype._BC1 = _BC1;
_EC1.prototype._BC1 = _BC1
};
function _FC1() {
var userAgent = navigator.userAgent.toString().toLowerCase();
var _GC1 = userAgent.indexOf("trident/");
if (_GC1 >= 0) {
var version = parseFloat(userAgent.slice(_GC1 + "trident/".length));
if (version == 7) {
return true
}
}
return false
};
function _oC1(_YB1, _C11) {
var _HC1 = null;
var _IC1 = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"]; {
for (var _i2 = 0; _i2 < _IC1.length; _i2++) {
try {
var _JC1 = {
alpha: true,
stencil: _C11._KC1,
antialias: false,
premultipliedAlpha: false,
preserveDrawingBuffer: _C11._LC1
};
_HC1 = _YB1.getContext(_IC1[_i2], _JC1);
if (_HC1) {
break
}
} catch (_bB) {
return null
}
}
}
if (_HC1) {
_9C1 = _YB1.width;
_aC1 = _YB1.height;
_bC1 = _9C1;
_cC1 = _aC1
}
return _HC1;
};
function _wC1() {
var _MC1 = new _DC1(),
_NC1 = new _DC1();
_MC1._OC1();
_MC1._PC1();
_MC1._QC1();
_NC1._OC1();
_NC1._PC1();
_NC1._QC1();
_NC1._RC1();
_6C1 = _8C1.push(_MC1) - 1;
_7C1 = _8C1.push(_NC1) - 1;
__B1._SC1(_6C1);
__B1._SC1(_7C1);
_MC1._TC1 = _NC1._TC1 = true
}; /*@this {yyWebGL} */
this._UC1 = function (_VC1) {
for (var _i2 in _8C1) {
if (!_8C1.hasOwnProperty(_i2)) continue;
if (_8C1[_i2]._Z41(_VC1)) {
return _i2
}
}
var _WC1 = _8C1.push(_VC1) - 1;
__B1._SC1(_WC1);
return _WC1
}; /*@this {yyWebGL} */
this.__g = function (_Sh) {
return _8C1[_Sh]
};
function _XC1(_8N) {
while (((_8N & 0x1) == 0) && (_8N > 1)) {
_8N >>= 1
}
return (_8N == 1)
}; /*@this {yyWebGL} */
this._YC1 = function () {
return _eC1
}; /*@this {yyWebGL} */
this._ZC1 = function (__C1, _0D1, _1D1, _2D1) {
__B1._a_();
_0C1._ZC1(__C1, _0D1, _1D1, _2D1)
};
function _3D1(_4D1, type, source) {
var _wy = _ZB1.createShader((type == 'vertex') ? _ZB1.VERTEX_SHADER : _ZB1.FRAGMENT_SHADER);
_ZB1.shaderSource(_wy, source);
_ZB1.compileShader(_wy);
if (!_ZB1.getShaderParameter(_wy, _ZB1.COMPILE_STATUS)) {
alert("Could not compile " + type + " shader:\n\n" + _ZB1.getShaderInfoLog(_wy));
console.log("----------------Shader Begin----------------");
console.log(source);
console.log("-----------------Shader END----------------");
return
}
_ZB1.attachShader(_4D1, _wy)
};
function _xC1() {
var _VB1 = _QB1();
var _TB1 = _SB1();
var _5D1 = _ZB1.createProgram();
var error = _ZB1.getError();
_3D1(_5D1, "vertex", _VB1);
_3D1(_5D1, "fragment", _TB1);
_ZB1.linkProgram(_5D1);
error = _ZB1.getError();
if (!_ZB1.getProgramParameter(_5D1, _ZB1.LINK_STATUS)) {
alert("Could not initialise shaders\n\n");
return false
}
_ZB1.useProgram(_5D1);
_3C1 = _5D1;
_5D1._6D1 = _ZB1.getAttribLocation(_5D1, "vertex");
_5D1._7D1 = _ZB1.getAttribLocation(_5D1, "normal");
_5D1._8D1 = _ZB1.getAttribLocation(_5D1, "color");
_5D1._9D1 = _ZB1.getAttribLocation(_5D1, "UV");
_5D1._aD1 = _ZB1.getUniformLocation(_5D1, "pTexure");
_5D1._bD1 = _ZB1.getUniformLocation(_5D1, "matrices");
_5D1._cD1 = _ZB1.getUniformLocation(_5D1, "fogParameters");
_5D1._dD1 = _ZB1.getUniformLocation(_5D1, "alphaTestEnabled");
_5D1._eD1 = _ZB1.getUniformLocation(_5D1, "alphaRefValue");
_5D1._fD1 = [];
_5D1._fD1.push(_ZB1.getAttribLocation(_5D1,
"vertex"));
_5D1._fD1.push(_ZB1.getAttribLocation(_5D1, "color"));
_5D1._fD1.push(_ZB1.getAttribLocation(_5D1, "UV"));
_5D1._fD1 = [];
_5D1._gD1 = [];
_5D1._hD1 = [];
if (_5D1._6D1 != -1) {
_5D1._fD1.push(_5D1._6D1);
_5D1._gD1.push("vertex");
_5D1._hD1.push(_de._Xh)
}
if (_5D1._7D1 != -1) {
_5D1._fD1.push(_5D1._7D1);
_5D1._gD1.push("normal");
_5D1._hD1.push(_de._bi)
}
if (_5D1._8D1 != -1) {
_5D1._fD1.push(_5D1._8D1);
_5D1._gD1.push("color");
_5D1._hD1.push(_de._1i)
}
if (_5D1._9D1 != -1) {
_5D1._fD1.push(_5D1._9D1);
_5D1._gD1.push("UV");
_5D1._hD1.push(_de._9i);
}
_5D1._iD1 = _fC1++;
return true
};
function _yC1() {
var _RB1 = _UB1();
var _TB1 = _WB1();
var _5D1 = _ZB1.createProgram();
var error = _ZB1.getError();
_3D1(_5D1, "vertex", _RB1);
_3D1(_5D1, "fragment", _TB1);
_ZB1.linkProgram(_5D1);
error = _ZB1.getError();
if (!_ZB1.getProgramParameter(_5D1, _ZB1.LINK_STATUS)) {
alert("Could not initialise 3D shader\n\n");
return false
}
_ZB1.useProgram(_5D1);
_5D1._jD1 = _ZB1.getUniformLocation(_5D1, "ViewMatrix");
_4C1 = _5D1;
_5D1._6D1 = _ZB1.getAttribLocation(_5D1, "vertex");
_5D1._7D1 = _ZB1.getAttribLocation(_5D1,
"normal");
_5D1._8D1 = _ZB1.getAttribLocation(_5D1, "color");
_5D1._9D1 = _ZB1.getAttribLocation(_5D1, "UV");
_5D1._aD1 = _ZB1.getUniformLocation(_5D1, "pTexure");
_5D1._bD1 = _ZB1.getUniformLocation(_5D1, "matrices");
_5D1._kD1 = _ZB1.getUniformLocation(_5D1, "dirlightdir");
_5D1._lD1 = _ZB1.getUniformLocation(_5D1, "pointlightpos");
_5D1._mD1 = _ZB1.getUniformLocation(_5D1, "lightcol");
_5D1._nD1 = _ZB1.getUniformLocation(_5D1, "ambientcol");
_5D1._cD1 = _ZB1.getUniformLocation(_5D1, "fogParameters");
_5D1._dD1 = _ZB1.getUniformLocation(_5D1,
"alphaTestEnabled");
_5D1._eD1 = _ZB1.getUniformLocation(_5D1, "alphaRefValue");
_5D1._fD1 = [];
_5D1._gD1 = [];
_5D1._hD1 = [];
if (_5D1._6D1 != -1) {
_5D1._fD1.push(_5D1._6D1);
_5D1._gD1.push("vertex");
_5D1._hD1.push(_de._Xh)
}
if (_5D1._7D1 != -1) {
_5D1._fD1.push(_5D1._7D1);
_5D1._gD1.push("normal");
_5D1._hD1.push(_de._bi)
}
if (_5D1._8D1 != -1) {
_5D1._fD1.push(_5D1._8D1);
_5D1._gD1.push("color");
_5D1._hD1.push(_de._1i)
}
if (_5D1._9D1 != -1) {
_5D1._fD1.push(_5D1._9D1);
_5D1._gD1.push("UV");
_5D1._hD1.push(_de._9i)
}
_5D1._iD1 = _fC1++;
return true
}; /*@this {yyWebGL} */
this._oD1 = function (_pD1, _qD1, _rD1) {
if (_pD1 == "None" || _qD1 == "None") {
var _sD1 = {
_tD1: null,
_uD1: null
};
return _sD1
}
var _5D1 = _ZB1.createProgram();
var error = _ZB1.getError();
_3D1(_5D1, "vertex", _pD1);
_3D1(_5D1, "fragment", _qD1);
_ZB1.linkProgram(_5D1);
error = _ZB1.getError();
if (!_ZB1.getProgramParameter(_5D1, _ZB1.LINK_STATUS)) {
var _sD1 = {
_tD1: null,
_uD1: null
};
return _sD1
}
_ZB1.useProgram(_5D1);
_5D1._bD1 = _ZB1.getUniformLocation(_5D1, "gm_Matrices");
_5D1._kD1 = _ZB1.getUniformLocation(_5D1, "gm_Lights_Direction");
_5D1._lD1 = _ZB1.getUniformLocation(_5D1, "gm_Lights_PosRange");
_5D1._mD1 = _ZB1.getUniformLocation(_5D1, "gm_Lights_Colour");
_5D1._nD1 = _ZB1.getUniformLocation(_5D1, "gm_AmbientColour");
_5D1._6D1 = _ZB1.getAttribLocation(_5D1, "in_Position");
_5D1._7D1 = _ZB1.getAttribLocation(_5D1, "in_Normal");
_5D1._8D1 = _ZB1.getAttribLocation(_5D1, "in_Colour");
_5D1._9D1 = _ZB1.getAttribLocation(_5D1, "in_TextureCoord");
_5D1._fD1 = [];
_5D1._hD1 = [];
for (var _vD1 = 0; _vD1 < _rD1.length; _vD1++) {
_5D1._fD1.push(_ZB1.getAttribLocation(_5D1, _rD1[_vD1]));
switch (_rD1[_vD1]) {
case "in_Position":
_5D1._hD1.push(_de._Xh);
break;
case "in_Normal":
_5D1._hD1.push(_de._bi);
break;
case "in_Colour":
_5D1._hD1.push(_de._1i);
break;
case "in_TextureCoord":
_5D1._hD1.push(_de._9i);
break;
default:
_5D1._hD1.push(_de._9i);
break
}
}
_5D1._gD1 = _rD1;
var _wD1 = "gm_BaseTexture";
var _Jw = [_wD1];
var _Zw = 0;
var _xD1 = [];
var _yD1 = _ZB1.getUniformLocation(_5D1, _wD1);
_ZB1.uniform1iv(_yD1, [_Zw++]);
_5D1._aD1 = _yD1;
_5D1._zD1 = {
_AD1: []
};
for (var _N9 = 0, _BD1 = _ZB1.getProgramParameter(_5D1, _ZB1.ACTIVE_UNIFORMS); _N9 < _BD1; _N9++) {
var _CD1 = 1;
var _DD1 = _ZB1.getActiveUniform(_5D1, _N9),
_ED1 = _DD1["name"];
if (_DD1["size"] > 1) {
var _ko = _ED1.indexOf('[');
if (_ko > 0) {
_ED1 = _ED1.substring(0, _ko)
}
}
if ((_DD1["type"] == _ZB1.SAMPLER_2D) || (_DD1["type"] == _ZB1.SAMPLER_CUBE)) {
if (_ED1 != _wD1) {
_Jw[_Zw] = _ED1;
var _vD1 = _ZB1.getUniformLocation(_5D1, _ED1);
_ZB1.uniform1iv(_vD1, [_Zw++])
}
} else {
switch (_DD1["type"]) {
case _ZB1.FLOAT:
_CD1 = 1;
break;
case _ZB1._FD1:
_CD1 = 1;
break;
case _ZB1.INT:
_CD1 = 1;
break;
case _ZB1._GD1:
_CD1 = 1;
break;
case _ZB1.FLOAT_VEC2:
_CD1 = 2;
break;
case _ZB1.FLOAT_VEC3:
_CD1 = 3;
break;
case _ZB1.FLOAT_VEC4:
_CD1 = 4;
break;
case _ZB1.INT_VEC2:
_CD1 = 2;
break;
case _ZB1.INT_VEC3:
_CD1 = 3;
break;
case _ZB1.INT_VEC4:
_CD1 = 4;
break;
case _ZB1._HD1:
_CD1 = 2;
break;
case _ZB1._ID1:
_CD1 = 3;
break;
case _ZB1._JD1:
_CD1 = 4;
break;
case _ZB1.FLOAT_MAT2:
_CD1 = 4;
break;
case _ZB1.FLOAT_MAT3:
_CD1 = 9;
break;
case _ZB1.FLOAT_MAT4:
_CD1 = 16;
break;
default:
_CD1 = 1
}
}
_5D1._zD1._AD1[_N9] = _ED1;
_5D1._zD1[_ED1] = {
index: _N9,
location: _ZB1.getUniformLocation(_5D1, _ED1),
_KD1: _DD1,
width: _CD1,
size: _DD1.size
};
_5D1._zD1[_N9] = _5D1._zD1[_ED1];
_5D1._Aa1 = _pD1;
_5D1._LD1 = _qD1
}
_5D1._iD1 = _fC1++;
_sD1 = {
_tD1: _5D1,
_uD1: _Jw
};
return _sD1;
}; /*@this {yyWebGL} */
this._MD1 = function () {
_2C1++
}; /*@this {yyWebGL} */
this._ND1 = function () {
__B1._a_();
_0C1._m8 = _2C1;
_0C1._OD1();
_0C1._8D();
_ZB1.clearColor(1, 1, 1, 1);
_ZB1.colorMask(false, false, false, true);
_ZB1.clear(_ZB1.COLOR_BUFFER_BIT);
_ZB1.colorMask(true, true, true, true)
}; /*@this {yyWebGL} */
this._PD1 = function () {
__B1._a_();
_0C1._OD1()
}; /*@this {yyWebGL} */
this._QD1 = function (_bl, _pw) {
_1C1._Je(_de._re, _bl);
_1C1._Je(_de._se,
_pw);
_1C1._Je(_de._te, _bl);
_1C1._Je(_de._ue, _pw)
};
this._RD1 = function (_cu) {
_1C1._Je(_de._9w, _cu)
}; /*@this {yyWebGL} */
this._0u = function (_SD1) {
_1C1._Je(_de._aw, _SD1)
}; /*@this {yyWebGL} */
this._4u = function (_SD1) {
_1C1._Je(_de._mw, _SD1 ? _de._TD1 : _de._UD1)
}; /*@this {yyWebGL} */
this._VD1 = function (_WD1) {}; /*@this {yyWebGL} */
this._2u = function (_SD1) {
_1C1._Je(_de._dw, _SD1)
}; /*@this {yyWebGL} */ /*@this {yyWebGL} */
this._bu = function (_XD1, _YD1, _ZD1, __D1) {
var _Dw = {
_eo: _XD1,
_fo: _YD1,
_go: _ZD1,
alpha: __D1
};
_1C1._Je(_de._Ew,
_Dw)
}; /*@this {yyWebGL} */
this._Wu = function (_l9, _0E1, _1E1, _2E1) {
__B1._a_();
_0C1._Wu(_l9, _0E1, _1E1, _2E1)
}; /*@this {yyWebGL} */
this.__u = function (_l9, _SD1, _3E1) {
__B1._a_();
_0C1.__u(_l9, _SD1, _3E1)
}; /*@this {yyWebGL} */
this._0v = function (_3E1) {
__B1._a_();
_0C1._4E1(_3E1)
}; /*@this {yyWebGL} */
this._2v = function (_5E1) {
var _6E1 = _5E1[0];
var end = _5E1[2];
var start = end;
if (_5E1[1] != 0.0) start = end - (1.0 / _5E1[1]);
var _e3 = (_5E1[4] * 255) | ((_5E1[5] * 255) << 8) | ((_5E1[6] * 255) << 16) | ((_5E1[7] * 255) << 24);
_1C1._Je(_de._hw, _6E1);
_1C1._Je(_de._jw,
start);
_1C1._Je(_de._kw, end);
_1C1._Je(_de._iw, _e3)
}; /*@this {yyWebGL} */
this._7E1 = function (_cu, _8E1) {
_1C1._Je(_de._Fw, _cu);
_1C1._Je(_de._Hw, (_8E1 * 255) | 0)
}; /*@this {yyWebGL} */
this._9E1 = function (_aE1, _bE1) {
if (_bE1) {
_1C1._Lw(_aE1, _de._Sw, _de._Tw);
_1C1._Lw(_aE1, _de._Uw, _de._Tw)
} else {
_1C1._Lw(_aE1, _de._Sw, _de._Vw);
_1C1._Lw(_aE1, _de._Uw, _de._Vw)
}
}; /*@this {yyWebGL} */
this._cE1 = function (_aE1, _Ww) {
_1C1._Lw(_aE1, _de._Mw, _Ww);
_1C1._Lw(_aE1, _de._Ow, _Ww)
}; /*@this {yyWebGL} */
this._dE1 = function () {
return _dC1
}; /*@this {yyWebGL} */
this._eE1 = function (_cu) {
_1C1._Je(_de._fE1, _cu)
}; /*@this {yyWebGL} */
this._gE1 = function (_5z) {
_1C1._Je(_de._hE1, _5z)
}; /*@this {yyWebGL} */
this._iE1 = function (_jE1) {
_1C1._Je(_de._kE1, _jE1)
}; /*@this {yyWebGL} */
this._lE1 = function (_mE1) {
_1C1._Je(_de._nE1, _mE1)
}; /*@this {yyWebGL} */
this._fu = function (_oE1) {
__B1._a_();
_0C1._fu(_oE1);
_5C1 = _oE1
}; /*@this {yyWebGL} */
this._pE1 = function (_oE1, _qE1) {
var _rE1 = _oE1._zD1[_qE1];
if (_rE1) {
return _rE1.index
}
return -1
}; /*@this {yyWebGL} */
this._sE1 = function (_ST,
_tE1) {
if (_ST != -1) {
__B1._a_();
_0C1._sE1(_ST, _tE1)
}
}; /*@this {yyWebGL} */
this._uE1 = function (_ST, _tE1) {
if (_ST != -1) {
__B1._a_();
_0C1._uE1(_ST, _tE1)
}
}; /*@this {yyWebGL} */
this._vE1 = function (_ST, _tE1) {
if (_ST != -1) {
__B1._a_();
_0C1._vE1(_ST, _tE1)
}
}; /*@this {yyWebGL} */
this._wE1 = function (_ST, _tE1) {
var width = _5C1._zD1[_ST].width;
var size = _5C1._zD1[_ST].size;
var _xD1;
var _gb = _tE1.length;
var _xE1 = (_gb + width) - ((_gb + width) % width);
if (_xE1 > (width * size)) _xE1 = width * size;
if (_gb == _xE1) {
_xD1 = new Float32Array(_tE1)
} else {
_xD1 = new Float32Array(_xE1);
if (_xE1 < _gb) _gb = _xE1;
for (var _i2 = 0; _i2 < _gb; _i2++) {
_xD1[_i2] = _tE1[_i2]
}
}
return _xD1
}; /*@this {yyWebGL} */
this._yE1 = function (_ST, _tE1) {
if (_ST != -1) {
__B1._a_();
_tE1 = _wE1(_ST, _tE1);
_0C1._yE1(_ST, _tE1)
}
}; /*@this {yyWebGL} */
this._zE1 = function (_ST, _tE1) {
if (_ST != -1) {
__B1._a_();
_tE1 = this._wE1(_ST, _tE1);
_0C1._zE1(_ST, _tE1)
}
}; /*@this {yyWebGL} */
this._AE1 = function (_Yz) {
__B1._a_();
_0C1._AE1(_Yz)
};
this._a_ = function () {
__B1._a_()
}; /*@this {yyWebGL} */
this._BE1 = function (_qi, _ba, _ca, _7l, _8l, _YB1) {
_0C1._BE1(_qi, _ba,
_ca, _7l, _8l, _YB1)
}; /*@this {yyWebGL} */
this._CE1 = function (_aE1, _qi) {
_de._DE1(_qi instanceof _CC1, "Texture is not a yyGLTexture", _de._EE1);
__B1._a_();
_0C1._CE1(_aE1, _qi)
}; /*@this {yyWebGL} */
this._mu = function (_Kp) {
__B1._a_();
_0C1._FE1(_Kp)
}; /*@this {yyWebGL} */
this._su = function (_Kp) {
__B1._a_();
_0C1._GE1(_Kp)
}; /*@this {yyWebGL} */
this._HE1 = function (_Kp) {
__B1._a_();
_0C1._IE1(_Kp)
}; /*@this {yyWebGL} */
this._JE1 = function (_KE1) {
var _i9 = new _CC1(undefined, _KE1.width, _KE1.height, _XC1(_KE1.width) && _XC1(_KE1.height),
_KE1, _KE1._LE1);
return _i9
};
this._ME1 = function (_NE1, _OE1) {
var _PE1 = _ZB1.getParameter(_ZB1.TEXTURE_BINDING_2D);
var _ch = _ZB1.createTexture();
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _ch);
if (_NE1.Image instanceof Uint8Array) {
_ZB1.texImage2D(_ZB1.TEXTURE_2D, 0, _ZB1.RGBA, _NE1._QE1, _NE1._RE1, 0, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _NE1.Image)
} else {
_ZB1.texImage2D(_ZB1.TEXTURE_2D, 0, _ZB1.RGBA, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _NE1.Image)
}
if (_OE1 !== undefined && (_OE1 == _de._SE1) || (_OE1 == _de._TE1) && ((_NE1._Rk !== undefined && (_NE1._Rk & _UE1._VE1) !== 0))) {
_ZB1.generateMipmap(_ZB1.TEXTURE_2D);
var _WE1 = _NE1._Rk;
_WE1 |= _UE1._XE1;
_NE1._Rk = _WE1
}
_NE1._YE1 = _ch;
_NE1._ZE1.__E1(_ZB1.TEXTURE_2D);
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _PE1);
_NE1._0F1 = true
}; /*@this {yyWebGL} */
this._1F1 = function (_3h, _7m, _2F1, _ih) {
var _1C = 0;
if (_3h) {
_1C |= _ZB1.COLOR_BUFFER_BIT
}
if (_7m) {
_1C |= _ZB1.DEPTH_BUFFER_BIT
}
_0C1._1F1(_1C, _ih)
}; /*@this {yyWebGL} */
this._3_ = function (_B11) {
__B1._a_();
_0C1._3_(_B11)
};
function _3F1(_4F1, _7l, _8l) {
if ((_7l == 0) || (_8l == 0)) {
return
}
var _5F1 = _4F1[(_8l - 1) * _7l] & 0xffffff;
for (var _i2 = 0; _i2 < (_7l * _8l); _i2++) {
if ((_4F1[_i2] & 0xffffff) == _5F1) {
_4F1[_i2] = _4F1[_i2] & 0xffffff
}
}
};
function _6F1(_ph) {
var max = _eC1;
var size = 1;
while (size <= max) {
if (_ph <= size) return size;
size = size << 1
}
return max
}; /*@this {yyWebGL} */
this._7F1 = function (_KE1, _ba, _ca, _7l, _8l, _Wm, _Xm, _8F1) {
this._a_();
var _9F1 = new Uint8Array(_7l * _8l * 4);
_ZB1.readPixels(_ba, _cC1 - (_ca + _8l), _7l, _8l, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _9F1);
var _aF1;
if (_8F1) {
var _bF1 = new ArrayBuffer(_7l * _8l * 4);
_aF1 = new Uint8Array(_bF1);
for (var _O9 = 0; _O9 < _8l; _O9++) {
var _cF1 = _9F1.subarray(_O9 * _7l * 4, (_O9 + 1) * _7l * 4);
var _dF1 = _aF1.subarray((_8l - 1 - _O9) * _7l * 4, (_8l - _O9) * _7l * 4);
_dF1.set(_cF1)
}
if (_Wm) {
_3F1(new Int32Array(_bF1), _7l, _8l)
}
} else {
_aF1 = _9F1
}
var _k2 = _6F1(_7l);
var _l2 = _6F1(_8l);
var _PE1 = _ZB1.getParameter(_ZB1.TEXTURE_BINDING_2D);
var _i9 = new _CC1(undefined, _k2, _l2, (_k2 == _7l) && (_l2 == _8l), _aF1);
_KE1.width = _k2;
_KE1.height = _l2;
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _PE1);
_0C1._8D();
return _i9
}; /*@this {yyWebGL} */
this._eF1 = function (_KE1, _fF1, _ba, _ca, _7l, _8l, _Wm, _Xm) {
this._PD1();
var _gF1 = _ZB1.getParameter(_ZB1.FRAMEBUFFER_BINDING);
var _bF1 = new ArrayBuffer(_7l * _8l * 4);
var _aF1 = new Uint8Array(_bF1);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _fF1);
_ZB1.readPixels(_ba, _ca, _7l, _8l, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _aF1);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _gF1);
if (_Wm) {
_3F1(new Int32Array(_bF1), _7l, _8l)
}
var _k2 = _6F1(_7l);
var _l2 = _6F1(_8l);
var _PE1 = _ZB1.getParameter(_ZB1.TEXTURE_BINDING_2D);
var _hF1 = new ArrayBuffer(_k2 * _l2 * 4);
var _iF1 = new Uint8Array(_hF1);
var y;
var _Bl = 0;
var _jF1 = 0;
for (y = 0; y < _8l; y++) {
var x;
for (x = 0; x < _7l; x++) {
_iF1[_Bl++] = _aF1[_jF1++];
_iF1[_Bl++] = _aF1[_jF1++];
_iF1[_Bl++] = _aF1[_jF1++];
_iF1[_Bl++] = _aF1[_jF1++]
}
for (; x < _k2; x++) {
_iF1[_Bl++] = 0;
_iF1[_Bl++] = 0;
_iF1[_Bl++] = 0;
_iF1[_Bl++] = 0
}
}
for (; y < _l2; y++) {
var x;
for (x = 0; x < _k2; x++) {
_iF1[_Bl++] = 0;
_iF1[_Bl++] = 0;
_iF1[_Bl++] = 0;
_iF1[_Bl++] = 0
}
}
var _i9 = new _CC1(undefined, _k2, _l2, (_k2 == _7l) && (_l2 == _8l), _iF1);
_KE1.width = _k2;
_KE1.height = _l2;
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _PE1);
this._PD1();
_0C1._8D();
return _i9
}; /*@this {yyWebGL} */
this._kF1 = function (_KE1,
_lF1, _7l, _8l) {
var _k2 = _6F1(_7l);
var _l2 = _6F1(_8l);
var _PE1 = _ZB1.getParameter(_ZB1.TEXTURE_BINDING_2D);
var _i9 = new _CC1(undefined, _k2, _l2, (_k2 == _7l) && (_l2 == _8l), _lF1);
_KE1.width = _k2;
_KE1.height = _l2;
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _PE1);
_0C1._8D();
return _i9
}; /*@this {yyWebGL} */
this._mF1 = function (_KE1, _lF1, _7l, _8l) {
var _bF1 = new ArrayBuffer(_7l * _8l * 4);
var _nF1 = new DataView(_bF1);
for (var _3b = 0; _3b < _7l * _8l; _3b++) {
_nF1.setUint32(_3b * 4, ~~_lF1[_3b], true)
}
return this._kF1(_KE1, new Uint8Array(_bF1), _7l, _8l)
}; /*@this {yyWebGL} */
this._oF1 = function (_qi,
_Bd) {
_de._DE1(_qi instanceof _CC1, "Texture is not a yyGLTexture", _de._EE1);
if (!_pF1(_qi, _de._qF1)) {
_rF1(_qi);
_sF1(_qi)
}
var _ch = _qi._YE1;
var _k2 = _qi._QE1;
var _l2 = _qi._RE1;
var _gF1 = _ZB1.getParameter(_ZB1.FRAMEBUFFER_BINDING);
var _tF1 = _ZB1.createFramebuffer();
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _tF1);
_ZB1.framebufferTexture2D(_ZB1.FRAMEBUFFER, _ZB1.COLOR_ATTACHMENT0, _ZB1.TEXTURE_2D, _ch, 0);
var _aF1 = new Uint8Array(_k2 * _l2 * 4);
_ZB1.readPixels(0, 0, _k2, _l2, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _aF1);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER,
_gF1);
_ZB1.deleteFramebuffer(_tF1);
for (var _i2 = 0; _i2 < (_k2 * _l2); _i2++) {
_aF1[(_i2 * 4) + 3] = _Bd[_i2]
}
var _Y91 = _6F1(_k2);
var _ZB = _6F1(_l2);
var _PE1 = _ZB1.getParameter(_ZB1.TEXTURE_BINDING_2D);
var _i9 = new _CC1(undefined, _Y91, _ZB, (_Y91 == _k2) && (_ZB == _l2), _aF1);
_ZB1.deleteTexture(_qi._YE1);
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _PE1);
return _i9
}; /*@this {yyWebGL} */
this._uF1 = function (_ba, _ca) {
this._a_();
var _aF1 = new Uint8Array(16);
_ZB1.readPixels(_ba, _cC1 - _ca, 1, 1, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _aF1);
var _f9 = (_aF1[0]) + (_aF1[1] << 8) + (_aF1[2] << 16) + (_aF1[3] * 0x01000000);
_0C1._8D();
return _f9
}; /*@this {yyWebGL} */
this._vF1 = function (_fF1, _ba, _ca) {
this._PD1();
var _gF1 = _ZB1.getParameter(_ZB1.FRAMEBUFFER_BINDING);
var _aF1 = new Uint8Array(16);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _fF1);
_ZB1.readPixels(_ba, _ca, 1, 1, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _aF1);
var _f9 = (_aF1[0]) + (_aF1[1] << 8) + (_aF1[2] << 16) + (_aF1[3] * 0x01000000);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _gF1);
_0C1._8D();
return _f9
}; /*@this {yyWebGL} */
this._wF1 = function (_fF1, _ba, _ca, _7l, _8l) {
this._PD1();
var _gF1 = _ZB1.getParameter(_ZB1.FRAMEBUFFER_BINDING);
var _aF1 = new Uint8Array(_7l * _8l * 4);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _fF1);
_ZB1.readPixels(_ba, _ca, _7l, _8l, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, _aF1);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _gF1);
_0C1._8D();
return _aF1
}; /*@this {yyWebGL} */
this._xF1 = function (_7l, _8l) {
var _PE1 = _ZB1.getParameter(_ZB1.TEXTURE_BINDING_2D);
var _gF1 = _ZB1.getParameter(_ZB1.FRAMEBUFFER_BINDING);
var _yF1 = _ZB1.getParameter(_ZB1.RENDERBUFFER_BINDING); {
var _zF1 = _ZB1.createFramebuffer();
_zF1.width = _7l;
_zF1.height = _8l;
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER,
_zF1);
var _AF1 = _ZB1.createTexture();
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _AF1);
_ZB1.texImage2D(_ZB1.TEXTURE_2D, 0, _ZB1.RGBA, _7l, _8l, 0, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, null);
var _BF1 = new _CC1(_AF1, _7l, _8l, _XC1(_7l) && _XC1(_8l), null);
var _CF1 = _ZB1.createRenderbuffer();
_ZB1.bindRenderbuffer(_ZB1.RENDERBUFFER, _CF1);
_ZB1.framebufferTexture2D(_ZB1.FRAMEBUFFER, _ZB1.COLOR_ATTACHMENT0, _ZB1.TEXTURE_2D, _AF1, 0);
if (_qZ) {
_ZB1.renderbufferStorage(_ZB1.RENDERBUFFER, _ZB1.DEPTH_STENCIL, _zF1.width, _zF1.height);
_ZB1.framebufferRenderbuffer(_ZB1.FRAMEBUFFER,
_ZB1.DEPTH_STENCIL_ATTACHMENT, _ZB1.RENDERBUFFER, _CF1)
}
}
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _PE1);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _gF1);
_ZB1.bindRenderbuffer(_ZB1.RENDERBUFFER, _yF1);
var _DF1 = {
_OZ: _zF1,
_EF1: _CF1,
_YE1: _BF1
};
return _DF1
}; /*@this {yyWebGL} */
this._FF1 = function (_fF1) {
_ZB1.deleteFramebuffer(_fF1._OZ);
_ZB1.deleteRenderbuffer(_fF1._EF1);
_ZB1.deleteTexture(_fF1._YE1._YE1);
_fF1._YE1 = null
}; /*@this {yyWebGL} */
this._GF1 = function (_HF1) {
_ZB1.deleteTexture(_HF1)
}; /*@this {yyWebGL} */
this._IF1 = function (_qi) {
_de._DE1(_qi instanceof _CC1, "NULL texture is not a yyGLTexture", _de._EE1);
_0C1._JF1 = _qi;
}; /*@this {yyWebGL} */
this._Le = function (_Og, _qi, _Sh, _KF1) {
_de._DE1((_qi == null) || (_qi instanceof _CC1), "Texture is not a yyGLTexture", _de._EE1);
return __B1._Le(_Og, _qi, _Sh, _KF1, _8C1[_Sh], _2C1)
}; /*@this {yyWebGL} */
this._ri = function (_Og, _qi, _LF1, _MF1) {
_de._DE1((_qi == null) || (_qi instanceof _CC1), "Texture is not a yyGLTexture", _de._EE1);
__B1._NF1(_Og, _qi, _LF1, _MF1)
}; /*@this {yyWebGL} */
this._OF1 = function (_SY) {
var _A9 = _SY._A9._Ee;
if (!_pF1(_A9, _de._qF1)) {
_rF1(_A9);
_sF1(_A9)
}
var _ch = _A9._YE1;
var _k2 = _A9._QE1;
var _l2 = _A9._RE1;
var _gF1 = _ZB1.getParameter(_ZB1.FRAMEBUFFER_BINDING);
var _tF1 = _ZB1.createFramebuffer();
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _tF1);
_ZB1.framebufferTexture2D(_ZB1.FRAMEBUFFER, _ZB1.COLOR_ATTACHMENT0, _ZB1.TEXTURE_2D, _ch, 0);
var data = new Uint8Array(_k2 * _l2 * 4);
_ZB1.readPixels(0, 0, _k2, _l2, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, data);
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _gF1);
_ZB1.deleteFramebuffer(_tF1);
return data
}
}
var _de = {
_PF1: 8,
_rC1: 8,
_QF1: -1,
_Me: 0,
_Tg: 1,
_Sg: 2,
_Qg: 3,
_Rg: 4,
_Pg: 5,
_Xh: 1,
_1i: 2,
_bi: 3,
_9i: 4,
_RF1: 5,
_SF1: 6,
_TF1: 7,
_UF1: 8,
_VF1: 9,
_WF1: 10,
_XF1: 11,
_YF1: 12,
_ZF1: 13,
__F1: 14,
_0G1: 14,
_di: 1,
_Yh: 2,
__h: 3,
_hi: 4,
_2i: 5,
_ji: 6,
_1G1: 6,
_ow: 1,
_he: 2,
_2G1: 3,
_je: 4,
_ee: 5,
_ge: 6,
_3G1: 7,
_4G1: 8,
_ie: 9,
_5G1: 10,
_6G1: 11,
_7G1: 12,
_8G1: 13,
_9G1: 14,
_aG1: 15,
_bG1: 16,
_cG1: 16,
_dG1: 0,
_aw: 1,
_eG1: 2,
_fG1: 3,
_dw: 4,
_Fw: 5,
_re: 6,
_se: 7,
_mw: 8,
_cw: 9,
_Hw: 10,
_jx: 11,
_9w: 12,
_hw: 13,
_gG1: 14,
_iw: 15,
_hG1: 16,
_jw: 17,
_kw: 18,
_iG1: 19,
_jG1: 20,
_kG1: 21,
_lG1: 22,
_mG1: 23,
_Ew: 24,
_fE1: 25,
_nG1: 26,
_oG1: 27,
_kE1: 28,
_hE1: 29,
_nE1: 30,
_pG1: 31,
_qG1: 32,
_ve: 33,
_te: 34,
_ue: 35,
_rG1: 36,
_sG1: 37,
_tG1: 1,
_uG1: 2,
_vG1: 3,
_wG1: 4,
_xG1: 5,
_yG1: 6,
_zG1: 7,
_AG1: 8,
_BG1: 1,
_CG1: 2,
_DG1: 3,
_EG1: 4,
_FG1: 5,
_GG1: 6,
_HG1: 7,
_IG1: 8,
_Tw: 0,
_Vw: 1,
_Mw: 0,
_Ow: 1,
_Sw: 2,
_Uw: 3,
_Xw: 4,
_2x: 5,
_4x: 6,
_0x: 7,
_6x: 8,
_7x: 9,
_JG1: 10,
_Pw: 0,
_Nw: 1,
_KG1: 2,
_LG1: 3,
_UD1: 0,
_MG1: 1,
_TD1: 2,
_NG1: 0,
_OG1: 1,
_PG1: 2,
_QG1: 0,
_RG1: 1,
_SG1: 0,
_TG1: 1,
_UG1: 0,
_VG1: 1,
_WG1: 2,
_XG1: 3,
_YG1: 0,
_ZG1: 1,
__G1: 2,
_0H1: 4,
_1H1: 8,
_qF1: -1,
_2H1: 0,
_SE1: 1,
_TE1: 2,
_3H1: 0,
_4H1: 1,
_EE1: 2,
_5H1: 1,
_DE1: function (_6H1, _7H1, _8H1) {
if (!_6H1) {
throw new Error(_7H1)
}
}
};
Object.freeze(_de); /*@constructor */
function _sC1(_9H1) {
var _ZB1 = this._BC1;
var _aH1 = 0,
_bH1 = 1,
_cH1 = 2,
_dH1 = 3,
_eH1 = 4,
_fH1 = 5,
_gH1 = 6,
_hH1 = 7,
_iH1 = 8,
_jH1 = 9,
_kH1 = 10,
_lH1 = 11,
_mH1 = 12,
_nH1 = 13,
_oH1 = 14,
_pH1 = 15,
_qH1 = 16,
_rH1 = 17,
_sH1 = 18,
_tH1 = 19,
_uH1 = 20,
_vH1 = 21,
_wH1 = 22,
_xH1 = 23,
_yH1 = 24,
_zH1 = 25,
_AH1 = 26,
_BH1 = 27;
var _CH1 = 0,
_DH1 = 1,
_EH1 = 2,
_FH1 = 3,
_GH1 = 4,
_HH1 = 5;
var _IH1 = 1,
_JH1 = 2,
_KH1 = 4,
_LH1 = 8;
var _MH1 = [];
var _NH1 = [],
_OH1, _PH1;
var _QH1, _RH1 = [],
_SH1 = [],
_TH1 = [],
_UH1 = new Float32Array(_de._PF1 * 4),
_VH1 = new Float32Array(_de._PF1 * 4),
_WH1 = new Float32Array(_de._PF1 * 4),
_XH1 = new Float32Array(4),
_YH1 = new Float32Array(8),
_ZH1 = false,
__H1 = 0.0,
_0I1, _1I1 = _ZB1.SRC_ALPHA,
_2I1 = _ZB1.ONE_MINUS_SRC_ALPHA,
_3I1 = _ZB1.SRC_ALPHA,
_4I1 = _ZB1.ONE_MINUS_SRC_ALPHA;
var _2C1 = 0,
_5I1;
Object.defineProperties(this, {
_m8: {
get: function () {
return _2C1
},
set: function (_Ji) {
_2C1 = _Ji
}
},
_JF1: {
get: function () {
return _5I1
},
set: function (_Ji) {
_5I1 = _Ji
}
}
});
(function () {
_6I1();
var _qC1 = _ZB1.getParameter(_ZB1.MAX_TEXTURE_IMAGE_UNITS);
if (_qC1 > _de._rC1) {
_qC1 = _de._rC1
}
for (var _Zw = 0; _Zw < _qC1; _Zw++) {
_TH1[_Zw] = new _EC1(_9H1)
}
var _7I1 = _8I1(_de._tG1);
_0I1 = {
_9I1: 0,
_aI1: 0xffffffff,
_bI1: 0xffffffff,
_cI1: _dI1(_de._IG1),
_eI1: _7I1,
_fI1: _7I1,
_gI1: _7I1
};
for (var _i2 = 0; _i2 < _HH1; _i2++) {
_SH1[_i2] = new _Zt()
}
})();
function _6I1() {
_NH1 = [];
_PH1 = undefined;
_OH1 = undefined;
_NH1[0] = 1;
_NH1[1] = 1
}; /*@this {yyCommandBuilder} */
this._8D = function () {
_6I1()
}; /*@this {yyCommandBuilder} */
this._fu = function (_hI1) {
if (_hI1 != _OH1) {
_PH1 = null;
_MH1.push(_rH1);
_MH1.push(_hI1);
_OH1 = _hI1
}
}; /*@this {yyCommandBuilder} */
this._CE1 = function (_aE1,
_qi) {
if (_NH1[_aE1] == _qi) {
return
}
_NH1[_aE1] = _qi;
_MH1.push(_bH1);
_MH1.push(_qi);
_MH1.push(_aE1)
}; /*@this {yyCommandBuilder} */
this._AE1 = function (_my) {
_MH1.push(_my)
};
this._BE1 = function (_qi, _ba, _ca, _7l, _8l, _iI1) {
_MH1.push(_BH1);
_MH1.push(_qi);
_MH1.push(_ba);
_MH1.push(_ca);
_MH1.push(_7l);
_MH1.push(_8l);
_MH1.push(_iI1)
}; /*@this {yyCommandBuilder} */
this._jI1 = function (_kI1) {
if (_PH1 == _kI1) return;
_PH1 = _kI1;
_MH1.push(_mH1);
_MH1.push(_kI1)
}; /*@this {yyCommandBuilder} */
this._lI1 = function (_ew, _mI1) {
_MH1.push(_cH1);
_MH1.push(_ew);
_MH1.push(_mI1)
}; /*@this {yyCommandBuilder} */
this._nI1 = function (_ew, _mI1) {
_MH1.push(_dH1);
_MH1.push(_ew);
_MH1.push(_mI1)
}; /*@this {yyCommandBuilder} */
this._oI1 = function (_ew, _mI1) {
_MH1.push(_eH1);
_MH1.push(_ew);
_MH1.push(_mI1)
}; /*@this {yyCommandBuilder} */
this._pI1 = function (_ew, _mI1) {
_MH1.push(_fH1);
_MH1.push(_ew);
_MH1.push(_mI1)
}; /*@this {yyCommandBuilder} */
this._qI1 = function (_ew, _mI1) {
_MH1.push(_gH1);
_MH1.push(_ew);
_MH1.push(_mI1)
}; /*@this {yyCommandBuilder} */
this._al1 = function (_ew,
_mI1) {
_MH1.push(_hH1);
_MH1.push(_ew);
_MH1.push(_mI1)
}; /*@this {yyCommandBuilder} */
this._GE1 = function (_Kp) {
_MH1.push(_jH1);
_MH1.push(new _Zt(_Kp))
}; /*@this {yyCommandBuilder} */
this._FE1 = function (_Kp) {
_MH1.push(_kH1);
_MH1.push(new _Zt(_Kp))
}; /*@this {yyCommandBuilder} */
this._IE1 = function (_Kp) {
_MH1.push(_iH1);
_MH1.push(new _Zt(_Kp))
}; /*@this {yyCommandBuilder} */
this._ZC1 = function (_ba, _ca, _7l, _8l) {
_MH1.push(_lH1);
_MH1.push(_ba);
_MH1.push(_ca);
_MH1.push(_7l);
_MH1.push(_8l)
}; /*@this {yyCommandBuilder} */
this._1F1 = function (_rI1,
_ih) {
_MH1.push(_nH1);
_MH1.push(_rI1);
_MH1.push(Math.floor(_ih))
}; /*@this {yyCommandBuilder} */
this._3_ = function (_sI1) {
_MH1.push(_oH1);
_MH1.push(_sI1)
}; /*@this {yyCommandBuilder} */
this._tI1 = function (_Bd, _ww, _xw, _yw) {
_MH1.push(_pH1);
_MH1.push(_Bd);
_MH1.push(_ww);
_MH1.push(_xw);
_MH1.push(_yw)
}; /*@this {yyCommandBuilder} */
this._QD1 = function (_bl, _pw) {
_MH1.push(_qH1);
_MH1.push(_bl);
_MH1.push(_pw)
}; /*@this {yyCommandBuilder} */
this._sE1 = function (_uI1, _tE1) {
_MH1.push(_sH1);
_MH1.push(_uI1);
_MH1.push(_tE1)
}; /*@this {yyCommandBuilder} */
this._uE1 = function (_uI1, _tE1) {
_MH1.push(_tH1);
_MH1.push(_uI1);
_MH1.push(_tE1);
}; /*@this {yyCommandBuilder} */
this._yE1 = function (_uI1, _tE1) {
_MH1.push(_sH1);
_MH1.push(_uI1);
_MH1.push(_tE1)
}; /*@this {yyCommandBuilder} */
this._zE1 = function (_uI1, _tE1) {
_MH1.push(_tH1);
_MH1.push(_uI1);
_MH1.push(_tE1)
}; /*@this {yyCommandBuilder} */
this._vE1 = function (_uI1, _tE1) {
_MH1.push(_tH1);
_MH1.push(_uI1);
_MH1.push(_tE1)
}; /*@this {yyCommandBuilder} */
this._Je = function (_vI1, _wI1) {
_MH1.push(_uH1);
_MH1.push(_vI1);
_MH1.push(_wI1)
}; /*@this {yyCommandBuilder} */
this._Lw = function (_aE1, _xI1, _yI1) {
_MH1.push(_vH1);
_MH1.push(_aE1);
_MH1.push(_xI1);
_MH1.push(_yI1)
}; /*@this {yyCommandBuilder} */
this._Wu = function (_ko, _zI1, _AI1, _BI1) {
_MH1.push(_wH1);
_MH1.push(_ko);
_MH1.push(new Float32Array(_zI1));
_MH1.push(new Float32Array(_AI1));
_MH1.push(new Float32Array(_BI1))
}; /*@this {yyCommandBuilder} */
this._4E1 = function (_e3) {
_MH1.push(_xH1);
_MH1.push(new Float32Array(_e3))
}; /*@this {yyCommandBuilder} */
this._CI1 = function (_DI1) {
_MH1.push(_yH1);
_MH1.push(new Float32Array(_DI1))
}; /*@this {yyCommandBuilder} */
this.__u = function (_ko, enable, _e3) {
_MH1.push(_zH1);
_MH1.push(_ko);
_MH1.push(enable);
_MH1.push(_e3)
}; /*@this {yyCommandBuilder} */
this._7E1 = function (_cu, _EI1) {
_MH1.push(_AH1);
_MH1.push(_cu);
_MH1.push(_EI1)
};
function _FI1(_Gw) {
switch (_Gw) {
case _de._ow:
return _ZB1.ZERO;
case _de._he:
return _ZB1.ONE;
case _de._2G1:
return _ZB1.SRC_COLOR;
case _de._je:
return _ZB1.ONE_MINUS_SRC_COLOR;
case _de._ee:
return _ZB1.SRC_ALPHA;
case _de._ge:
return _ZB1.ONE_MINUS_SRC_ALPHA;
case _de._3G1:
return _ZB1.DST_ALPHA;
case _de._4G1:
return _ZB1.ONE_MINUS_DST_ALPHA;
case _de._ie:
return _ZB1.DST_COLOR;
case _de._5G1:
return _ZB1.ONE_MINUS_DST_COLOR;
case _de._6G1:
return _ZB1.SRC_ALPHA_SATURATE;
case _de._7G1:
return 0;
case _de._8G1:
return 0;
case _de._9G1:
return 0;
case _de._aG1:
return 0;
case _de._bG1:
return 0;
case _de._cG1:
return 0
}
return 0
}
function _8I1(_Gw) {
switch (_Gw) {
case _de._tG1:
return _ZB1.KEEP;
case _de._uG1:
return _ZB1.ZERO;
case _de._vG1:
return _ZB1.REPLACE;
case _de._wG1:
return _ZB1.INCR;
case _de._xG1:
return _ZB1.DECR;
case _de._yG1:
return _ZB1.INVERT;
case _de._zG1:
return _ZB1.INCR;
case _de._AG1:
return _ZB1.DECR;
default:
return _ZB1.KEEP
}
}
function _dI1(_Gw) {
switch (_Gw) {
case _de._BG1:
return _ZB1.NEVER;
case _de._CG1:
return _ZB1.LESS;
case _de._DG1:
return _ZB1.EQUAL;
case _de._EG1:
return _ZB1.LEQUAL;
case _de._FG1:
return _ZB1.GREATER;
case _de._GG1:
return _ZB1.NOTEQUAL;
case _de._HG1:
return _ZB1.GEQUAL;
case _de._IG1:
default:
return _ZB1.ALWAYS
}
}
function _GI1(_vI1, _wI1) {
switch (_vI1) {
case _de._aw:
if (_wI1) {
_ZB1.enable(_ZB1.DEPTH_TEST)
} else {
_ZB1.disable(_ZB1.DEPTH_TEST)
}
break;
case _de._dw:
_ZB1.depthMask(_wI1);
break;
case _de._Fw:
_ZH1 = _wI1;
_HI1(_LH1);
break;
case _de._re:
_1I1 = _FI1(_wI1);
_ZB1.blendFuncSeparate(_1I1, _2I1, _3I1, _4I1);
break;
case _de._se:
_2I1 = _FI1(_wI1);
_ZB1.blendFuncSeparate(_1I1, _2I1, _3I1, _4I1);
break;
case _de._mw:
if (_wI1 != _de._UD1) {
_ZB1.enable(_ZB1.CULL_FACE);
_ZB1.frontFace((_wI1 === _de._MG1) ? _ZB1.CW : _ZB1.CCW)
} else {
_ZB1.disable(_ZB1.CULL_FACE)
}
break;
case _de._cw:
_ZB1.depthFunc(_dI1(_wI1));
break;
case _de._Hw:
__H1 = _wI1 / 255.0;
_HI1(_LH1);
break;
case _de._jx:
break;
case _de._9w:
if (_wI1) {
_ZB1.enable(_ZB1.BLEND)
} else {
_ZB1.disable(_ZB1.BLEND)
}
break;
case _de._hw:
break;
case _de._gG1:
break;
case _de._iw:
break;
case _de._hG1:
break;
case _de._jw:
break;
case _de._kw:
break;
case _de._iG1:
break;
case _de._jG1:
break;
case _de._kG1:
break;
case _de._lG1:
break;
case _de._mG1:
break;
case _de._Ew:
_ZB1.colorMask(_wI1._eo, _wI1._fo, _wI1._go, _wI1.alpha);
break;
case _de._fE1:
if (_wI1) {
_ZB1.enable(_ZB1.STENCIL_TEST)
} else {
_ZB1.disable(_ZB1.STENCIL_TEST)
}
break;
case _de._nG1:
_0I1._eI1 = _8I1(_wI1);
_ZB1.stencilOp(_0I1._eI1, _0I1._fI1,
_0I1._gI1);
break;
case _de._oG1:
_0I1._fI1 = _8I1(_wI1);
_ZB1.stencilOp(_0I1._eI1, _0I1._fI1, _0I1._gI1);
break;
case _de._kE1:
_0I1._gI1 = _8I1(_wI1);
_ZB1.stencilOp(_0I1._eI1, _0I1._fI1, _0I1._gI1);
break;
case _de._hE1:
_0I1._cI1 = _dI1(_wI1);
_ZB1.stencilFunc(_0I1._cI1, _0I1._9I1, _0I1._aI1);
break;
case _de._nE1:
_0I1._9I1 = _wI1;
_ZB1.stencilFunc(_0I1._cI1, _0I1._9I1, _0I1._aI1);
break;
case _de._pG1:
_0I1._aI1 = _wI1;
_ZB1.stencilFunc(_0I1._cI1, _0I1._9I1, _0I1._aI1);
break;
case _de._qG1:
_ZB1.stencilMask(_wI1);
break;
case _de._ve:
break;
case _de._te:
_3I1 = _FI1(_wI1);
_ZB1.blendFuncSeparate(_1I1, _2I1, _3I1, _4I1);
break;
case _de._ue:
_4I1 = _FI1(_wI1);
_ZB1.blendFuncSeparate(_1I1, _2I1, _3I1, _4I1);
break;
case _de._rG1:
if (_wI1 != _de._UD1) {
_ZB1.enable(_ZB1.CULL_FACE);
_ZB1.frontFace((_wI1 === _de._MG1) ? _ZB1.CW : _ZB1.CCW)
} else {
_ZB1.disable(_ZB1.CULL_FACE)
}
break
}
}
function _II1() {
if (_QH1 && _QH1._bD1) {
_SH1[_FH1].Multiply(_SH1[_EH1], _SH1[_CH1]);
_SH1[_GH1].Multiply(_SH1[_FH1], _SH1[_DH1]);
var _JI1 = new Float32Array(16 * _HH1);
for (var _i2 = 0; _i2 < _HH1; _i2++) {
_JI1.set(_SH1[_i2]._5b,
_i2 * 16)
}
_ZB1.uniformMatrix4fv(_QH1._bD1, _ZB1._KI1, _JI1)
}
}
function _HI1(_LI1) {
if (_LI1 & _LH1) {
if (_QH1._dD1 !== undefined) {
_ZB1.uniform1i(_QH1._dD1, _ZH1)
}
if (_QH1._eD1 !== undefined) {
_ZB1.uniform1f(_QH1._eD1, __H1)
}
}
if ((_LI1 & _IH1) && (_QH1._cD1 !== undefined)) {
_ZB1.uniform4fv(_QH1._cD1, _YH1)
}
if (_LI1 & _JH1) {
if (_QH1._lD1 !== undefined) {
_ZB1.uniform4fv(_QH1._lD1, _UH1)
}
if (_QH1._kD1 !== undefined) {
_ZB1.uniform4fv(_QH1._kD1, _VH1)
}
if (_QH1._mD1 !== undefined) {
_ZB1.uniform4fv(_QH1._mD1, _WH1)
}
}
if ((_LI1 & _KH1) && (_QH1._nD1 !== undefined)) {
_ZB1.uniform4fv(_QH1._nD1, _XH1)
}
}
var _MI1 = [_ZB1.NEAREST_MIPMAP_NEAREST, _ZB1.LINEAR_MIPMAP_NEAREST, _ZB1.LINEAR_MIPMAP_NEAREST, _ZB1.NEAREST_MIPMAP_LINEAR, _ZB1.LINEAR_MIPMAP_LINEAR, _ZB1.LINEAR_MIPMAP_LINEAR, _ZB1.NEAREST_MIPMAP_LINEAR, _ZB1.LINEAR_MIPMAP_LINEAR, _ZB1.LINEAR_MIPMAP_LINEAR, ];
function _NI1(_pN, _OI1) {
return _MI1[(_OI1 * _de._LG1) + _pN]
}
function _PI1(_qi, _aE1) {
if (_qi === null || _qi === undefined) {
return
}
var _QI1 = false;
if (_qi._Rk !== undefined) {
_QI1 = (_qi._Rk & _UE1._XE1) !== 0
}
var _RI1 = _TH1[_aE1];
if (_RI1 === null || _RI1 === undefined) {
return
}
var _SI1 = _RI1._TI1;
var _UI1 = _qi._ZE1._TI1;
if (_qi._0F1 === true || _SI1[_de._Mw] != _UI1[_de._Mw]) {
_ZB1.texParameteri(_ZB1.TEXTURE_2D, _ZB1.TEXTURE_MAG_FILTER, (_SI1[_de._Mw] == _de._Nw) ? _ZB1.LINEAR : _ZB1.NEAREST);
_UI1[_de._Mw] = _SI1[_de._Mw]
}
if (!_QI1) {
if (_qi._0F1 === true || _SI1[_de._Ow] != _UI1[_de._Ow]) {
_ZB1.texParameteri(_ZB1.TEXTURE_2D, _ZB1.TEXTURE_MIN_FILTER, (_SI1[_de._Ow] == _de._Nw) ? _ZB1.LINEAR : _ZB1.NEAREST);
_UI1[_de._Ow] = _SI1[_de._Ow]
}
} else {
if (_qi._0F1 === true || _SI1[_de._Xw] != _UI1[_de._Xw] || _SI1[_de._Ow] != _UI1[_de._Ow]) {
var _VI1 = _NI1(_SI1[_de._Ow], _SI1[_de._Xw]);
_ZB1.texParameteri(_ZB1.TEXTURE_2D, _ZB1.TEXTURE_MIN_FILTER, _VI1);
_UI1[_de._Xw] = _SI1[_de._Xw];
_UI1[_de._Ow] = _SI1[_de._Ow]
}
if (_AC1) {
if (_SI1[_de._Xw] == _de._KG1) {
if (_UI1[_de._6x] != _SI1[_de._6x]) {
_UI1[_de._6x] = _SI1[_de._6x];
var _WI1 = _ZB1.getParameter(_AC1.MAX_TEXTURE_MAX_ANISOTROPY_EXT);
var _XI1 = _UI1[_de._6x];
_XI1 = Math.min(_XI1, _WI1);
_ZB1.texParameterf(_ZB1.TEXTURE_2D, _AC1.TEXTURE_MAX_ANISOTROPY_EXT, _XI1)
}
} else {
if (_UI1[_de._6x] != 1.0) {
_UI1[_de._6x] = 1.0;
_ZB1.texParameterf(_ZB1.TEXTURE_2D,
_AC1.TEXTURE_MAX_ANISOTROPY_EXT, 1.0)
}
}
}
}
if (_SI1[_de._Sw] != _UI1[_de._Sw]) {
if (_qi._YI1) {
var _ZI1 = (_SI1[_de._Sw] == _de._Vw) ? _ZB1.CLAMP_TO_EDGE : _ZB1.REPEAT;
_ZB1.texParameteri(_ZB1.TEXTURE_2D, _ZB1.TEXTURE_WRAP_S, _ZI1)
}
_UI1[_de._Sw] = _SI1[_de._Sw]
}
if (_SI1[_de._Uw] != _UI1[_de._Uw]) {
if (_qi._YI1) {
var _ZI1 = (_SI1[_de._Uw] == _de._Vw) ? _ZB1.CLAMP_TO_EDGE : _ZB1.REPEAT;
_ZB1.texParameteri(_ZB1.TEXTURE_2D, _ZB1.TEXTURE_WRAP_T, _ZI1)
}
_UI1[_de._Uw] = _SI1[_de._Uw]
}
_qi._0F1 = false
}
var __I1 = null;
function _jI1(_0J1) {
_ZB1.bindBuffer(_ZB1.ARRAY_BUFFER,
_0J1._1J1);
if (__I1 != null) {
if (__I1._TC1 === true) {
var _2J1, _3J1, _4J1 = __I1._Gh.length;;
for (_2J1 = 0; _2J1 < _4J1; ++_2J1) {
switch (_2J1) {
case 0:
_3J1 = _QH1._6D1;
break;
case 1:
_3J1 = _QH1._8D1;
break;
case 2:
_3J1 = _QH1._9D1;
break;
case 3:
_3J1 = _QH1._7D1;
break;
default:
_3J1 = -1;
break
}
if (_3J1 >= 0) {
_ZB1.disableVertexAttribArray(_3J1)
}
}
} else {
var _2J1, _3J1, _4J1 = __I1._Gh.length;;
for (_2J1 = 0; _2J1 < _4J1; ++_2J1) {
_3J1 = _QH1._fD1[_2J1];
if (_3J1 >= 0) {
_ZB1.disableVertexAttribArray(_3J1)
}
}
}
}
var _5J1 = _0J1._6J1;
__I1 = _5J1;
if (_5J1._TC1 === true) {
var _2J1,
_3J1, _7J1, _4J1 = _5J1._Gh.length;
for (_2J1 = 0; _2J1 < _4J1; ++_2J1) {
_7J1 = _5J1._Gh[_2J1];
switch (_2J1) {
case 0:
_3J1 = _QH1._6D1;
break;
case 1:
_3J1 = _QH1._8D1;
break;
case 2:
_3J1 = _QH1._9D1;
break;
case 3:
_3J1 = _QH1._7D1;
break;
default:
_3J1 = -1;
break
}
if (_3J1 >= 0) {
_ZB1.enableVertexAttribArray(_3J1);
_ZB1.vertexAttribPointer(_3J1, _7J1._8J1, _7J1._9J1, _7J1._aJ1, _5J1._Mh, _7J1.offset)
}
}
} else {
{
var _2J1, _3J1, _7J1, _4J1 = _5J1._Gh.length;
var _bJ1 = _QH1._fD1.length;
var _cJ1 = _5J1._cJ1[_QH1._iD1];
if (_cJ1 === undefined) {
_cJ1 = [];
var _dJ1 = [];
for (_2J1 = 0; _2J1 < _4J1; ++_2J1) {
_7J1 = _5J1._Gh[_2J1];
var _Ih = _7J1._Ih;
_3J1 = -1;
for (var _eJ1 = 0; _eJ1 < _bJ1; _eJ1++) {
if (_dJ1[_eJ1] === undefined) {
var _fJ1 = _QH1._fD1[_eJ1];
if (_QH1._hD1[_eJ1] == _Ih) {
_3J1 = _fJ1;
_dJ1[_eJ1] = 1;
break
} else if (_QH1._hD1[_eJ1] == 4 && _Ih == 2) {
_QH1._hD1[_eJ1] = _ZB1.UNSIGNED_BYTE;
_3J1 = _fJ1;
_dJ1[_eJ1] = 1;
break
}
}
}
_cJ1.push(_3J1)
}
_5J1._cJ1[_QH1._iD1] = _cJ1
}
for (_2J1 = 0; _2J1 < _4J1; ++_2J1) {
_7J1 = _5J1._Gh[_2J1];
_3J1 = _cJ1[_2J1];
if (_3J1 >= 0) {
_ZB1.enableVertexAttribArray(_3J1);
_ZB1.vertexAttribPointer(_3J1, _7J1._8J1, _7J1._9J1,
_7J1._aJ1, _5J1._Mh, _7J1.offset)
}
}
}
}
} /*@this {yyCommandBuilder} */
this._OD1 = function () {
var _i2, error, _tV, _xD1, _gJ1, _Zw, _A9, _Ke, _ko, _f9, enable, _hJ1, _rE1;
_i2 = 0;
while (_i2 < _MH1.length) {
switch (_MH1[_i2]) {
case _rH1: {
_QH1 = _MH1[_i2 + 1];
_hJ1 = _QH1._zD1;
_i2 += 2;
_ZB1.useProgram(_QH1);
_II1();
_HI1(0xff);
break
}
case _lH1: {
_ZB1.viewport(_MH1[_i2 + 1], _MH1[_i2 + 2], _MH1[_i2 + 3], _MH1[_i2 + 4]);
_ZB1.scissor(_MH1[_i2 + 1], _MH1[_i2 + 2], _MH1[_i2 + 3], _MH1[_i2 + 4]);
_i2 += 5;
break
}
case _nH1: {
_f9 = _MH1[_i2 + 2];
_ZB1.clearColor((_f9 & 0xff) / 255.0, ((_f9 >> 8) & 0xff) / 255.0,
((_f9 >> 16) & 0xff) / 255.0, ((_f9 >> 24) & 0xff) / 255.0);
_ZB1.clear(_MH1[_i2 + 1]);
_i2 += 3;
break
}
case _jH1: {
_SH1[_DH1] = _MH1[_i2 + 1];
_II1();
_i2 += 2;
break
}
case _kH1: {
_SH1[_CH1] = _MH1[_i2 + 1];
_II1();
_i2 += 2;
break
}
case _iH1: {
_SH1[_EH1] = _MH1[_i2 + 1];
_II1();
_i2 += 2;
break
}
case _bH1: {
_A9 = _MH1[_i2 + 1];
_Zw = _MH1[_i2 + 2];
_i2 += 3;
if (_A9 === null) {
_A9 = _5I1;
_ZB1.activeTexture(_ZB1.TEXTURE0 + _Zw);
if (!_pF1(_A9, _Tt())) {
_rF1(_A9, _Tt());
_sF1(_A9, _Tt())
}
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _A9._YE1);
_ZB1.uniform1i(_QH1._aD1, 0);
_RH1[_Zw] = null
} else {
_ZB1.activeTexture(_ZB1.TEXTURE0 + _Zw);
if (!_pF1(_A9, _Tt())) {
_rF1(_A9, _Tt());
_sF1(_A9, _Tt())
}
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _A9._YE1);
_ZB1.uniform1i(_QH1._aD1, 0);
_PI1(_A9, _Zw);
_RH1[_Zw] = _A9
}
break;
}
case _mH1: {
_Ke = _MH1[_i2 + 1];
_i2 += 2;
if (_Ke._iJ1) {
_Ke._jJ1()
}
_Ke._kJ1 = this._m8;
_jI1(_Ke)
}
break;
case _cH1: {
_ZB1.drawArrays(_ZB1.TRIANGLES, _MH1[_i2 + 1], _MH1[_i2 + 2]);
_i2 += 3;
break
}
case _dH1: {
_ZB1.drawArrays(_ZB1.TRIANGLE_FAN, _MH1[_i2 + 1], _MH1[_i2 + 2]);
_i2 += 3;
break
}
case _eH1: {
_ZB1.drawArrays(_ZB1.TRIANGLE_STRIP, _MH1[_i2 + 1], _MH1[_i2 + 2]);
_i2 += 3;
break
}
case _fH1: {
_ZB1.drawArrays(_ZB1.LINES, _MH1[_i2 + 1], _MH1[_i2 + 2]);
_i2 += 3;
break
}
case _gH1: {
_ZB1.drawArrays(_ZB1.LINE_STRIP, _MH1[_i2 + 1], _MH1[_i2 + 2]);
_i2 += 3;
break
}
case _hH1: {
_ZB1.drawArrays(_ZB1.POINTS, _MH1[_i2 + 1], _MH1[_i2 + 2]);
_i2 += 3;
break
}
case _oH1: {
_ZB1.bindFramebuffer(_ZB1.FRAMEBUFFER, _MH1[_i2 + 1]);
_i2 += 2;
break
}
case _pH1: {
_ZB1.colorMask(_MH1[_i2 + 2], _MH1[_i2 + 3], _MH1[_i2 + 4], _MH1[_i2 + 1]);
_i2 += 5;
break
}
case _qH1: {
_ZB1.blendFunc(_FI1(_MH1[_i2 + 1]), _FI1(_MH1[_i2 + 2]));
_i2 += 3;
break
}
case _uH1: {
_GI1(_MH1[_i2 + 1], _MH1[_i2 + 2]);
_i2 += 3;
break
}
case _sH1: {
_tV = _MH1[_i2 + 1];
_xD1 = _MH1[_i2 + 2];
_i2 += 3;
_rE1 = _hJ1[_hJ1._AD1[_tV]];
switch (_rE1._KD1["type"]) {
case _ZB1.INT:
_ZB1.uniform1iv(_rE1.location, _xD1);
break;
case _ZB1.INT_VEC2:
_ZB1.uniform2iv(_rE1.location, _xD1);
break;
case _ZB1.INT_VEC3:
_ZB1.uniform3iv(_rE1.location, _xD1);
break;
case _ZB1.INT_VEC4:
_ZB1.uniform4iv(_rE1.location, _xD1);
break
}
break
}
case _tH1: {
_tV = _MH1[_i2 + 1];
_xD1 = _MH1[_i2 + 2];
_i2 += 3;
_rE1 = _hJ1[_hJ1._AD1[_tV]];
switch (_rE1._KD1["type"]) {
case _ZB1.FLOAT:
_ZB1.uniform1fv(_rE1.location, _xD1);
break;
case _ZB1.FLOAT_VEC2:
_ZB1.uniform2fv(_rE1.location, _xD1);
break;
case _ZB1.FLOAT_VEC3:
_ZB1.uniform3fv(_rE1.location, _xD1);
break;
case _ZB1.FLOAT_VEC4:
_ZB1.uniform4fv(_rE1.location, _xD1);
break;
case _ZB1.FLOAT_MAT2:
_ZB1.uniformMatrix2fv(_rE1.location, false, _xD1);
break;
case _ZB1.FLOAT_MAT3:
_ZB1.uniformMatrix3fv(_rE1.location, false, _xD1);
break;
case _ZB1.FLOAT_MAT4:
_ZB1.uniformMatrix4fv(_rE1.location, false, _xD1);
break
}
break
}
case _vH1: {
_Zw = _MH1[_i2 + 1];
var state = _MH1[_i2 + 2];
var __q = _MH1[_i2 + 3];
_i2 += 4;
var _RI1 = _TH1[_Zw];
_RI1._TI1[state] = __q;
if (_RH1[_Zw] != null) {
_ZB1.activeTexture(_ZB1.TEXTURE0 + _Zw);
if (!_pF1(_RH1[_Zw], _Tt())) {
_rF1(_RH1[_Zw], _Tt());
_sF1(_RH1[_Zw], _Tt())
}
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _RH1[_Zw]._YE1)
}
_PI1(_RH1[_Zw], _Zw);
break
}
case _wH1: {
_ko = _MH1[_i2 + 1];
_UH1.set(_MH1[_i2 + 2], _ko * 4);
_VH1.set(_MH1[_i2 + 3], _ko * 4);
_WH1.set(_MH1[_i2 + 4], _ko * 4);
_i2 += 5;
_HI1(_JH1);
break
}
case _xH1: {
_XH1.set(_MH1[_i2 + 1]);
_i2 += 2;
_HI1(_KH1);
break
}
case _yH1: {
_YH1.set(_MH1[_i2 + 1]);
_i2 += 2;
_HI1(_IH1);
break
}
case _zH1: {
_ko = _MH1[_i2 + 1];
enable = _MH1[_i2 + 2];
_f9 = _MH1[_i2 + 3];
_i2 += 4;
if (enable) {
_WH1.set(_f9, _ko * 4)
} else {
var _Nu = _ko * 4;
_WH1[_Nu + 0] = 0;
_WH1[_Nu + 1] = 0;
_WH1[_Nu + 2] = 0;
_WH1[_Nu + 3] = 0
}
_HI1(_JH1);
break
}
case _AH1: {
_ZH1 = _MH1[_i2 + 1];
__H1 = _MH1[_i2 + 2];
_i2 += 3;
_HI1(_LH1);
break
}
case _BH1: {
_A9 = _MH1[_i2 + 1];
var _ob = _MH1[_i2 + 2];
var _qb = _MH1[_i2 + 3];
var _Fb = _MH1[_i2 + 4];
var _Gb = _MH1[_i2 + 5];
var canvas = _MH1[_i2 + 6];
_i2 += 7;
if (!_pF1(_A9, _Tt())) {
_rF1(_A9, _Tt());
_sF1(_A9, _Tt())
}
_ZB1.activeTexture(_ZB1.TEXTURE0);
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _A9._YE1);
_ZB1.texSubImage2D(_ZB1.TEXTURE_2D,
0, _ob, _qb, _Fb, _Gb, _ZB1.RGBA, _ZB1.UNSIGNED_BYTE, canvas);
if (_RH1.length > 0) {
if (_RH1[0] != null) {
_ZB1.bindTexture(_ZB1.TEXTURE_2D, _RH1[0]._YE1)
}
}
break
}
}
}
_MH1.length = 0
}
} /*@constructor */
function _CC1(_lJ1, _Fc, _Gc, _mJ1, _KE1, _nJ1, _oJ1) {
var _ZB1 = this._BC1;
var _pJ1, _qJ1, _UL, _WL, _rJ1, _sJ1, _tJ1, _fg1;
var _uJ1;
Object.defineProperties(this, {
_ZE1: {
get: function () {
return _pJ1
}
},
_YE1: {
get: function () {
return _qJ1
},
set: function (_z8) {
_qJ1 = _z8
}
},
_QE1: {
get: function () {
return _UL
}
},
_RE1: {
get: function () {
return _WL
}
},
_YI1: {
get: function () {
return _rJ1
}
},
Image: {
get: function () {
return _sJ1
}
},
_vJ1: {
get: function () {
return _tJ1
}
},
_Rk: {
get: function () {
return _fg1
},
set: function (_z8) {
_fg1 = _z8
}
},
_0F1: {
get: function () {
return _uJ1
},
set: function (_z8) {
_uJ1 = _z8
}
}
});
(function () {
_qJ1 = _lJ1;
_UL = _Fc;
_WL = _Gc;
_rJ1 = _mJ1;
_sJ1 = _KE1;
_tJ1 = _nJ1;
_fg1 = _oJ1;
_uJ1 = false;
_pJ1 = new _EC1();
if (_qJ1) {
_pJ1.__E1(_ZB1.TEXTURE_2D);
}
_fg1 = _UE1._wJ1;
if (_tJ1 !== undefined && _tJ1 !== 0) {
_fg1 |= (_UE1._VE1 | _UE1._xJ1)
}
})()
}
var _yJ1 = {
_wJ1: 0,
_iJ1: 1,
_zJ1: 2,
_AJ1: 4,
_BJ1: 8,
_CJ1: 16,
_VE1: 32,
_DJ1: 64
};
Object.freeze(_yJ1);
var _EJ1 = {
_iJ1: 0,
_FJ1: 1,
_GJ1: 2,
_zJ1: 3,
_VE1: 4,
_XE1: 5,
_xJ1: 6,
_HJ1: 7,
_DJ1: 8,
_AJ1: 9,
_IJ1: 16,
};
Object.freeze(_EJ1);
var _UE1 = {
_wJ1: 0,
_iJ1: (1 << _EJ1._iJ1),
_FJ1: (1 << _EJ1._FJ1),
_GJ1: (1 << _EJ1._GJ1),
_zJ1: (1 << _EJ1._zJ1),
_VE1: (1 << _EJ1._VE1),
_XE1: (1 << _EJ1._XE1),
_xJ1: (1 << _EJ1._xJ1),
_HJ1: (1 << _EJ1._HJ1),
_DJ1: (1 << _EJ1._DJ1)
};
Object.freeze(_UE1);
function _JJ1(_KJ1) {
var _LJ1 = [];
var _MJ1;
(function () {
if (_KJ1 == undefined) _KJ1 = 32;
_MJ1 = ~~(_KJ1 / 32);
if (_MJ1 == 0) _MJ1 = 1;
_LJ1 = new Array(_MJ1);
for (var _i2 = 0; _i2 < _MJ1; _i2++) {
_LJ1[_i2] = 0x0
}
})();
this._NJ1 = function () {
return _KJ1
};
this._OJ1 = function (_PJ1) {
if (_PJ1 >= _KJ1) return;
var _1m = ~~(_PJ1 / 32);
var _QJ1 = _PJ1 - (_1m * 32);
_LJ1[_1m] |= 1 << _QJ1
};
this._RJ1 = function (_PJ1) {
if (_PJ1 >= _KJ1) return;
var _1m = ~~(_PJ1 / 32);
var _QJ1 = _PJ1 - (_1m * 32);
_LJ1[_1m] &= ~(1 << _QJ1)
};
this._SJ1 = function (_PJ1) {
if (_PJ1 >= _KJ1) return 0;
var _1m = ~~(_PJ1 / 32);
var _TJ1 = _PJ1 - (_1m * 32);
var _Ji = (_LJ1[_1m] >> _TJ1) & 0x1;
return _Ji
};
this._UJ1 = function () {
var _i2;
for (_i2 = 0; _i2 < (_MJ1 - 1); _i2++) {
_LJ1[_i2] = 0xffffffff
}
var _VJ1 = _KJ1 - (_i2 * 32);
var _nb;
var _Jh = 1;
for (_nb = 0; _nb < _VJ1; _nb++) {
_LJ1[_i2] |= _Jh;
_Jh <<= 1
}
};
this._WJ1 = function () {
for (var _i2 = 0; _i2 < _MJ1; _i2++) {
_LJ1[_i2] = 0x0
}
};
this._XJ1 = function () {
var _i2;
for (_i2 = 0; _i2 < _MJ1; _i2++) {
if (_LJ1[_i2] != 0) return 1
}
return 0
};
this._YJ1 = function (_wB) {
var _ZJ1 = _wB._NJ1() > this._NJ1() ? _wB._NJ1() : this._NJ1();
var __J1 = new _JJ1(_ZJ1);
for (var _i2 = 0; _i2 < _ZJ1; _i2++) {
var _0K1 = this._SJ1(_i2) | _wB._SJ1(_i2);
if (_0K1 == 1) {
__J1._OJ1(_i2)
}
}
return __J1;
};
this._1K1 = function (_wB) {
var _ZJ1 = _wB._NJ1() > this._NJ1() ? _wB._NJ1() : this._NJ1();
var __J1 = new _JJ1(_ZJ1);
for (var _i2 = 0; _i2 < _ZJ1; _i2++) {
var _0K1 = this._SJ1(_i2) & _wB._SJ1(_i2);
if (_0K1 == 1) {
__J1._OJ1(_i2)
}
}
return __J1
}
}
function _2K1(_3K1, _4K1, _5K1) {
var _6K1 = [];
var _7K1 = [];
(function () {
_6K1 = new Array(_3K1);
_7K1 = new Array(_4K1 * _5K1)
})();
Object.defineProperties(this, {
_8K1: {
get: function () {
return _6K1
},
set: function (_Ji) {
_6K1 = _Ji
}
},
_9K1: {
get: function () {
return _7K1
},
set: function (_Ji) {
_7K1 = _Ji
}
},
})
} /*@constructor */
function _uC1(_aK1, _bK1, _cK1, _9H1) {
var _ZB1 = this._BC1;
var _dK1 = null;
var _rg1 = null;
var _eK1 = [];
var _fK1;
var _gK1 = null;
var _hK1 = null;
var _iK1 = false;
var _jK1 = _cK1;
(function () {
_gK1 = new _JJ1(64);
_hK1 = new _JJ1(64);
_dK1 = new _2K1(_de._sG1, _aK1, _de._JG1);
_rg1 = new _2K1(_de._sG1, _aK1, _de._JG1);
_eK1 = new Array(_bK1);
for (var _i2 = 0; _i2 < _bK1; _i2++) {
_eK1[_i2] = new _2K1(_de._sG1, _aK1, _de._JG1)
}
_6I1()
})();
function _6I1() {
_gK1._UJ1();
_hK1._UJ1();
_iK1 = true;
_fK1 = 0;
_dK1._8K1[_de._aw] = false;
_dK1._8K1[_de._eG1] = _de._PG1;
_dK1._8K1[_de._fG1] = _de._RG1;
_dK1._8K1[_de._dw] = true;
_dK1._8K1[_de._Fw] = false;
_dK1._8K1[_de._re] = _de._ee;
_dK1._8K1[_de._se] = _de._ge;
_dK1._8K1[_de._mw] = _de._UD1;
_dK1._8K1[_de._cw] = _de._EG1;
_dK1._8K1[_de._Hw] = 0;
_dK1._8K1[_de._jx] = _de._FG1;
_dK1._8K1[_de._9w] = true;
_dK1._8K1[_de._hw] = false;
_dK1._8K1[_de._gG1] = false;
_dK1._8K1[_de._iw] = 0x00000000;
_dK1._8K1[_de._hG1] = _de._XG1;
_dK1._8K1[_de._jw] = 0.0;
_dK1._8K1[_de._kw] = 1.0;
_dK1._8K1[_de._iG1] = 0;
_dK1._8K1[_de._jG1] = false;
_dK1._8K1[_de._kG1] = false;
_dK1._8K1[_de._lG1] = 0x00000000;
_dK1._8K1[_de._mG1] = _de._XG1;
_dK1._8K1[_de._Ew] = _de._ZG1 | _de._0H1 | _de.__G1 | _de._1H1;
_dK1._8K1[_de._fE1] = false;
_dK1._8K1[_de._nG1] = _de._tG1;
_dK1._8K1[_de._oG1] = _de._tG1;
_dK1._8K1[_de._kE1] = _de._tG1;
_dK1._8K1[_de._hE1] = _de._IG1;
_dK1._8K1[_de._nE1] = 0;
_dK1._8K1[_de._pG1] = 0xffffffff;
_dK1._8K1[_de._qG1] = 0xffffffff;
_dK1._8K1[_de._ve] = false;
_dK1._8K1[_de._te] = _de._ee;
_dK1._8K1[_de._ue] = _de._ge;
_dK1._8K1[_de._rG1] = 0;
var _i2;
for (_i2 = 0; _i2 < _de._sG1; _i2++) {
_rg1._8K1[_i2] = _dK1._8K1[_i2]
}
var index = 0;
for (_i2 = 0; _i2 < _aK1; _i2++) {
_dK1._9K1[index + _de._Mw] = _9H1 == true ? _de._Nw : _de._Pw;
_dK1._9K1[index + _de._Ow] = _9H1 == true ? _de._Nw : _de._Pw;
_dK1._9K1[index + _de._Xw] = _9H1 == true ? _de._Nw : _de._Pw;
_dK1._9K1[index + _de._Sw] = _de._Vw;
_dK1._9K1[index + _de._Uw] = _de._Vw;
_dK1._9K1[index + _de._2x] = 0;
_dK1._9K1[index + _de._4x] = 0;
_dK1._9K1[index + _de._0x] = 0;
_dK1._9K1[index + _de._6x] = 0;
_dK1._9K1[index + _de._7x] = _de._TE1;
index += _de._JG1
}
for (_i2 = 0; _i2 < (_de._JG1 * _aK1); _i2++) {
_rg1._9K1[_i2] = _dK1._9K1[_i2]
}
_fK1 = 0
};
this._8D = function () {
_6I1()
};
this._kK1 = function () {
return _gK1
};
this._lK1 = function () {
return _hK1
};
this._mK1 = function () {
return _iK1
};
this._Je = function (_xI1,
_Gw) {
if (_rg1._8K1[_xI1] == _Gw) return;
if (_dK1._8K1[_xI1] != _Gw) {
_gK1._OJ1(_xI1)
} else {
_gK1._RJ1(_xI1)
}
_rg1._8K1[_xI1] = _Gw;
_iK1 = _gK1._XJ1() || _hK1._XJ1()
};
this._Lw = function (_aE1, _xI1, _Gw) {
var index = (_aE1 * _de._JG1) + _xI1;
if (_rg1._9K1[index] == _Gw) return;
if (_dK1._9K1[index] != _Gw) {
_hK1._OJ1(index)
} else {
_hK1._RJ1(index)
}
_rg1._9K1[index] = _Gw;
_iK1 = _gK1._XJ1() || _hK1._XJ1()
};
this._qe = function (_xI1) {
return _rg1._8K1[_xI1]
};
this._dx = function (_aE1, _xI1) {
return _rg1._9K1[(_aE1 * _de._JG1) + _xI1]
};
this._ex = function () {
_eK1[_fK1]._8K1 = _rg1._8K1.slice();
_eK1[_fK1]._9K1 = _rg1._9K1.slice();
if (_fK1 < _bK1) {
_fK1++
} else {
debug("GPU state stack has run out of space")
}
};
this._fx = function () {
if (_fK1 > 0) {
_fK1--
} else {
debug("Attempting to drop below bottom of GPU state stack")
}
var _i2;
for (_i2 = 0; _i2 < _de._sG1; _i2++) {
this._Je(_i2, _eK1[_fK1]._8K1[_i2])
}
for (_i2 = 0; _i2 < _aK1; _i2++) {
var _nb;
for (_nb = 0; _nb < _de._JG1; _nb++) {
this._Lw(_i2, _nb, _eK1[_fK1]._9K1[(_i2 * _aK1) + _nb])
}
}
};
this._a_ = function () {
var _i2;
if (_gK1._XJ1()) {
for (_i2 = 0; _i2 < _de._sG1; _i2++) {
if (_gK1._SJ1(_i2) != 0) {
_jK1._Je(_i2,
_rg1._8K1[_i2]);
_dK1._8K1[_i2] = _rg1._8K1[_i2];
}
}
_gK1._WJ1()
}
if (_hK1._XJ1()) {
for (_i2 = 0; _i2 < (_aK1 * _de._JG1); _i2++) {
if (_hK1._SJ1(_i2) != 0) {
var _Zw = ~~(_i2 / _de._JG1);
var state = _i2 - (_Zw * _de._JG1);
_jK1._Lw(_Zw, state, _rg1._9K1[_i2]);
_dK1._9K1[_i2] = _rg1._9K1[_i2]
}
}
_hK1._WJ1()
}
_iK1 = false
}
} /*@constructor */
function _EC1(_9H1) {
var _ZB1 = this._BC1;
var _nK1 = [];
Object.defineProperties(this, {
_TI1: {
get: function () {
return _nK1
}
}
});
(function () {
if (_9H1) {
_nK1[_de._Mw] = _de._Nw;
_nK1[_de._Ow] = _de._Nw;
_nK1[_de._Xw] = _de._Nw
} else {
_nK1[_de._Mw] = _de._Pw;
_nK1[_de._Ow] = _de._Pw;
_nK1[_de._Xw] = _de._Pw;
}
_nK1[_de._Sw] = _de._Vw;
_nK1[_de._Uw] = _de._Vw
})(); /*@this {yyTextureSamplerState} */
this.__E1 = function (_B11) {
var _oK1 = _nK1;
_ZB1.texParameteri(_B11, _ZB1.TEXTURE_MAG_FILTER, (_oK1[_de._Mw] == _de._Nw) ? _ZB1.LINEAR : _ZB1.NEAREST);
_ZB1.texParameteri(_B11, _ZB1.TEXTURE_MIN_FILTER, (_oK1[_de._Ow] == _de._Nw) ? _ZB1.LINEAR : _ZB1.NEAREST);
_ZB1.texParameteri(_B11, _ZB1.TEXTURE_WRAP_S, (_oK1[_de._Sw] == _de._Vw) ? _ZB1.CLAMP_TO_EDGE : _ZB1.REPEAT);
_ZB1.texParameteri(_B11,
_ZB1.TEXTURE_WRAP_T, (_oK1[_de._Uw] == _de._Vw) ? _ZB1.CLAMP_TO_EDGE : _ZB1.REPEAT);
}
} /*@constructor */
function _Yg(_ph, _pK1, _qK1) {
var _ZB1 = this._BC1;
this._rK1 = null;
this._bh = null;
this._1J1 = null;
this._Se = null;
this._Ue = null;
this._hh = null;
this._We = null;
this._6J1 = _pK1;
this._kJ1 = -1;
this._Qe = 0;
this._sK1 = _ph;
this._iJ1 = false;
_tK1(this);
function _tK1(_e_) {
_uK1(_e_);
_vK1(_e_);
if (_qK1) {
_wK1(_e_)
}
}
function _uK1(_e_) {
var _xK1 = _e_._6J1._Mh;
_e_._rK1 = new ArrayBuffer(_ph * _xK1);
_e_._bh = new Int8Array(_e_._rK1)
}
function _wK1(_e_) {
_e_._1J1 = _ZB1.createBuffer();
_ZB1.bindBuffer(_ZB1.ARRAY_BUFFER, _e_._1J1);
_ZB1.bufferData(_ZB1.ARRAY_BUFFER, _e_._bh, _ZB1.DYNAMIC_DRAW)
}
function _vK1(_e_) {
var _yK1 = _e_._6J1._Gh;
for (var _3b = 0; _3b < _yK1.length; _3b++) {
var _7J1 = _yK1[_3b];
switch (_7J1._Ih) {
case _de._Xh:
_e_._Se = _zK1(_7J1._9J1, _e_._rK1, _7J1.offset);
break;
case _de._1i:
_e_._Ue = _zK1(_7J1._9J1, _e_._rK1, _7J1.offset);
break;
case _de._bi:
_e_._hh = _zK1(_7J1._9J1, _e_._rK1, _7J1.offset);
break;
case _de._9i:
_e_._We = _zK1(_7J1._9J1, _e_._rK1, _7J1.offset);
break
}
}
}
function _zK1(_AK1,
_BK1, _CK1) {
switch (_AK1) {
case _ZB1.UNSIGNED_BYTE:
return (new Int32Array(_BK1, _CK1));
break;
case _ZB1.FLOAT:
return (new Float32Array(_BK1, _CK1));
break
}
return false
} /*@this {yyVBuffer} */
this._DK1 = function (_LF1) {
if (_LF1._Pe() === this._Pe()) {
var _mi = _LF1._Qe * _LF1._Pe();
var offset = this._Qe * this._Pe();
if ((offset + _mi) > this._bh.length) {
var _EK1 = new ArrayBuffer(this._bh.length * 2);
var _ah = new Int8Array(_EK1);
_ah.set(this._bh);
this._bh = _ah;
this._rK1 = _EK1;
_vK1(this)
}
this._bh.set(_LF1._bh.subarray(0, _mi), offset);
this._Qe += _LF1._Qe
}
}; /*@this {yyVBuffer} */
this._ki = function () {
if (this._Qe < this.max) {
var _mi = this._Qe * this._Pe();
var _FK1 = new ArrayBuffer(_mi);
var _GK1 = new Int8Array(_FK1);
_GK1.set(this._bh.subarray(0, _mi));
this._bh = _GK1;
this._rK1 = _FK1
}
this._1J1 = _ZB1.createBuffer();
_ZB1.bindBuffer(_ZB1.ARRAY_BUFFER, this._1J1);
_ZB1.bufferData(_ZB1.ARRAY_BUFFER, this._bh, _ZB1.STATIC_DRAW);
this._Se = null;
this._Ue = null;
this._hh = null;
this._We = null
}; /*@this {yyVBuffer} */
this._0h = function (_HK1) {
if ((this._Qe + _HK1) > this.max) {
var _IK1 = this.max * 2;
this.max = _IK1;
var _Oh = new ArrayBuffer(_IK1);
var _Qh = new Int8Array(_Oh);
_Qh.set(this._bh);
this._rK1 = _Oh;
_vK1(this)
}
this._Qe += _HK1;
}; /*@this {yyVBuffer} */
this._Pe = function () {
return this._6J1._Mh
}; /*@this {yyVBuffer} */
this._jJ1 = function () {
_ZB1.bindBuffer(_ZB1.ARRAY_BUFFER, this._1J1);
var _JK1 = new Int8Array(this._rK1, 0, this._Qe * this._6J1._Mh);
_ZB1.bufferSubData(_ZB1.ARRAY_BUFFER, 0, _JK1);
this._Qe = 0;
this._iJ1 = false
}
} /*@constructor */
function _vC1(_cK1, _KK1) {
var _ZB1 = this._BC1;
var _LK1 = [];
var _MK1 = 0,
_NH1 = null,
_NK1 = null,
_OK1 = _de._QF1,
_OH1 = null;
var _jK1 = _cK1;
var _PK1 = _KK1; /*@this {yyVBufferManager} */
this._SC1 = function (_Sh) {
if (_LK1[_Sh]) {
debug("WARNING: Vertex format has already been registered\n")
} else {
_LK1[_Sh] = new _pl()
}
}; /*@this {yyVBufferManager} */
this._NF1 = function (_Og, _qi, _LF1, _MF1) {
var size = _LF1._Qe - _MF1;
switch (_Og) {
case _de._Me:
_jK1._CE1(0, _qi);
_jK1._jI1(_LF1);
_jK1._lI1(_MF1, size);
break;
case _de._Tg:
_jK1._CE1(0, _qi);
_jK1._jI1(_LF1);
_jK1._nI1(_MF1, size);
break;
case _de._Sg:
_jK1._CE1(0, _qi);
_jK1._jI1(_LF1);
_jK1._oI1(_MF1, size);
break;
case _de._Qg:
_jK1._CE1(0, null);
_jK1._jI1(_LF1);
_jK1._pI1(_MF1, size);
break;
case _de._Rg:
_jK1._CE1(0, null);
_jK1._jI1(_LF1);
_jK1._qI1(_MF1, size);
break;
case _de._Pg:
_jK1._CE1(0, null);
_jK1._jI1(_LF1);
_jK1._al1(_MF1, size);
break
}
}; /*@this {yyVBufferManager} */
this._a_ = function () {
if (_NK1 == null) {
_PK1._a_();
return
}
this._NF1(_OK1, _NH1, _NK1, _MK1);
_NK1 = _NH1 = null;
_OK1 = _de._QF1;
_PK1._a_()
}; /*@this {yyVBufferManager} */
this._Le = function (_Og, _QK1, _Sh, _RK1, _pK1, _SK1) {
var _i2, _TK1, _Ke, _v9;
_v9 = _QK1;
if (_NK1 != null) {
if ((_NK1._WC1 == _Sh) && ((_NK1._Qe + _RK1) <= _NK1._sK1) && (_NH1 == _v9) && (_OK1 == _Og) && ((_Og != _de._Rg) && (_Og != _de._Sg) && (_Og != _de._Tg)) && (_PK1._mK1() == false)) {
return _NK1
} else {
var _UK1 = _NK1;
_xc._a_();
if ((_UK1._WC1 == _Sh) && ((_UK1._Qe + _RK1) <= _UK1._sK1)) {
_NK1 = _UK1;
_MK1 = _UK1._Qe;
_OK1 = _Og;
_NH1 = _v9;
return _NK1
}
}
} else this._a_();
_OK1 = _Og;
_NH1 = _v9;
_TK1 = _LK1[_Sh]._Dl;
for (_i2 = _TK1.length - 1; _i2 >= 0; _i2--) {
_Ke = _TK1[_i2];
if (((_Ke._kJ1 + 1) < _SK1) && (_Ke._Qe + _RK1) <= _Ke._sK1) {
_Ke._iJ1 = true;
_MK1 = _Ke._Qe;
_NK1 = _Ke;
return _Ke
}
}
if (_RK1 < _Zg) {
_RK1 = _Zg
}
_Ke = new _Yg(_RK1, _pK1, true);
_Ke._WC1 = _Sh;
_Ke._iJ1 = true;
_MK1 = _Ke._Qe;
_NK1 = _Ke;
_LK1[_Sh]._Vj(_Ke);
return _Ke
}
} /*@constructor */
function _DC1() {
var _ZB1 = this._BC1;
var _VK1 = 1,
_WK1 = false,
_XK1 = [],
_YK1 = 0,
_ZK1 = 0;
this._cJ1 = [];
Object.defineProperties(this, {
_Gh: {
get: function () {
return _XK1
},
set: function (_Ji) {
_XK1 = _Ji
}
},
_Lh: {
get: function () {
return _ZK1
},
set: function (_Ji) {
_ZK1 = _Ji
}
},
_Mh: {
get: function () {
return _YK1
},
set: function (_Ji) {
_YK1 = _Ji
}
},
_TC1: {
get: function () {
return _WK1
},
set: function (_Ji) {
_WK1 = _Ji
}
}
});
function __K1(_Dh,
_Ch, _0L1) {
var _Hh = {
offset: _YK1,
type: _Dh,
_Ih: _Ch,
_Jh: _0L1,
_9J1: 0,
_8J1: 0,
_aJ1: false
};
return _Hh
}
function _Vj(_Dh, _Ch, _0L1) {
_ZK1 |= _0L1;
var _7J1 = __K1(_Dh, _Ch, _0L1);
switch (_Dh) {
case _de._2i:
case _de._ji:
_YK1 += 4;
_7J1._9J1 = _ZB1.UNSIGNED_BYTE;
_7J1._8J1 = 4;
_7J1._aJ1 = true;
break;
case _de._di:
_YK1 += 4;
_7J1._9J1 = _ZB1.FLOAT;
_7J1._8J1 = 1;
_7J1._aJ1 = false;
break;
case _de._Yh:
_YK1 += 8;
_7J1._9J1 = _ZB1.FLOAT;
_7J1._8J1 = 2;
_7J1._aJ1 = false;
break;
case _de.__h:
_YK1 += 12;
_7J1._9J1 = _ZB1.FLOAT;
_7J1._8J1 = 3;
_7J1._aJ1 = false;
break;
case _de._hi:
_YK1 += 16;
_7J1._9J1 = _ZB1.FLOAT;
_7J1._8J1 = 4;
_7J1._aJ1 = false;
break
}
_XK1.push(_7J1)
} /*@this {yyVertexFormat} */
this._1L1 = function () {
_Vj(_de._Yh, _de._Xh, _VK1);
_VK1 = _VK1 << 1
}; /*@this {yyVertexFormat} */
this._OC1 = function () {
_Vj(_de.__h, _de._Xh, _VK1);
_VK1 = _VK1 << 1
}; /*@this {yyVertexFormat} */
this._PC1 = function () {
_Vj(_de._2i, _de._1i, _VK1);
_VK1 = _VK1 << 1
}; /*@this {yyVertexFormat} */
this._RC1 = function () {
_Vj(_de.__h, _de._bi, _VK1);
_VK1 = _VK1 << 1
}; /*@this {yyVertexFormat} */
this._QC1 = function () {
_Vj(_de._Yh, _de._9i, _VK1);
_VK1 = _VK1 << 1
}; /*@this {yyVertexFormat} */
this._2L1 = function (_Dh, _Ch) {
if ((_Dh < _de._di) || (_Dh > _de._1G1)) {
debug("ERROR vertex_format_add_custom: illegal types");
return
}
if ((_Ch < _de._Xh) || (_Ch > _de._0G1)) {
debug("ERROR vertex_format_add_custom: illegal usage");
return
}
_Vj(_Dh, _Ch, _VK1);
_VK1 = _VK1 << 1
}; /*@this {yyVertexFormat} */
this._Z41 = function (_VC1) {
if (_XK1.length !== _VC1._Gh.length) {
return false
}
for (var _i2 = 0; _i2 < _XK1.length; _i2++) {
var _3L1 = _XK1[_i2];
var _4L1 = _VC1._Gh[_i2];
if ((_3L1.offset !== _4L1.offset) || (_3L1.type !== _4L1.type) || (_3L1._Ih !== _4L1._Ih) || (_3L1._Jh !== _4L1._Jh) || (_3L1._9J1 !== _4L1._9J1) || (_3L1._8J1 !== _4L1._8J1)) {
return false
}
}
return true
}
}
var _5L1 = null;
try {
_5L1 = new _6L1._7L1(new _6L1._8L1(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126,
32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11
])), {})._dz1
} catch (e) {}
/*
* Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.
* See the from* functions below for more convenient ways of constructing Longs.
* @exports Long
* @class A Long class for representing a 64 bit two's-complement integer value.
* @param {number} low The low (signed) 32 bits of the long
* @param {number} high The high (signed) 32 bits of the long
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @constructor
*/
function Long(_9Z,
_c61, _9L1) {
/*
* The low 32 bits as a signed value.
* @type {number}
*/
this._9Z = _9Z | 0;
/*
* The high 32 bits as a signed value.
* @type {number}
*/
this._c61 = _c61 | 0;
/*
* Whether unsigned or not.
* @type {boolean}
*/
this._9L1 = !!_9L1
}
/*
* An indicator used to reliably determine if an object is a Long or not.
* @type {boolean}
* @const
* @private
*/
Long.prototype.__isLong__;
Object.defineProperty(Long.prototype, "__isLong__", {
value: !0
});
/*
* @function
* @param {*} obj Object
* @returns {boolean}
* @inner
*/
function _aL1(_xn) {
return (_xn && _xn["__isLong__"]) === true
}
/*
* Tests if the specified object is a Long.
* @function
* @param {*} obj Object
* @returns {boolean}
*/
Long._aL1 = _aL1;
/*
* A cache of the Long representations of small integer values.
* @type {!Object}
* @inner
*/
var _bL1 = {};
/*
* A cache of the Long representations of small unsigned integer values.
* @type {!Object}
* @inner
*/
var _cL1 = {};
/*
* @param {number} value
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/
function _dL1(value,
_9L1) {
var _xn, _eL1, _Ic;
if (_9L1) {
value >>>= 0;
if (_Ic = (0 <= value && value < 256)) {
_eL1 = _cL1[value];
if (_eL1) return _eL1
}
_xn = _fL1(value, (value | 0) < 0 ? -1 : 0, true);
if (_Ic) _cL1[value] = _xn;
return _xn
} else {
value |= 0;
if (_Ic = (-128 <= value && value < 128)) {
_eL1 = _bL1[value];
if (_eL1) return _eL1
}
_xn = _fL1(value, value < 0 ? -1 : 0, false);
if (_Ic) _bL1[value] = _xn;
return _xn
}
}
/*
* Returns a Long representing the given 32 bit integer value.
* @function
* @param {number} value The 32 bit integer in question
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @returns {!Long} The corresponding Long value
*/
Long._dL1 = _dL1;
/*
* @param {number} value
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/
function _gL1(value, _9L1) {
if (isNaN(value)) return _9L1 ? _hL1 : ZERO;
if (_9L1) {
if (value < 0) return _hL1;
if (value >= _iL1) return _jL1
} else {
if (value <= -_kL1) return MIN_VALUE;
if (value + 1 >= _kL1) return MAX_VALUE
}
if (value < 0) return _gL1(-value, _9L1)._lL1();
return _fL1((value % _mL1) | 0, (value / _mL1) | 0, _9L1)
}
/*
* Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
* @function
* @param {number} value The number in question
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @returns {!Long} The corresponding Long value
*/
Long._gL1 = _gL1;
/*
* @param {number} lowBits
* @param {number} highBits
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/
function _fL1(_6Z, _5Z, _9L1) {
return new Long(_6Z, _5Z, _9L1)
}
/*
* Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is
* assumed to use 32 bits.
* @function
* @param {number} lowBits The low 32 bits
* @param {number} highBits The high 32 bits
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @returns {!Long} The corresponding Long value
*/
Long._fL1 = _fL1;
/*
* @function
* @param {number} base
* @param {number} exponent
* @returns {number}
* @inner
*/
var _nL1 = Math.pow;
/*
* @param {string} str
* @param {(boolean|number)=} unsigned
* @param {number=} radix
* @returns {!Long}
* @inner
*/
function _Ol(_8z, _9L1, _oL1) {
if (_8z.length === 0) throw Error('empty string');
if (_8z === "NaN" || _8z === "Infinity" || _8z === "+Infinity" || _8z === "-Infinity") return ZERO;
if (typeof _9L1 === 'number') {
_oL1 = _9L1, _9L1 = false
} else {
_9L1 = !!_9L1
}
_oL1 = _oL1 || 10;
if (_oL1 < 2 || 36 < _oL1) throw _pL1('radix');
var _gE;
if ((_gE = _8z.indexOf('-')) > 0) throw Error('interior hyphen');
else if (_gE === 0) {
return _Ol(_8z.substring(1), _9L1, _oL1)._lL1()
}
var _qL1 = _gL1(_nL1(_oL1, 8));
var result = ZERO;
for (var _i2 = 0; _i2 < _8z.length; _i2 += 8) {
var size = Math.min(8, _8z.length - _i2),
value = parseInt(_8z.substring(_i2, _i2 + size), _oL1);
if (size < 8) {
var _7N = _gL1(_nL1(_oL1, size));
result = result._xN(_7N).add(_gL1(value))
} else {
result = result._xN(_qL1);
result = result.add(_gL1(value))
}
}
result._9L1 = _9L1;
return result
}
/*
* Returns a Long representation of the given string, written using the specified radix.
* @function
* @param {string} str The textual representation of the Long
* @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed
* @param {number=} radix The radix in which the text is written (2-36), defaults to 10
* @returns {!Long} The corresponding Long value
*/
Long._Ol = _Ol;
/*
* @function
* @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val
* @param {boolean=} unsigned
* @returns {!Long}
* @inner
*/
function _rL1(_Ji, _9L1) {
if (typeof _Ji === 'number') return _gL1(_Ji, _9L1);
if (typeof _Ji === 'string') return _Ol(_Ji, _9L1);
return _fL1(_Ji._9Z, _Ji._c61, typeof _9L1 === 'boolean' ? _9L1 : _Ji._9L1)
}
/*
* Converts the specified value to a Long using the appropriate from* function for its type.
* @function
* @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @returns {!Long}
*/
Long._rL1 = _rL1;
/*
* @type {number}
* @const
* @inner
*/
var _sL1 = 1 << 16;
/*
* @type {number}
* @const
* @inner
*/
var _tL1 = 1 << 24;
/*
* @type {number}
* @const
* @inner
*/
var _mL1 = _sL1 * _sL1;
/*
* @type {number}
* @const
* @inner
*/
var _iL1 = _mL1 * _mL1;
/*
* @type {number}
* @const
* @inner
*/
var _kL1 = _iL1 / 2;
/*
* @type {!Long}
* @const
* @inner
*/
var _uL1 = _dL1(_tL1);
/*
* @type {!Long}
* @inner
*/
var ZERO = _dL1(0);
/*
* Signed zero.
* @type {!Long}
*/
Long.ZERO = ZERO;
/*
* @type {!Long}
* @inner
*/
var _hL1 = _dL1(0,
!0);
/*
* Unsigned zero.
* @type {!Long}
*/
Long._hL1 = _hL1;
/*
* @type {!Long}
* @inner
*/
var ONE = _dL1(1);
/*
* Signed one.
* @type {!Long}
*/
Long.ONE = ONE;
/*
* @type {!Long}
* @inner
*/
var _vL1 = _dL1(1, !0);
/*
* Unsigned one.
* @type {!Long}
*/
Long._vL1 = _vL1;
/*
* @type {!Long}
* @inner
*/
var _wL1 = _dL1(-1);
/*
* Signed negative one.
* @type {!Long}
*/
Long._wL1 = _wL1;
/*
* @type {!Long}
* @inner
*/
var MAX_VALUE = _fL1(0xFFFFFFFF | 0, 0x7FFFFFFF | 0, !1);
/*
* Maximum signed value.
* @type {!Long}
*/
Long.MAX_VALUE = MAX_VALUE;
/*
* @type {!Long}
* @inner
*/
var _jL1 = _fL1(0xFFFFFFFF | 0, 0xFFFFFFFF | 0, !0);
/*
* Maximum unsigned value.
* @type {!Long}
*/
Long._jL1 = _jL1;
/*
* @type {!Long}
* @inner
*/
var MIN_VALUE = _fL1(0, 0x80000000 | 0, !1);
/*
* Minimum signed value.
* @type {!Long}
*/
Long.MIN_VALUE = MIN_VALUE;
/*
* @alias Long.prototype
* @inner
*/
var _xL1 = Long.prototype;
/*
* Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
* @returns {number}
*/
_xL1._yL1 = function _yL1() {
return this._9L1 ? this._9Z >>> 0 : this._9Z;
};
/*
* Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
* @returns {number}
*/
_xL1._kA = function _kA() {
if (this._9L1) return ((this._c61 >>> 0) * _mL1) + (this._9Z >>> 0);
return this._c61 * _mL1 + (this._9Z >>> 0)
};
/*
* Converts the Long to a string written in the specified radix.
* @param {number=} radix Radix (2-36), defaults to 10
* @returns {string}
* @override
* @throws {RangeError} If `radix` is out of range
*/
_xL1.toString = function toString(_oL1) {
_oL1 = _oL1 || 10;
if (_oL1 < 2 || 36 < _oL1) throw _pL1('radix');
if (this._zL1()) return '0';
if (this._AL1()) {
if (this._BL1(MIN_VALUE)) {
var _CL1 = _gL1(_oL1),
_Ey = this._Ey(_CL1),
_DL1 = _Ey._xN(_CL1).sub(this);
return _Ey.toString(_oL1) + _DL1._yL1().toString(_oL1)
} else return '-' + this._lL1().toString(_oL1)
}
var _qL1 = _gL1(_nL1(_oL1, 6), this._9L1),
_EL1 = this;
var result = '';
while (true) {
var _FL1 = _EL1._Ey(_qL1),
_GL1 = _EL1.sub(_FL1._xN(_qL1))._yL1() >>> 0,
_HL1 = _GL1.toString(_oL1);
_EL1 = _FL1;
if (_EL1._zL1()) return _HL1 + result;
else {
while (_HL1.length < 6) _HL1 = '0' + _HL1;
result = '' + _HL1 + result
}
}
};
/*
* Gets the high 32 bits as a signed integer.
* @returns {number} Signed high bits
*/
_xL1._IL1 = function _IL1() {
return this._c61
};
/*
* Gets the high 32 bits as an unsigned integer.
* @returns {number} Unsigned high bits
*/
_xL1._JL1 = function _JL1() {
return this._c61 >>> 0
};
/*
* Gets the low 32 bits as a signed integer.
* @returns {number} Signed low bits
*/
_xL1._KL1 = function _KL1() {
return this._9Z
};
/*
* Gets the low 32 bits as an unsigned integer.
* @returns {number} Unsigned low bits
*/
_xL1._LL1 = function _LL1() {
return this._9Z >>> 0
};
/*
* Gets the number of bits needed to represent the absolute value of this Long.
* @returns {number}
*/
_xL1._ML1 = function _ML1() {
if (this._AL1()) return this._BL1(MIN_VALUE) ? 64 : this._lL1()._ML1();
var _Ji = this._c61 != 0 ? this._c61 : this._9Z;
for (var _Jh = 31; _Jh > 0; _Jh--)
if ((_Ji & (1 << _Jh)) != 0) break;
return this._c61 != 0 ? _Jh + 33 : _Jh + 1
};
/*
* Tests if this Long's value equals zero.
* @returns {boolean}
*/
_xL1._zL1 = function _zL1() {
return this._c61 === 0 && this._9Z === 0
};
/*
* Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.
* @returns {boolean}
*/
_xL1._NL1 = _xL1._zL1;
/*
* Tests if this Long's value is negative.
* @returns {boolean}
*/
_xL1._AL1 = function _AL1() {
return !this._9L1 && this._c61 < 0
};
/*
* Tests if this Long's value is positive.
* @returns {boolean}
*/
_xL1._OL1 = function _OL1() {
return this._9L1 || this._c61 >= 0
};
/*
* Tests if this Long's value is odd.
* @returns {boolean}
*/
_xL1._PL1 = function _PL1() {
return (this._9Z & 1) === 1
};
/*
* Tests if this Long's value is even.
* @returns {boolean}
*/
_xL1._QL1 = function _QL1() {
return (this._9Z & 1) === 0;
};
/*
* Tests if this Long's value equals the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._RL1 = function _RL1(_wb1) {
if (!_aL1(_wb1)) _wb1 = _rL1(_wb1);
if (this._9L1 !== _wb1._9L1 && (this._c61 >>> 31) === 1 && (_wb1._c61 >>> 31) === 1) return false;
return this._c61 === _wb1._c61 && this._9Z === _wb1._9Z
};
/*
* Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._BL1 = _xL1._RL1;
/*
* Tests if this Long's value differs from the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._SL1 = function _SL1(_wb1) {
return !this._BL1(_wb1)
};
/*
* Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._TL1 = _xL1._SL1;
/*
* Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._UL1 = _xL1._SL1;
/*
* Tests if this Long's value is less than the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._VL1 = function _VL1(_wb1) {
return this._WL1(_wb1) < 0
};
/*
* Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._XL1 = _xL1._VL1;
/*
* Tests if this Long's value is less than or equal the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._YL1 = function _YL1(_wb1) {
return this._WL1(_wb1) <= 0
};
/*
* Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._ZL1 = _xL1._YL1;
/*
* Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1.__L1 = _xL1._YL1;
/*
* Tests if this Long's value is greater than the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._0M1 = function _0M1(_wb1) {
return this._WL1(_wb1) > 0
};
/*
* Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._1M1 = _xL1._0M1;
/*
* Tests if this Long's value is greater than or equal the specified's.
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._2M1 = function _2M1(_wb1) {
return this._WL1(_wb1) >= 0
};
/*
* Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._3M1 = _xL1._2M1;
/*
* Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
* @function
* @param {!Long|number|string} other Other value
* @returns {boolean}
*/
_xL1._4M1 = _xL1._2M1;
/*
* Compares this Long's value with the specified's.
* @param {!Long|number|string} other Other value
* @returns {number} 0 if they are the same, 1 if the this is greater and -1
* if the given one is greater
*/
_xL1._5M1 = function _5M1(_wb1) {
if (!_aL1(_wb1)) _wb1 = _rL1(_wb1);
if (this._BL1(_wb1)) return 0;
var _6M1 = this._AL1(),
_7M1 = _wb1._AL1();
if (_6M1 && !_7M1) return -1;
if (!_6M1 && _7M1) return 1;
if (!this._9L1) return this.sub(_wb1)._AL1() ? -1 : 1;
return (_wb1._c61 >>> 0) > (this._c61 >>> 0) || (_wb1._c61 === this._c61 && (_wb1._9Z >>> 0) > (this._9Z >>> 0)) ? -1 : 1
};
/*
* Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.
* @function
* @param {!Long|number|string} other Other value
* @returns {number} 0 if they are the same, 1 if the this is greater and -1
* if the given one is greater
*/
_xL1._WL1 = _xL1._5M1;
/*
* Negates this Long's value.
* @returns {!Long} Negated Long
*/
_xL1._8M1 = function _8M1() {
if (!this._9L1 && this._BL1(MIN_VALUE)) return MIN_VALUE;
return this._9M1().add(ONE)
};
/*
* Negates this Long's value. This is an alias of {@link Long#negate}.
* @function
* @returns {!Long} Negated Long
*/
_xL1._lL1 = _xL1._8M1;
/*
* Returns the sum of this and the specified Long.
* @param {!Long|number|string} addend Addend
* @returns {!Long} Sum
*/
_xL1.add = function add(_aM1) {
if (!_aL1(_aM1)) _aM1 = _rL1(_aM1);
var _bM1 = this._c61 >>> 16;
var _cM1 = this._c61 & 0xFFFF;
var _dM1 = this._9Z >>> 16;
var _eM1 = this._9Z & 0xFFFF;
var _fM1 = _aM1._c61 >>> 16;
var _gM1 = _aM1._c61 & 0xFFFF;
var _hM1 = _aM1._9Z >>> 16;
var _iM1 = _aM1._9Z & 0xFFFF;
var _jM1 = 0,
_kM1 = 0,
_lM1 = 0,
_mM1 = 0;
_mM1 += _eM1 + _iM1;
_lM1 += _mM1 >>> 16;
_mM1 &= 0xFFFF;
_lM1 += _dM1 + _hM1;
_kM1 += _lM1 >>> 16;
_lM1 &= 0xFFFF;
_kM1 += _cM1 + _gM1;
_jM1 += _kM1 >>> 16;
_kM1 &= 0xFFFF;
_jM1 += _bM1 + _fM1;
_jM1 &= 0xFFFF;
return _fL1((_lM1 << 16) | _mM1, (_jM1 << 16) | _kM1, this._9L1)
};
/*
* Returns the difference of this and the specified Long.
* @param {!Long|number|string} subtrahend Subtrahend
* @returns {!Long} Difference
*/
_xL1._nM1 = function _nM1(_oM1) {
if (!_aL1(_oM1)) _oM1 = _rL1(_oM1);
return this.add(_oM1._lL1())
};
/*
* Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.
* @function
* @param {!Long|number|string} subtrahend Subtrahend
* @returns {!Long} Difference
*/
_xL1.sub = _xL1._nM1;
/*
* Returns the product of this and the specified Long.
* @param {!Long|number|string} multiplier Multiplier
* @returns {!Long} Product
*/
_xL1._pM1 = function _pM1(_qM1) {
if (this._zL1()) return ZERO;
if (!_aL1(_qM1)) _qM1 = _rL1(_qM1);
if (_5L1) {
var _9Z = _5L1._xN(this._9Z, this._c61, _qM1._9Z, _qM1._c61);
return _fL1(_9Z, _5L1._rM1(), this._9L1)
}
if (_qM1._zL1()) return ZERO;
if (this._BL1(MIN_VALUE)) return _qM1._PL1() ? MIN_VALUE : ZERO;
if (_qM1._BL1(MIN_VALUE)) return this._PL1() ? MIN_VALUE : ZERO;
if (this._AL1()) {
if (_qM1._AL1()) return this._lL1()._xN(_qM1._lL1());
else return this._lL1()._xN(_qM1)._lL1()
} else if (_qM1._AL1()) return this._xN(_qM1._lL1())._lL1();
if (this._XL1(_uL1) && _qM1._XL1(_uL1)) return _gL1(this._kA() * _qM1._kA(), this._9L1);
var _bM1 = this._c61 >>> 16;
var _cM1 = this._c61 & 0xFFFF;
var _dM1 = this._9Z >>> 16;
var _eM1 = this._9Z & 0xFFFF;
var _fM1 = _qM1._c61 >>> 16;
var _gM1 = _qM1._c61 & 0xFFFF;
var _hM1 = _qM1._9Z >>> 16;
var _iM1 = _qM1._9Z & 0xFFFF;
var _jM1 = 0,
_kM1 = 0,
_lM1 = 0,
_mM1 = 0;
_mM1 += _eM1 * _iM1;
_lM1 += _mM1 >>> 16;
_mM1 &= 0xFFFF;
_lM1 += _dM1 * _iM1;
_kM1 += _lM1 >>> 16;
_lM1 &= 0xFFFF;
_lM1 += _eM1 * _hM1;
_kM1 += _lM1 >>> 16;
_lM1 &= 0xFFFF;
_kM1 += _cM1 * _iM1;
_jM1 += _kM1 >>> 16;
_kM1 &= 0xFFFF;
_kM1 += _dM1 * _hM1;
_jM1 += _kM1 >>> 16;
_kM1 &= 0xFFFF;
_kM1 += _eM1 * _gM1;
_jM1 += _kM1 >>> 16;
_kM1 &= 0xFFFF;
_jM1 += _bM1 * _iM1 + _cM1 * _hM1 + _dM1 * _gM1 + _eM1 * _fM1;
_jM1 &= 0xFFFF;
return _fL1((_lM1 << 16) | _mM1, (_jM1 << 16) | _kM1, this._9L1)
};
/*
* Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.
* @function
* @param {!Long|number|string} multiplier Multiplier
* @returns {!Long} Product
*/
_xL1._xN = _xL1._pM1;
/*
* Returns this Long divided by the specified. The result is signed if this Long is signed or
* unsigned if this Long is unsigned.
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Quotient
*/
_xL1._sM1 = function _sM1(_tM1) {
if (!_aL1(_tM1)) _tM1 = _rL1(_tM1);
if (_tM1._zL1()) throw Error('division by zero');
if (_5L1) {
if (!this._9L1 && this._c61 === -0x80000000 && _tM1._9Z === -1 && _tM1._c61 === -1) {
return this
}
var _9Z = (this._9L1 ? _5L1._uM1 : _5L1._vM1)(this._9Z, this._c61, _tM1._9Z, _tM1._c61);
return _fL1(_9Z, _5L1._rM1(), this._9L1)
}
if (this._zL1()) return this._9L1 ? _hL1 : ZERO;
var _wM1, _EL1, _Cf;
if (!this._9L1) {
if (this._BL1(MIN_VALUE)) {
if (_tM1._BL1(ONE) || _tM1._BL1(_wL1)) return MIN_VALUE;
else if (_tM1._BL1(MIN_VALUE)) return ONE;
else {
var _xM1 = this._yM1(1);
_wM1 = _xM1._Ey(_tM1)._zM1(1);
if (_wM1._BL1(ZERO)) {
return _tM1._AL1() ? ONE : _wL1
} else {
_EL1 = this.sub(_tM1._xN(_wM1));
_Cf = _wM1.add(_EL1._Ey(_tM1));
return _Cf
}
}
} else if (_tM1._BL1(MIN_VALUE)) return this._9L1 ? _hL1 : ZERO;
if (this._AL1()) {
if (_tM1._AL1()) return this._lL1()._Ey(_tM1._lL1());
return this._lL1()._Ey(_tM1)._lL1()
} else if (_tM1._AL1()) return this._Ey(_tM1._lL1())._lL1();
_Cf = ZERO
} else {
if (!_tM1._9L1) _tM1 = _tM1._AM1();
if (_tM1._1M1(this)) return _hL1;
if (_tM1._1M1(this._BM1(1))) return _vL1;
_Cf = _hL1
}
_EL1 = this;
while (_EL1._3M1(_tM1)) {
_wM1 = Math.max(1,
Math.floor(_EL1._kA() / _tM1._kA()));
var _9N = Math.ceil(Math.log(_wM1) / Math.LN2),
_CB1 = (_9N <= 48) ? 1 : _nL1(2, _9N - 48),
_CM1 = _gL1(_wM1),
_DM1 = _CM1._xN(_tM1);
while (_DM1._AL1() || _DM1._1M1(_EL1)) {
_wM1 -= _CB1;
_CM1 = _gL1(_wM1, this._9L1);
_DM1 = _CM1._xN(_tM1)
}
if (_CM1._zL1()) _CM1 = ONE;
_Cf = _Cf.add(_CM1);
_EL1 = _EL1.sub(_DM1)
}
return _Cf
};
/*
* Returns this Long divided by the specified. This is an alias of {@link Long#divide}.
* @function
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Quotient
*/
_xL1._Ey = _xL1._sM1;
/*
* Returns this Long modulo the specified.
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Remainder
*/
_xL1._EM1 = function _EM1(_tM1) {
if (!_aL1(_tM1)) _tM1 = _rL1(_tM1);
if (_5L1) {
var _9Z = (this._9L1 ? _5L1._FM1 : _5L1._GM1)(this._9Z, this._c61, _tM1._9Z, _tM1._c61);
return _fL1(_9Z, _5L1._rM1(), this._9L1)
}
return this.sub(this._Ey(_tM1)._xN(_tM1))
};
/*
* Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
* @function
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Remainder
*/
_xL1._yN = _xL1._EM1;
/*
* Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
* @function
* @param {!Long|number|string} divisor Divisor
* @returns {!Long} Remainder
*/
_xL1._EL1 = _xL1._EM1;
/*
* Returns the bitwise NOT of this Long.
* @returns {!Long}
*/
_xL1._9M1 = function _9M1() {
return _fL1(~this._9Z, ~this._c61, this._9L1)
};
/*
* Returns the bitwise AND of this Long and the specified.
* @param {!Long|number|string} other Other Long
* @returns {!Long}
*/
_xL1._BN = function _BN(_wb1) {
if (!_aL1(_wb1)) _wb1 = _rL1(_wb1);
return _fL1(this._9Z & _wb1._9Z, this._c61 & _wb1._c61, this._9L1)
};
/*
* Returns the bitwise OR of this Long and the specified.
* @param {!Long|number|string} other Other Long
* @returns {!Long}
*/
_xL1._CN = function _CN(_wb1) {
if (!_aL1(_wb1)) _wb1 = _rL1(_wb1);
return _fL1(this._9Z | _wb1._9Z, this._c61 | _wb1._c61, this._9L1)
};
/*
* Returns the bitwise XOR of this Long and the given one.
* @param {!Long|number|string} other Other Long
* @returns {!Long}
*/
_xL1._DN = function _DN(_wb1) {
if (!_aL1(_wb1)) _wb1 = _rL1(_wb1);
return _fL1(this._9Z ^ _wb1._9Z, this._c61 ^ _wb1._c61, this._9L1)
};
/*
* Returns this Long with bits shifted to the left by the given amount.
* @param {number|!Long} numBits Number of bits
* @returns {!Long} Shifted Long
*/
_xL1._EN = function _EN(_ZJ1) {
if (_aL1(_ZJ1)) _ZJ1 = _ZJ1._yL1();
if ((_ZJ1 &= 63) === 0) return this;
else if (_ZJ1 < 32) return _fL1(this._9Z << _ZJ1, (this._c61 << _ZJ1) | (this._9Z >>> (32 - _ZJ1)), this._9L1);
else return _fL1(0, this._9Z << (_ZJ1 - 32), this._9L1)
};
/*
* Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.
* @function
* @param {number|!Long} numBits Number of bits
* @returns {!Long} Shifted Long
*/
_xL1._zM1 = _xL1._EN;
/*
* Returns this Long with bits arithmetically shifted to the right by the given amount.
* @param {number|!Long} numBits Number of bits
* @returns {!Long} Shifted Long
*/
_xL1._FN = function _FN(_ZJ1) {
if (_aL1(_ZJ1)) _ZJ1 = _ZJ1._yL1();
if ((_ZJ1 &= 63) === 0) return this;
else if (_ZJ1 < 32) return _fL1((this._9Z >>> _ZJ1) | (this._c61 << (32 - _ZJ1)), this._c61 >> _ZJ1, this._9L1);
else return _fL1(this._c61 >> (_ZJ1 - 32), this._c61 >= 0 ? 0 : -1, this._9L1)
};
/*
* Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.
* @function
* @param {number|!Long} numBits Number of bits
* @returns {!Long} Shifted Long
*/
_xL1._yM1 = _xL1._FN;
/*
* Returns this Long with bits logically shifted to the right by the given amount.
* @param {number|!Long} numBits Number of bits
* @returns {!Long} Shifted Long
*/
_xL1._HM1 = function _HM1(_ZJ1) {
if (_aL1(_ZJ1)) _ZJ1 = _ZJ1._yL1();
_ZJ1 &= 63;
if (_ZJ1 === 0) return this;
else {
var _c61 = this._c61;
if (_ZJ1 < 32) {
var _9Z = this._9Z;
return _fL1((_9Z >>> _ZJ1) | (_c61 << (32 - _ZJ1)), _c61 >>> _ZJ1, this._9L1)
} else if (_ZJ1 === 32) return _fL1(_c61, 0, this._9L1);
else return _fL1(_c61 >>> (_ZJ1 - 32), 0, this._9L1)
}
};
/*
* Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
* @function
* @param {number|!Long} numBits Number of bits
* @returns {!Long} Shifted Long
*/
_xL1._BM1 = _xL1._HM1;
/*
* Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
* @function
* @param {number|!Long} numBits Number of bits
* @returns {!Long} Shifted Long
*/
_xL1._IM1 = _xL1._HM1;
/*
* Converts this Long to signed.
* @returns {!Long} Signed long
*/
_xL1._JM1 = function _JM1() {
if (!this._9L1) return this;
return _fL1(this._9Z, this._c61, false)
};
/*
* Converts this Long to unsigned.
* @returns {!Long} Unsigned long
*/
_xL1._AM1 = function _AM1() {
if (this._9L1) return this;
return _fL1(this._9Z, this._c61, true)
};
/*
* Converts this Long to its byte representation.
* @param {boolean=} le Whether little or big endian, defaults to big endian
* @returns {!Array.} Byte representation
*/
_xL1._KM1 = function _KM1(__L1) {
return __L1 ? this._LM1() : this._MM1()
};
/*
* Converts this Long to its little endian byte representation.
* @returns {!Array.} Little endian byte representation
*/
_xL1._LM1 = function _LM1() {
var _8Z = this._c61,
_i61 = this._9Z;
return [_i61 & 0xff, _i61 >>> 8 & 0xff, _i61 >>> 16 & 0xff, _i61 >>> 24, _8Z & 0xff, _8Z >>> 8 & 0xff, _8Z >>> 16 & 0xff, _8Z >>> 24]
};
/*
* Converts this Long to its big endian byte representation.
* @returns {!Array.} Big endian byte representation
*/
_xL1._MM1 = function _MM1() {
var _8Z = this._c61,
_i61 = this._9Z;
return [_8Z >>> 24, _8Z >>> 16 & 0xff, _8Z >>> 8 & 0xff, _8Z & 0xff, _i61 >>> 24, _i61 >>> 16 & 0xff, _i61 >>> 8 & 0xff, _i61 & 0xff]
};
/*
* Creates a Long from its byte representation.
* @param {!Array.} bytes Byte representation
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @param {boolean=} le Whether little or big endian, defaults to big endian
* @returns {Long} The corresponding Long value
*/
Long._NM1 = function _NM1(_OM1,
_9L1, __L1) {
return __L1 ? Long._PM1(_OM1, _9L1) : Long._QM1(_OM1, _9L1)
};
/*
* Creates a Long from its little endian byte representation.
* @param {!Array.} bytes Little endian byte representation
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @returns {Long} The corresponding Long value
*/
Long._PM1 = function _PM1(_OM1, _9L1) {
return new Long(_OM1[0] | _OM1[1] << 8 | _OM1[2] << 16 | _OM1[3] << 24, _OM1[4] | _OM1[5] << 8 | _OM1[6] << 16 | _OM1[7] << 24, _9L1)
};
/*
* Creates a Long from its big endian byte representation.
* @param {!Array.} bytes Big endian byte representation
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @returns {Long} The corresponding Long value
*/
Long._QM1 = function _QM1(_OM1,
_9L1) {
return new Long(_OM1[4] << 24 | _OM1[5] << 16 | _OM1[6] << 8 | _OM1[7], _OM1[0] << 24 | _OM1[1] << 16 | _OM1[2] << 8 | _OM1[3], _9L1)
};
function _RM1(color) {
return (((color._79 * 255) & 0xff) << 0) | (((color._89 * 255) & 0xff) << 8) | (((color._99 * 255) & 0xff) << 16)
} /*@this {yyPhysicsDebugDraw} */
function _SM1(vertices, vertexCount, color) {
_um(_RM1(color));
var scale = 1.0 / this._TM1._BS;
for (var _3b = 0; _3b < vertexCount; ++_3b) {
var _UM1 = vertices[_3b];
var _VM1 = vertices[(_3b + 1) % vertexCount];
__e(_UM1.x * scale, _UM1.y * scale, _VM1.x * scale, _VM1.y * scale);
}
} /*@this {yyPhysicsDebugDraw} */
function _WM1(vertices,
vertexCount, color) {
_um(_RM1(color));
var scale = 1.0 / this._TM1._BS;
var _UM1 = vertices[0];
for (var _3b = 2; _3b < vertexCount; ++_3b) {
var _VM1 = vertices[_3b - 1];
var _XM1 = vertices[_3b];
_6F(_UM1.x * scale, _UM1.y * scale, _VM1.x * scale, _VM1.y * scale, _XM1.x * scale, _XM1.y * scale, false)
}
} /*@this {yyPhysicsDebugDraw} */
function _YM1(_u61, _v61, color) {
_um(_RM1(color));
var scale = 1.0 / this._TM1._BS;
_wF((_u61.x - _v61) * scale, (_u61.y - _v61) * scale, (_u61.x + _v61) * scale, (_u61.y + _v61) * scale, true)
} /*@this {yyPhysicsDebugDraw} */
function _ZM1(_u61, _v61,
_0o, color) {
_um(_RM1(color));
var scale = 1.0 / this._TM1._BS;
_wF((_u61.x - _v61) * scale, (_u61.y - _v61) * scale, (_u61.x + _v61) * scale, (_u61.y + _v61) * scale, false)
} /*@this {yyPhysicsDebugDraw} */
function __M1(__n, _y61, color) {
_um(_RM1(color));
var scale = 1.0 / this._TM1._BS;
__e(__n.x * scale, __n.y * scale, _y61.x * scale, _y61.y * scale)
} /*@this {yyPhysicsDebugDraw} */
function _0N1(_v51) {
var _1N1 = 0.4;
var scale = 1.0 / this._TM1._BS;
var __n = _v51._gE,
_y61 = new _2N1._3N1();
_y61.x = __n.x + _1N1 * _v51._qC._s51().x;
_y61.y = __n.y + _1N1 * _v51._qC._s51().y;
_um(_4N1);
__e(__n.x * scale, __n.y * scale, _y61.x * scale, _y61.y * scale);
_y61.x = __n.x + _1N1 * _v51._qC._t51().x;
_y61.y = __n.y + _1N1 * _v51._qC._t51().y;
_um(_5N1);
__e(__n.x * scale, __n.y * scale, _y61.x * scale, _y61.y * scale)
} /*@this {yyPhysicsDebugDraw} */
function _6N1(_B61, _v61, _C61, _Jc) {
for (var _3b = 0; _3b < _Jc; _3b++) {
var scale = 1.0 / this._TM1._BS;
_um(((_C61[_3b]._79 & 0xff) << 0) | ((_C61[_3b]._89 & 0xff) << 8) | ((_C61[_3b]._99 & 0xff) << 16));
_wF((_B61[_3b].x - _v61) * scale, (_B61[_3b].y - _v61) * scale, (_B61[_3b].x + _v61) * scale, (_B61[_3b].y + _v61) * scale,
true)
}
} /*@constructor */
function _5S() {
this._ug1 = 0;
this._vg1 = 0;
this._7N1 = false;
this._8N1 = true;
this._9N1 = false;
this._aN1 = new _2N1._bN1();
this._E71 = null
};
_5S.prototype._zS = function (_Hn) {
this._E71 = null;
this._aN1._f71 = new _2N1._cN1();
this._aN1._f71._V61 = _Hn
};;;
_5S.prototype._DS = function () {
this._E71 = [];
this._aN1._f71 = new _2N1._dN1()
};;;;
_5S.prototype._HS = function (_ba, _ca) {
var vertexCount = this._E71.length;
this._E71[vertexCount] = new _2N1._3N1(_ba, _ca)
};;
_5S.prototype._eN1 = function () {
if (this._E71 === null || this._E71 === undefined) {
return true;
}
if (this._aN1._f71._VH === _2N1._fN1._a71) {
if (this._E71.length > 2) {
this._aN1._f71._Yl(this._E71, this._E71.length);
return true
}
} else if (this._aN1._f71._VH === _2N1._fN1._b71) {
if (this._9N1) {
if (this._E71.length >= 3) {
this._aN1._f71._L71(this._E71, this._E71.length);
return true
}
} else {
if (this._E71.length >= 2) {
this._aN1._f71._M71(this._E71, this._E71.length);
return true
}
}
}
return false
};;
_5S.prototype._lS = function (_kS) {
this._aN1._Lq._8i1 = _kS
};;
_5S.prototype._iS = function (_hS) {
this._aN1._oz = _hS
};;
_5S.prototype._fS = function (_eS) {
this._aN1._9i1 = _eS
};;
_5S.prototype._cS = function (_bS) {
this._aN1._471 = _bS
};;
_5S.prototype._oS = function (_gN1) {
this._aN1._ai1 = _gN1
};;
_5S.prototype._rS = function (_qS) {
this._ug1 = _qS
};;
_5S.prototype._tS = function (_qS) {
this._vg1 = _qS
};;
_5S.prototype._tS = function (_qS) {
this._vg1 = _qS
};;
_5S.prototype._wS = function (_vS) {
this._8N1 = _vS
};;
_5S.prototype._9S = function () {
this._7N1 = true
};;
var _hN1 = 0,
_iN1 = 1,
_jN1 = 2,
_kN1 = 3,
_lN1 = 4,
_mN1 = 5,
_nN1 = 6,
_oN1 = 7,
_pN1 = 8,
_qN1 = 9,
_rN1 = 10,
_sN1 = 11,
_tN1 = 12,
_uN1 = 13,
_vN1 = 14,
_wN1 = 15,
_xN1 = 16,
_yN1 = 17,
_zN1 = 18,
_AN1 = 19,
_BN1 = 20,
_CN1 = 21,
_DN1 = 22,
_EN1 = 23,
_FN1 = 24; /*@constructor */
function _GN1(_HN1) {
this._IN1 = _HN1
};
_GN1.prototype._7u1 = function (_JN1) {
if ((this._IN1 instanceof _2N1._KN1) || (this._IN1 instanceof _2N1._LN1) || (this._IN1 instanceof _2N1._MN1)) {
this._IN1.__k1()._wS(true);
this._IN1._0l1()._wS(true);
this._IN1._7u1(_JN1)
}
};;;; /*@constructor */
function _NN1(_ON1, _PN1, _m9, _n9) {
this._QN1 = _ON1;
this._RN1 = _PN1;
this._SN1 = new _2N1._3N1(_m9, _n9);
this._TN1 = []
};
_NN1.prototype._YS = function (_UN1, _VN1, _WN1, _XN1) {
this._QN1._mh1(new _2N1._3N1(_WN1,
_XN1), new _2N1._3N1(_UN1, _VN1), true)
};;
_NN1.prototype._VS = function (_UN1, _VN1, _WN1, _XN1) {
this._QN1._VS(new _2N1._3N1(_WN1, _XN1), new _2N1._3N1(_UN1, _VN1), true)
};;
_NN1.prototype._4T = function (_YN1, _ZN1, __N1, _0O1) {
var _1O1 = this._QN1._th1(new _2N1._3N1(__N1, _0O1));
var _2O1 = this._QN1._sh1(new _2N1._3N1(_YN1, _ZN1));
this._QN1._VS(_1O1, _2O1, true)
};;
_NN1.prototype._7T = function (_YN1, _ZN1, __N1, _0O1) {
var _1O1 = this._QN1._th1(new _2N1._3N1(__N1, _0O1));
var _2O1 = this._QN1._sh1(new _2N1._3N1(_YN1, _ZN1));
this._QN1._mh1(_1O1, _2O1,
true)
};;
_NN1.prototype._9T = function (_8T) {
this._QN1._9T(_8T, true)
};;
_NN1.prototype._bT = function (_aT) {
this._QN1._bT(_aT, true)
};;
_NN1.prototype._gT = function (_cT, _3O1, _4O1, _fT) {
var _371 = new _2N1._5O1();
_371._S61 = _cT;
_371._T61 = _fT;
_371._u61 = new _2N1._3N1(_3O1, _4O1);
this._QN1._rh1(_371)
};;
_NN1.prototype._6O1 = function (_7O1) {
var position = this._QN1._ZR();
this._QN1._ah1(position, (_7O1 * Math.PI) / 180.0);
this._QN1._wS(true)
};;
_NN1.prototype._8O1 = function (_Al) {
var angle = this._QN1._r51();
var _1f = this._QN1._ZR().y;
this._QN1._ah1(new _2N1._3N1(_Al,
_1f), angle);
this._QN1._wS(true)
};;
_NN1.prototype._9O1 = function (_Al) {
var angle = this._QN1._r51();
var _0f = this._QN1._ZR().x;
this._QN1._ah1(new _2N1._3N1(_0f, _Al), angle);
this._QN1._wS(true)
};;
_NN1.prototype._gh1 = function (_aO1) {
this._QN1._gh1((_aO1 * Math.PI) / 180.0);
this._QN1._wS(true)
};;
_NN1.prototype._bO1 = function (_cO1) {
var _dO1 = this._QN1._fh1();
this._QN1._eh1(new _2N1._3N1(_cO1, _dO1.y));
this._QN1._wS(true)
};;
_NN1.prototype._eO1 = function (_cO1) {
var _dO1 = this._QN1._fh1();
this._QN1._eh1(new _2N1._3N1(_dO1.x, _cO1));
this._QN1._wS(true)
};;
_NN1.prototype._Lh1 = function (_fO1) {
this._QN1._Lh1(_fO1)
};;
_NN1.prototype._Th1 = function (_gO1) {
this._QN1._Th1(_gO1)
};;
_NN1.prototype._Rh1 = function (_hO1) {
this._QN1._Rh1(_hO1)
};;
_NN1.prototype._hT = function (_iO1) {
if (this._QN1) {
this._jO1(_iO1);
this._kO1(_iO1)
}
};;
_NN1.prototype._jO1 = function (_lO1) {
var _8S = this._QN1._Vh1();
while ((_8S != null) && (_8S != undefined)) {
var _f71 = _8S._hi1();
var _mO1 = this._QN1._ZR();
if (_f71 instanceof _2N1._cN1) {
_wF((_mO1.x - _f71._V61) * _lO1, (_mO1.y - _f71._V61) * _lO1, (_mO1.x + _f71._V61) * _lO1,
(_mO1.y + _f71._V61) * _lO1, true)
} else if (_f71 instanceof _2N1._dN1) {
var _nO1 = Math.sin(this._QN1._r51());
var _oO1 = Math.cos(this._QN1._r51());
for (var _3b = 0; _3b < _f71._F71; ++_3b) {
var _UM1 = _f71._E71[_3b];
var _VM1 = _f71._E71[(_3b + 1) % _f71._F71];
__e((_mO1.x + ((_UM1.x * _oO1) - (_UM1.y * _nO1))) * _lO1, (_mO1.y + ((_UM1.x * _nO1) + (_UM1.y * _oO1))) * _lO1, (_mO1.x + ((_VM1.x * _oO1) - (_VM1.y * _nO1))) * _lO1, (_mO1.y + ((_VM1.x * _nO1) + (_VM1.y * _oO1))) * _lO1)
}
}
_8S = _8S._rg1
}
};;
_NN1.prototype._kO1 = function (_lO1) {
var _2i1 = this._QN1._og1;
while ((_2i1 != null) && (_2i1 != undefined)) {
var _3i1 = _2i1._3i1;
if (_3i1 instanceof _2N1._KN1) {
this._pO1(_3i1, _lO1)
} else if (_3i1 instanceof _2N1._LN1) {
this._qO1(_3i1, _lO1)
} else if (_3i1 instanceof _2N1._rO1) {
this._sO1(_3i1, _lO1)
} else if (_3i1 instanceof _2N1._tO1) {
this._uO1(_3i1, _lO1)
} else if (_3i1 instanceof _2N1._vO1) {
if (_3i1._wO1 != null) {
this._pO1(_3i1._wO1, _lO1)
}
if (_3i1._xO1 != null) {
this._pO1(_3i1._xO1, _lO1)
}
if (_3i1._yO1 != null) {
this._qO1(_3i1._yO1, _lO1)
}
if (_3i1._zO1 != null) {
this._qO1(_3i1._zO1, _lO1)
}
}
_2i1 = _2i1._rg1
}
};;
_NN1.prototype._sO1 = function (_AO1, _lO1) {
var _Mu1 = _AO1._1l1();
var _Nu1 = _AO1._2l1();
__e(_Mu1.x * _lO1, _Mu1.y * _lO1, _Nu1.x * _lO1, _Nu1.y * _lO1)
};;
_NN1.prototype._pO1 = function (_AO1, _lO1) {
var anchor = _AO1._1l1();
__e((anchor.x * _lO1) - 2, (anchor.y * _lO1) - 2, (anchor.x * _lO1) + 2, (anchor.y * _lO1) + 2);
__e((anchor.x * _lO1) - 2, (anchor.y * _lO1) + 2, (anchor.x * _lO1) + 2, (anchor.y * _lO1) - 2)
};;
_NN1.prototype._qO1 = function (_AO1, _lO1) {
var _Mu1 = _AO1._1l1();
var _Nu1 = this._QN1._ZR();
__e(_Mu1.x * _lO1, _Mu1.y * _lO1, _Nu1.x * _lO1, _Nu1.y * _lO1)
};;
_NN1.prototype._uO1 = function (_AO1, _lO1) {
var anchor,
_BO1;
if (_AO1._CO1() == this._QN1) {
anchor = _AO1._1l1();
_BO1 = _AO1._6l1()
} else {
anchor = _AO1._2l1();
_BO1 = _AO1._7l1()
}
__e(anchor.x * _lO1, anchor.y * _lO1, _BO1.x * _lO1, _BO1.y * _lO1);
__e(_AO1._6l1().x * _lO1, _AO1._6l1().y * _lO1, _AO1._7l1().x * _lO1, _AO1._7l1().y * _lO1)
};;
_NN1.prototype._DO1 = function (_EO1) {
for (var _i2 = 0; _i2 < this._TN1.length; _i2++) {
if (this._TN1[_i2] == null || this._TN1[_i2] == undefined) {
this._TN1[_i2] = _EO1;
return _i2
}
}
return (this._TN1.push(_EO1) - 1)
};;
_NN1.prototype._FO1 = function (_jT) {
if (this._TN1[_jT]) {
this._QN1._2h1(this._TN1[_jT]);
this._TN1[_jT] = undefined
}
};;
_NN1.prototype._kT = function (_jT) {
if (this._TN1[_jT]) {
return this._TN1[_jT]._kT()
}
return 0.0
};;
_NN1.prototype._lT = function (_jT) {
if (this._TN1[_jT]) {
return this._TN1[_jT]._lT()
}
return 0.0
};;
_NN1.prototype._mT = function (_jT) {
if (this._TN1[_jT]) {
return this._TN1[_jT]._mT()
}
return 0.0
};;
_NN1.prototype._iS = function (_jT, _z8) {
if (this._TN1[_jT]) {
this._TN1[_jT]._iS(_z8)
}
};;
_NN1.prototype._cS = function (_jT, _z8) {
if (this._TN1[_jT]) {
this._TN1[_jT]._cS(_z8);
this._QN1.__g1()
}
};;
_NN1.prototype._fS = function (_jT,
_z8) {
if (this._TN1[_jT]) {
this._TN1[_jT]._fS(_z8)
}
};;
var _GO1 = 10,
_HO1 = 32,
_IO1 = (1 << 0),
_JO1 = (1 << 1),
_KO1 = (1 << 2),
_LO1 = (1 << 3),
_MO1 = (1 << 4),
_NO1 = (1 << 5),
_OO1 = (1 << 6);
var _2N1 = null;
function _PO1() {
if (_2N1 === null) {
var _mB = window["b2"];
_2N1 = {};
_2N1.version = _mB["version"];
_2N1._3N1 = _mB["Vec2"];
_2N1._QO1 = _mB["Vec3"];
_2N1._RO1 = _mB["Mat22"];
_2N1._SO1 = _mB["Mat33"];
_2N1._TO1 = _mB["Rot"];
_2N1._UO1 = _mB["Transform"];
_2N1._VO1 = _mB["Sweep"];
_2N1._WO1 = _mB["Dot_v2_v2"];
_2N1._XO1 = _mB["Cross_v2_v2"];
_2N1._YO1 = _mB["Cross_v2_f"];
_2N1._ZO1 = _mB["Cross_f_v2"];
_2N1.__O1 = _mB["Mul_m22_v2"];
_2N1._0P1 = _mB["MulT_m22_v2"];
_2N1._1P1 = _mB["Distance"];
_2N1._2P1 = _mB["DistanceSquared"];
_2N1._3P1 = _mB["Dot_v3_v3"];
_2N1._4P1 = _mB["Cross_v3_v3"];
_2N1._5P1 = _mB["Mul_m22_m22"];
_2N1._6P1 = _mB["MulT_m22_m22"];
_2N1._7P1 = _mB["Mul_m33_v3"];
_2N1._8P1 = _mB["Mul22_m33_v2"];
_2N1._9P1 = _mB["Mul_r_r"];
_2N1._aP1 = _mB["MulT_r_r"];
_2N1._bP1 = _mB["Mul_r_v2"];
_2N1._cP1 = _mB["MulT_r_v2"];
_2N1._dP1 = _mB["Mul_t_v2"];
_2N1._eP1 = _mB["Min_v2"];
_2N1._fP1 = _mB["Max_v2"];
_2N1._gP1 = _mB["Clamp"];
_2N1._hP1 = _mB["MulT_t_v2"];
_2N1._iP1 = _mB["Mul_t_t"];
_2N1._jP1 = _mB["MulT_t_t"];
_2N1._kP1 = _mB["Clamp_v2"];
_2N1._lP1 = _mB["NextPowerOfTwo"];
_2N1._mP1 = _mB["Abs_v2"];
_2N1._nP1 = _mB["Abs_m22"];
_2N1._oP1 = _mB["IsPowerOfTwo"];
_2N1._pP1 = _mB["RandomFloat"];
_2N1._qP1 = _mB["Timer"];
_2N1._b9 = _mB["Color"];
_2N1._cd = _mB["Draw"];
_2N1._rP1 = _mB["ContactID"];
_2N1._sP1 = _mB["ManifoldPoint"];
_2N1._tP1 = _mB["Manifold"];
_2N1._uP1 = _mB["WorldManifold"];
_2N1._vP1 = _mB["GetPointStates"];
_2N1._wP1 = _mB["ClipVertex"];
_2N1._xP1 = _mB["RayCastInput"];
_2N1._yP1 = _mB["RayCastOutput"];
_2N1._zP1 = _mB["AABB"];
_2N1._AP1 = _mB["CollideCircles"];
_2N1._BP1 = _mB["CollidePolygonAndCircle"];
_2N1._CP1 = _mB["FindMaxSeparation"];
_2N1._DP1 = _mB["FindIncidentEdge"];
_2N1._EP1 = _mB["CollidePolygons"];
_2N1._FP1 = _mB["CollideEdgeAndCircle"];
_2N1._GP1 = _mB["EPAxis"];
_2N1._HP1 = _mB["TempPolygon"];
_2N1._IP1 = _mB["ReferenceFace"];
_2N1._JP1 = _mB["EPCollider"];
_2N1._KP1 = _mB["CollideEdgeAndPolygon"];
_2N1._LP1 = _mB["ClipSegmentToLine"];
_2N1._MP1 = _mB["TestShapeOverlap"];
_2N1._iT = _mB["TestOverlap"];
_2N1._fN1 = _mB["Shape"];
_2N1._5O1 = _mB["MassData"];
_2N1._cN1 = _mB["CircleShape"];
_2N1._NP1 = _mB["EdgeShape"];
_2N1._OP1 = _mB["ChainShape"];
_2N1._dN1 = _mB["PolygonShape"];
_2N1._Qn1 = _mB["Pair"];
_2N1._PP1 = _mB["PairLessThan"];
_2N1._QP1 = _mB["BroadPhase"];
_2N1._RP1 = _mB["DistanceProxy"];
_2N1._SP1 = _mB["SimplexCache"];
_2N1._TP1 = _mB["DistanceInput"];
_2N1._UP1 = _mB["DistanceOutput"];
_2N1._VP1 = _mB["SimplexVertex"];
_2N1._WP1 = _mB["Simplex"];
_2N1._XP1 = _mB["DistanceFunc"];
_2N1._YP1 = _mB["TreeNode"];
_2N1._ZP1 = _mB["DynamicTree"];
_2N1.__P1 = _mB["TOIInput"];
_2N1._0Q1 = _mB["TOIOutput"];
_2N1._1Q1 = _mB["SeparationFunction"];
_2N1._2Q1 = _mB["TimeOfImpact"];
_2N1._3Q1 = _mB["BodyDef"];
_2N1._4Q1 = _mB["Body"];
_2N1._5Q1 = _mB["Filter"];
_2N1._bN1 = _mB["FixtureDef"];
_2N1._6Q1 = _mB["Fixture"];
_2N1._7Q1 = _mB["DestructionListener"];
_2N1._8Q1 = _mB["ContactFilter"];
_2N1._9Q1 = _mB["ContactImpulse"];
_2N1._aQ1 = _mB["ContactListener"];
_2N1._i91 = _mB["QueryCallback"];
_2N1._se1 = _mB["RayCastCallback"];
_2N1._bQ1 = _mB["TimeStep"];
_2N1._cQ1 = _mB["Position"];
_2N1._dQ1 = _mB["Velocity"];
_2N1._eQ1 = _mB["SolverData"];
_2N1._fQ1 = _mB["World"];
_2N1._gQ1 = _mB["MixFriction"];
_2N1._hQ1 = _mB["MixRestitution"];
_2N1._iQ1 = _mB["ContactRegister"];
_2N1._jQ1 = _mB["ContactEdge"];
_2N1._kQ1 = _mB["Contact"];
_2N1._lQ1 = _mB["CircleContact"];
_2N1._mQ1 = _mB["PolygonContact"];
_2N1._nQ1 = _mB["ChainAndCircleContact"];
_2N1._oQ1 = _mB["ChainAndPolygonContact"];
_2N1._pQ1 = _mB["EdgeAndCircleContact"];
_2N1._qQ1 = _mB["EdgeAndPolygonContact"];
_2N1._rQ1 = _mB["PolygonAndCircleContact"];
_2N1._sQ1 = _mB["defaultFilter"];
_2N1._tQ1 = _mB["defaultListener"];
_2N1._uQ1 = _mB["ContactManager"];
_2N1._vQ1 = _mB["VelocityConstraintPoint"];
_2N1._wQ1 = _mB["ContactPositionConstraint"];
_2N1._xQ1 = _mB["ContactVelocityConstraint"];
_2N1._yQ1 = _mB["PositionSolverManifold"];
_2N1._zQ1 = _mB["ContactSolverDef"];
_2N1._AQ1 = _mB["ContactSolver"];
_2N1._BQ1 = _mB["Island"];
_2N1._CQ1 = _mB["Jacobian"];
_2N1._DQ1 = _mB["JointEdge"];
_2N1._EQ1 = _mB["JointDef"];
_2N1._FQ1 = _mB["Joint"];
_2N1._GQ1 = _mB["RevoluteJointDef"];
_2N1._KN1 = _mB["RevoluteJoint"];
_2N1._HQ1 = _mB["MouseJointDef"];
_2N1._IQ1 = _mB["MouseJoint"];
_2N1._JQ1 = _mB["DistanceJointDef"];
_2N1._rO1 = _mB["DistanceJoint"];
_2N1._KQ1 = _mB["PrismaticJointDef"];
_2N1._LN1 = _mB["PrismaticJoint"];
_2N1._LQ1 = _mB["FrictionJointDef"];
_2N1._MQ1 = _mB["FrictionJoint"];
_2N1._NQ1 = _mB["WeldJointDef"];
_2N1._OQ1 = _mB["WeldJoint"];
_2N1._PQ1 = _mB["WheelJointDef"];
_2N1._MN1 = _mB["WheelJoint"];
_2N1._QQ1 = _mB["GearJointDef"];
_2N1._vO1 = _mB["GearJoint"];
_2N1._RQ1 = _mB["MotorJointDef"];
_2N1._SQ1 = _mB["MotorJoint"];
_2N1._TQ1 = _mB["PulleyJointDef"];
_2N1._tO1 = _mB["PulleyJoint"];
_2N1._UQ1 = _mB["RopeJointDef"];
_2N1._VQ1 = _mB["RopeJoint"];
_2N1._WQ1 = _mB["RopeDef"];
_2N1._XQ1 = _mB["Rope"];
_2N1._YQ1 = _mB["maxManifoldPoints"];
_2N1._ZQ1 = _mB["maxPolygonVertices"];
_2N1.__Q1 = _mB["aabbExtension"];
_2N1._0R1 = _mB["aabbMultiplier"];
_2N1._1R1 = _mB["linearSlop"];
_2N1._2R1 = _mB["angularSlop"];
_2N1._3R1 = _mB["polygonRadius"];
_2N1._4R1 = _mB["maxSubSteps"];
_2N1._5R1 = _mB["maxTOIContacts"];
_2N1._6R1 = _mB["velocityThreshold"];
_2N1._7R1 = _mB["maxLinearCorrection"];
_2N1._8R1 = _mB["maxAngularCorrection"];
_2N1._9R1 = _mB["maxTranslation"];
_2N1._aR1 = _mB["maxTranslationSquared"];
_2N1._bR1 = _mB["maxRotation"];
_2N1._cR1 = _mB["maxRotationSquared"];
_2N1._dR1 = _mB["baumgarte"];
_2N1._eR1 = _mB["toiBaugarte"];
_2N1._fR1 = _mB["timeToSleep"];
_2N1._gR1 = _mB["linearSleepTolerance"];
_2N1._hR1 = _mB["angularSleepTolerance"];
_2N1._iR1 = _mB["epsilon"];
_2N1._jR1 = _mB["JsonSerializer"];
_2N1._kR1 = _mB["RUBELoader"];
_2N1._lR1 = _mB["Profiler"];
_2N1._mR1 = _mB["ParticleDef"];
_2N1._nR1 = _mB["ParticleColor"];
_2N1._oR1 = _mB["ParticleGroupDef"];
_2N1._pR1 = _mB["ParticleGroup"];
_2N1._qR1 = _mB["ParticleSystem"]
}
} /*@constructor */
function _rR1(_sR1) {
var _tq1 = new _2N1._uP1();
_sR1._sq1(_tq1);
this._tR1 = _sR1._5h1();
this._uR1 = _sR1._7h1();
this._vR1 = [];
this._wR1 = [];
this._vR1[0] = _sR1._rq1();
this._wR1[0] = _tq1
}; /*@constructor */
function _xR1(_yR1, _zR1, _AR1) {
this._BR1 = _yR1;
this._6i1 = _zR1;
this._7i1 = _AR1
}; /*@constructor */
function _CR1(_DR1, _ER1) {
_PO1();
if (_2N1 === null) {
_2N1 = window["b2"]
}
this._BS = _DR1;
this._FR1 = _ER1;
this._GR1 = _GO1;
this._pg1 = [];
this._HR1 = [];
this._IR1 = new _2N1._oR1();
this._Cj1 = null;
this._3D = false;
this._JR1 = [];
for (var _i2 = 0; _i2 < _HO1; _i2++) {
this._JR1[_i2] = new _xR1(-1,
0, 0)
}
var _pz = new _2N1._3N1(0, 10);
this._lg1 = new _2N1._fQ1(_pz);
this._KR1();
this._LR1();
this._A61 = _xc ? this._MR1 : this._NR1;
this._OR1 = _xc ? this._PR1 : this._QR1
};;;
_CR1.prototype._KR1 = function () {
var _9f = document.getElementById("canvas").getContext("2d");
if (_9f) {
this._Cj1 = new _2N1._cd();
this._Cj1._l61(_2N1._cd._D61 | _2N1._cd._E61);
this._Cj1._TM1 = this;
this._Cj1._r61 = _SM1;
this._Cj1._s61 = _WM1;
this._Cj1._t61 = _YM1;
this._Cj1._w61 = _ZM1;
this._Cj1._x61 = __M1;
this._Cj1._z61 = _0N1;
this._Cj1._A61 = _6N1;
this._lg1._Bj1(this._Cj1)
}
};;
_CR1.prototype._LR1 = function () {
var _RR1 = new _2N1._aQ1();
_RR1._SR1 = this;
_RR1._Hi1 = function (_3h1) {
if (_3h1._5h1()._ji1() || _3h1._7h1()._ji1()) {
this._SR1._TR1(_3h1)
}
};
_RR1._Ji1 = function (_3h1, _Ki1) {};
_RR1._Ii1 = function (_3h1) {};
_RR1._Li1 = function (_3h1, _UR1) {
this._SR1._TR1(_3h1)
};
this._lg1._zj1(_RR1)
};;
_CR1.prototype._TR1 = function (_sR1) {
for (var _3b = 0; _3b < this._pg1.length; _3b++) {
var _VR1 = this._pg1[_3b];
if ((_VR1._tR1 == _sR1._5h1() && _VR1._uR1 == _sR1._7h1()) || (_VR1._tR1 == _sR1._7h1() && _VR1._uR1 == _sR1._5h1())) {
var _tq1 = new _2N1._uP1();
_sR1._sq1(_tq1);
_VR1._vR1[_VR1._vR1.length] = _sR1._rq1();
_VR1._wR1[_VR1._wR1.length] = _tq1;
return
}
}
this._pg1[this._pg1.length] = new _rR1(_sR1)
};;
_CR1.prototype._WR1 = function (_eH) {
this._FR1 = _eH
};;;;
_CR1.prototype._pk1 = function (_XR1, _YR1) {
this._lg1._hj1.x = _XR1;
this._lg1._hj1.y = _YR1;
if ((_XR1 != 0.0) || (_YR1 != 0.0)) {
var _ZR1 = this._lg1._ck1();
while ((_ZR1 != null) && (_ZR1 != undefined)) {
if (_ZR1._W61() === _2N1._4Q1._Ag1) {
_ZR1._wS(true)
}
_ZR1 = _ZR1._Yh1()
}
}
};;
_CR1.prototype.__R1 = function () {
var _Dl = _q8._YG._Dl;
for (var index = 0; index < _Dl.length; index++) {
var _vn = _Dl[index];
if (_vn._yz >= 0) {
var _0S1 = _vn._US;
if (_0S1 !== null && _0S1 !== undefined) {
var _ZR1 = _0S1._QN1;
if (_ZR1._W61() !== _2N1._4Q1._Ag1) {
if (_vn._1S1()) {
_vn._Ca(_2S1, 0, _vn, _vn)
}
_ZR1._ah1(new _2N1._3N1(_vn.x * this._BS, _vn.y * this._BS), _ZR1._r51())
}
} else {
if (_vn._1S1()) {
_vn._Ca(_2S1, 0, _vn, _vn)
}
}
}
}
};;
_CR1.prototype._3S1 = function () {
var _4S1 = 1.0 / this._BS;
var _ZR1 = this._lg1._ck1();
while ((_ZR1 != null) && (_ZR1 != undefined)) {
var _vn = _ZR1._X81();
if ((_vn != null) && (_vn != undefined)) {
_vn._5S1(_ZR1);
var _Bl = _ZR1._ZR();
_vn._6S1 = _Bl.x * _4S1;
_vn._7S1 = _Bl.y * _4S1
}
_ZR1 = _ZR1._Yh1()
}
};;
_CR1.prototype._ck = function (_8S1) {
if (_8S1 <= 0) {
return
}
this.__R1();
if (this._3D == true) {
return
}
this._3S1();
var _9S1 = 1.0 / this._FR1;
var _aS1 = this._FR1 / _8S1;
var _bS1 = _aS1;
while (_bS1 > 0.0) {
var _cS1 = (_bS1 > 1.0) ? _9S1 : (_9S1 * _bS1);
this._lg1._Tj1(_cS1, this._GR1, this._GR1);
_bS1 -= 1.0
}
this._lg1._Xj1();
this._dS1();
this._eS1()
};;
_CR1.prototype._dS1 = function () {
var _4S1 = 1.0 / this._BS;
var _ZR1 = this._lg1._ck1();
while ((_ZR1 != null) && (_ZR1 != undefined)) {
var _vn = _ZR1._X81();
if ((_vn != null) && (_vn != undefined)) {
if (_vn._4H && _vn._US) {
this._Dj1(_vn._US);
_vn._US = null
} else {
_vn._5S1(_ZR1)
}
}
_ZR1 = _ZR1._Yh1()
}
};;
_CR1.prototype._eS1 = function () {
var _4S1 = 1.0 / this._BS;
for (var _i2 = 0; _i2 < this._pg1.length; _i2++) {
if (this._pg1[_i2]._tR1 && this._pg1[_i2]._uR1 && this._pg1[_i2]._tR1._oi1() && this._pg1[_i2]._uR1._oi1()) {
var _fS1 = this._pg1[_i2]._tR1._oi1()._X81();
var _gS1 = this._pg1[_i2]._uR1._oi1()._X81();
_fS1._hS1 = 0;
_fS1._iS1 = [];
_fS1._jS1 = [];
_fS1._kS1 = [];
_fS1._lS1 = [];
_gS1._hS1 = 0;
_gS1._iS1 = [];
_gS1._jS1 = [];
_gS1._kS1 = [];
_gS1._lS1 = [];
var _mS1 = 0;
for (var _nS1 = 0; _nS1 < this._pg1[_i2]._vR1.length; _nS1++) {
var _tq1 = this._pg1[_i2]._wR1[_nS1];
for (var _nb in _tq1._Ua1) {
if (!_tq1._Ua1.hasOwnProperty(_nb)) continue;
_fS1._iS1[_mS1] = _tq1._Ua1[_nb].x * _4S1;
_fS1._jS1[_mS1] = _tq1._Ua1[_nb].y * _4S1;
_fS1._kS1[_mS1] = _tq1._771.x;
_fS1._lS1[_mS1] = _tq1._771.y;
_gS1._iS1[_mS1] = _tq1._Ua1[_nb].x * _4S1;
_gS1._jS1[_mS1] = _tq1._Ua1[_nb].y * _4S1;
_gS1._kS1[_mS1] = _tq1._771.x;
_gS1._lS1[_mS1] = _tq1._771.y;
_fS1._hS1++;
_gS1._hS1++;
_mS1++
}
}
if (!_fS1._4H && !_gS1._4H) {
_fS1._Ca(_oS1, _gS1._kH, _fS1, _gS1);
_gS1._Ca(_oS1, _fS1._kH, _gS1, _fS1)
}
_fS1._hS1 = 0;
_fS1._iS1 = undefined;
_fS1._jS1 = undefined;
_fS1._kS1 = undefined;
_fS1._lS1 = undefined;
_gS1._hS1 = 0;
_gS1._iS1 = undefined;
_gS1._jS1 = undefined;
_gS1._kS1 = undefined;
_gS1._lS1 = undefined
}
}
this._pg1 = []
};;
_CR1.prototype._KS = function (_EO1, _pS1, _m9, _n9) {
var _IS = -1;
if (!_EO1._eN1()) {
return
}
var _qS1 = this._rS1(_pS1._kH);
if (_qS1 != -1) {
_EO1._aN1._Lq._6i1 = this._JR1[_qS1]._6i1;
_EO1._aN1._Lq._7i1 = this._JR1[_qS1]._7i1;
} else {
_EO1._aN1._Lq._6i1 = 0;
_EO1._aN1._Lq._7i1 = 0
}
var _sS1 = (_EO1._aN1._471 == 0) ? (_EO1._7N1 ? _2N1._4Q1._Ig1 : _2N1._4Q1._2g1) : _2N1._4Q1._Ag1;
var _tS1 = _pS1._US;
if (_pS1._US) {
var _ZR1 = _tS1._QN1;
var _8S = _ZR1._Vh1();
if ((_8S == null) || (_8S == undefined)) {
_ZR1._Fh1(_sS1)
}
var _8S = _ZR1._Ng1(_EO1._aN1);
_IS = _tS1._DO1(_8S)
} else {
var _uS1 = new _2N1._3Q1();
_uS1.type = _sS1;
_uS1.angle = -_pS1._55 * _lb / 180.0;
_uS1._5g1 = _EO1._ug1;
_uS1._6g1 = _EO1._vg1;
_uS1._8g1 = _EO1._8N1;
var _vS1 = _pS1._wS1(_uS1.angle, {
x: _m9,
y: _n9
});
_uS1.position.x = (_pS1.x - _vS1.x) * this._BS;
_uS1.position.y = (_pS1.y - _vS1.y) * this._BS;
_uS1._O81 = _pS1;
var _ZR1 = this._lg1._KS(_uS1);
var _8S = _ZR1._Ng1(_EO1._aN1);
_tS1 = new _NN1(_ZR1, _qS1, _m9, _n9);
_pS1._US = _tS1;
_pS1._5S1(_ZR1);
_IS = _tS1._DO1(_8S);
this._xS1()
}
return _IS
};;
_CR1.prototype._Dj1 = function (_yS1) {
this._lg1._Dj1(_yS1._QN1)
};;
_CR1.prototype._Gj1 = function (_zS1) {
this._lg1._Gj1(_zS1._IN1)
};;
_CR1.prototype._hT = function (_oJ1) {
if (this._Cj1 == null) {
return
}
var _AS1 = 0;
if (_oJ1 & _IO1) {
_AS1 = _AS1 | _2N1._cd._D61
}
if (_oJ1 & _JO1) {
_AS1 = _AS1 | _2N1._cd._E61
}
if (_oJ1 & _KO1) {
_AS1 = _AS1 | _2N1._cd._G61;
}
if (_oJ1 & _LO1) {
_AS1 = _AS1 | _2N1._cd._F61
}
if (_oJ1 & _OO1) {
_AS1 = _AS1 | _2N1._cd._N61
}
this._Cj1._l61(_AS1);
this._lg1._Yj1()
};;;;;;;;;;;
_CR1.prototype._BS1 = function (_yR1) {
for (var _3b = 0; _3b < _HO1; _3b++) {
if (this._JR1[_3b]._BR1 == _yR1) {
return _3b
}
}
return -1
};;
_CR1.prototype._CS1 = function (_yR1) {
var _DS1 = this._BS1(_yR1);
if (_DS1 != -1) {
return _DS1
}
for (var _3b = 0; _3b < _HO1; _3b++) {
if (this._JR1[_3b]._BR1 == -1) {
this._JR1[_3b]._BR1 = _yR1;
this._JR1[_3b]._6i1 = (1 << _3b);
this._JR1[_3b]._7i1 = 0;
return _3b
}
}
return -1
};;;
_CR1.prototype._ES1 = function (_yR1) {
var _FS1 = [];
for (var _GS1 in _HS1) {
if (!_HS1.hasOwnProperty(_GS1)) continue;
for (var _Eq1 in _HS1[_GS1]) {
if (!_HS1[_GS1].hasOwnProperty(_Eq1)) continue;
var _IS1 = -1;
if (_GS1 == _yR1) {
_IS1 = _Eq1
} else if (_Eq1 == _yR1) {
_IS1 = _GS1
}
if (_IS1 !== -1) {
_FS1[_FS1.length] = _IS1
}
}
}
return _FS1
};;
_CR1.prototype._JS1 = function (_Tl, _KS1) {
for (var _cz in _b8._LS1) {
if (!_b8._LS1.hasOwnProperty(_cz)) continue;
var _MS1 = _b8._LS1[_cz];
if (_MS1._FH === _Tl._HH) {
if (this._ES1(_MS1._HH).length !== 0) {
_KS1[_KS1.length] = _MS1._HH
}
this._JS1(_MS1, _KS1)
}
}
};;
_CR1.prototype._NS1 = function (_yR1) {
var _FS1 = this._ES1(_yR1);
var _OS1 = _yR1;
var _PS1 = _b8._ta(_yR1);
while ((_PS1._FH >= 0) && _b8._ta(_PS1._FH)) {
_PS1 = _b8._ta(_PS1._FH);
_FS1 = _FS1.concat(this._ES1(_PS1._HH))
}
for (var _3b = 0; _3b < _FS1.length; _3b++) {
var _QS1 = _FS1[_3b];
var _cz = _b8._ta(_QS1);
this._JS1(_cz, _FS1)
}
return _FS1
};;
_CR1.prototype._RS1 = function (_yR1, _PN1) {
var _FS1 = this._NS1(_yR1);
for (var _SS1 = 0; _SS1 < _FS1.length; ++_SS1) {
for (var _TS1 = 0; _TS1 < _HO1; ++_TS1) {
if (this._JR1[_TS1]._BR1 == _FS1[_SS1]) {
this._JR1[_PN1]._7i1 |= this._JR1[_TS1]._6i1;
this._JR1[_TS1]._7i1 |= this._JR1[_PN1]._6i1;
}
}
}
};;
_CR1.prototype._rS1 = function (_yR1) {
var _qS1 = this._BS1(_yR1);
if (_qS1 !== -1) {
return _qS1
}
var _FS1 = this._ES1(_yR1);
var _BR1 = _yR1;
if (_FS1.length === 0) {
var _OS1 = _yR1;
var _PS1 = _b8._ta(_yR1);
while ((_PS1._FH >= 0) && _b8._ta(_PS1._FH)) {
_PS1 = _b8._ta(_PS1._FH);
_BR1 = _PS1._HH;
_FS1 = this._ES1(_BR1);
if (_FS1.length !== 0) {
_qS1 = this._BS1(_BR1);
break
}
}
if (_FS1.length === 0) {
return -1
}
}
if (_qS1 === -1) {
_qS1 = this._CS1(_BR1);
if (_qS1 === -1) {
return -1
}
}
this._RS1(_yR1, _qS1);
return _qS1
};;
_CR1.prototype._xS1 = function () {
var _ZR1 = this._lg1._ck1();
while ((_ZR1 != null) && (_ZR1 != undefined)) {
var _vn = _ZR1._X81();
if ((_vn != null) && (_vn != undefined)) {
var _US1 = _vn._US._RN1;
if (_US1 != -1) {
var _VS1 = new _2N1._5Q1();
_VS1._6i1 = this._JR1[_US1]._6i1;
_VS1._7i1 = this._JR1[_US1]._7i1;
var _8S = _ZR1._Vh1();
while ((_8S != null) && (_8S != undefined)) {
_VS1._8i1 = _8S._mi1()._8i1;
_8S._ki1(_VS1);
_8S = _8S._rg1
}
}
}
_ZR1 = _ZR1._Yh1()
}
};;
_CR1.prototype._iT = function (_qm, _wB, _ba, _ca, _fa) {
var _WS1 = new _2N1._UO1();
_WS1._Yl(new _2N1._3N1(_ba, _ca), _fa);
if ((_qm._US === null) || (_qm._US === undefined) || (_wB._US === null) || (_wB._US === undefined)) {
return
}
var _XS1 = _qm._US._QN1;
var _YS1 = _wB._US._QN1;
var _ZS1;
for (_ZS1 = _XS1._Vh1(); _ZS1; _ZS1 = _ZS1._Yh1()) {
var __S1;
for (__S1 = _YS1._Vh1(); __S1; __S1 = _ZS1._Yh1()) {
if (_2N1._MP1(_ZS1._hi1(), 0, __S1._hi1(), 0, _WS1, _YS1._C51())) {
return true
}
}
}
return false
};;
_CR1.prototype._ol1 = function (_oJ1, _ba, _ca, _0T1, _1T1, _ih, _Bd, _2T1) {
var _Og1 = new _2N1._mR1();
_Og1._121 = _oJ1;
_Og1.position._Yl(_ba * this._BS, _ca * this._BS);
_Og1._XU._Yl(_0T1 * this._BS, _1T1 * this._BS);
_Og1.color._Yl((_ih & 0xff), (_ih & 0xff00) >> 8, (_ih & 0xff0000) >> 16, (_Bd * 255.0));
_Og1._O81 = _2T1;
return this._lg1._ol1(_Og1)
};;;;;;;;
_CR1.prototype._3T1 = function () {
for (var _3b = 0; _3b < this._HR1.length; _3b++) {
var _RX = this._HR1[_3b];
if (_RX === null || _RX === undefined) {
return _3b
}
}
var slot = this._HR1.length;
return slot
};;
_CR1.prototype._4T1 = function (_5T1) {
if (_5T1 >= 0 && _5T1 < this._HR1.length) {
return this._HR1[_5T1]
}
return null
};;;
_CR1.prototype._tl1 = function (_6T1, _7T1) {
var _8T1 = this._4T1(_6T1);
var _9T1 = this._4T1(_7T1);
if ((_8T1 !== null) && (_9T1 !== null)) {
this._lg1._tl1(_8T1, _9T1);
this._HR1[_7T1] = null
}
};;;;;;
_CR1.prototype._aT1 = function (_e_, _bT1, _cT1, _dT1) {
var _Jc = this._lg1._Tl1();
if (_cT1 < 0 || _cT1 >= _Jc) return;
if (_dT1 < _cT1) return;
if (_dT1 > _Jc) return;
var _121 = this._lg1._xl1();
var __i1 = this._lg1._yl1();
var _0j1 = this._lg1._zl1();
var _eT1 = this._lg1._Al1();
var _O81 = this._lg1._Bl1();
var _fT1 = _e_._gT1;
var _hT1 = 1.0 / this._BS;
for (var _3b = _cT1; _3b < _dT1; _3b++) {
if (_bT1 & (1 << 0)) {
_e_._iT1(_jT1, _121[_3b]);
}
if (_bT1 & (1 << 1)) {
_e_._iT1(_kT1, __i1[_3b].x * _hT1);
_e_._iT1(_kT1, __i1[_3b].y * _hT1)
}
if (_bT1 & (1 << 2)) {
_e_._iT1(_kT1, _0j1[_3b].x * _hT1);
_e_._iT1(_kT1, _0j1[_3b].y * _hT1)
}
if (_bT1 & (1 << 3)) {
_e_._iT1(_jT1, (_eT1[_3b]._a9 << 24) | (_eT1[_3b]._79 << 16) | (_eT1[_3b]._89 << 8) | _eT1[_3b]._99)
}
if (_bT1 & (1 << 4)) {
_e_._iT1(_lT1, _O81[_3b])
}
}
_e_._mT1(_nT1, _fT1)
};;;;;;
_CR1.prototype._3n1 = function (_5T1, _oJ1) {
var _RX = this._4T1(_5T1);
if (_RX !== null && _RX !== undefined) {
_RX._3n1(_oJ1)
}
};;
_CR1.prototype._2n1 = function (_5T1) {
var _RX = this._4T1(_5T1);
if (_RX !== null && _RX !== undefined) {
return _RX._2n1()
}
return 0
};;;;;;;;;;;;;;
_CR1.prototype._NR1 = function (_oT1, _2T1, _ra, _pT1) {
var _Jc = this._lg1._Tl1();
var _121 = this._lg1._xl1();
var __i1 = this._lg1._yl1();
var _eT1 = this._lg1._Al1();
var _O81 = this._lg1._Bl1();
var _hT1 = 1.0 / this._BS;
for (var _3b = 0; _3b < _Jc; _3b++) {
if (((_121[_3b] === 0) || ((_121[_3b] & _oT1) !== 0)) && ((_2T1 === 0) || (_2T1 === _O81[_3b]))) {
var _f9 = (_eT1[_3b]._99 & 0xff) | ((_eT1[_3b]._89 << 8) & 0xff00) | ((_eT1[_3b]._79 << 16) & 0xff0000);
_ra._cd(_3b, __i1[_3b].x * _hT1, __i1[_3b].y * _hT1, 1.0, 1.0, 0, _f9, _eT1[_3b]._a9 / 255.0)
}
}
};;
_CR1.prototype._QR1 = function (_oT1, _2T1, _ra, _pT1, _Yv, _Zv, _fa, _ih, _Bd) {
var _Jc = this._lg1._Tl1();
var _121 = this._lg1._xl1();
var __i1 = this._lg1._yl1();
var _O81 = this._lg1._Bl1();
var _hT1 = 1.0 / this._BS;
for (var _3b = 0; _3b < _Jc; _3b++) {
if (((_121[_3b] === 0) || ((_121[_3b] & _oT1) !== 0)) && ((_2T1 === 0) || (_2T1 === _O81[_3b]))) {
_ra._cd(_3b, __i1[_3b].x * _hT1, __i1[_3b].y * _hT1, _Yv, _Zv, _fa, _ih, _Bd)
}
}
};;
_CR1.prototype._MR1 = function (_oT1, _2T1, _ra, _pT1) {
var _s9 = _ra._t9[_pT1 % _ra._u9()];
if (!_s9) {
return
}
if (!_s9._A9.complete) {
return
}
if (!_s9._A9._Ee) {
_Fe(_s9)
}
var _Jc = this._lg1._Tl1();
var _121 = this._lg1._xl1();
var __i1 = this._lg1._yl1();
var _eT1 = this._lg1._Al1();
var _O81 = this._lg1._Bl1();
var _hT1 = 1.0 / this._BS;
var _qT1 = 0;
for (var _3b = 0; _3b < _Jc; _3b++) {
if (((_121[_3b] === 0) || ((_121[_3b] & _oT1) !== 0)) && ((_2T1 === 0) || (_2T1 === _O81[_3b]))) {
_qT1++
}
}
if (_qT1 === 0) {
return
}
var _Ke = _xc._Le(_de._Me, _s9._A9._Ee, _xc._Ne, _qT1 * 6);
var _Oe = _Ke._Pe() >> 2;
var index = _Oe * _Ke._Qe;
_Ke._Qe += _qT1 * 6;
var _Re = _Ke._Se;
var _Te = _Ke._Ue;
var _Ve = _Ke._We;
var _Xe = index;
var _sf = _Xe + _Oe;
var _Q9 = _sf + _Oe;
var _tf = _Q9 + _Oe;
var _uf = _tf + _Oe;
var _vf = _uf + _Oe;
var _6b = -(_ra._z1 - _s9._H3);
var _7b = -(_ra._A1 - _s9._I3);
var _8b = _6b + _s9._J3;
var _9b = _7b + _s9._K3;
var _rT1 = 0;
for (var _3b = 0; _3b < _Jc; _3b++) {
if (((_121[_3b] === 0) || ((_121[_3b] & _oT1) !== 0)) && ((_2T1 === 0) || (_2T1 === _O81[_3b]))) {
var x = __i1[_3b].x * _hT1;
var y = __i1[_3b].y * _hT1;
_Re[_Xe + 0] = _Re[_uf + 0] = _Re[_vf + 0] = x + _6b;
_Re[_Xe + 1] = _Re[_sf + 1] = _Re[_vf + 1] = y + _7b;
_Re[_sf + 0] = _Re[_Q9 + 0] = _Re[_tf + 0] = x + _8b;
_Re[_Q9 + 1] = _Re[_tf + 1] = _Re[_uf + 1] = y + _9b;
_Re[_Xe + 2] = _Re[_sf + 2] = _Re[_Q9 + 2] = _Re[_tf + 2] = _Re[_uf + 2] = _Re[_vf + 2] = _Ye;
var _f9 = (_eT1[_3b]._99 & 0xff) | ((_eT1[_3b]._89 << 8) & 0xff00) | ((_eT1[_3b]._79 << 16) & 0xff0000) | ((_eT1[_3b]._a9 << 24) & 0xff000000);
_Te[_Xe] = _Te[_sf] = _Te[_Q9] = _Te[_tf] = _Te[_uf] = _Te[_vf] = _f9;
_Ve[_Xe + 0] = _Ve[_uf + 0] = _Ve[_vf + 0] = _s9.x / _s9._A9.width;
_Ve[_Xe + 1] = _Ve[_sf + 1] = _Ve[_vf + 1] = _s9.y / _s9._A9.height;
_Ve[_sf + 0] = _Ve[_Q9 + 0] = _Ve[_tf + 0] = (_s9.x + _s9._k2) / _s9._A9.width;
_Ve[_Q9 + 1] = _Ve[_tf + 1] = _Ve[_uf + 1] = (_s9.y + _s9._l2) / _s9._A9.height;
var _sT1 = _Oe * 6;
_Xe += _sT1;
_sf += _sT1;
_Q9 += _sT1;
_tf += _sT1;
_uf += _sT1;
_vf += _sT1
}
}
};;
_CR1.prototype._PR1 = function (_oT1,
_2T1, _ra, _pT1, _Yv, _Zv, _fa, _ih, _Bd) {
_fa = (_fa * Math.PI) / 180.0;
var _s9 = _ra._t9[_pT1 % _ra._u9()];
if (!_s9) {
return;
}
if (!_s9._A9.complete) {
return
}
if (!_s9._A9._Ee) {
_Fe(_s9)
}
var _Jc = this._lg1._Tl1();
var _121 = this._lg1._xl1();
var __i1 = this._lg1._yl1();
var _O81 = this._lg1._Bl1();
var _hT1 = 1.0 / this._BS;
var _qT1 = 0;
for (var _3b = 0; _3b < _Jc; _3b++) {
if (((_121[_3b] === 0) || ((_121[_3b] & _oT1) !== 0)) && ((_2T1 === 0) || (_2T1 === _O81[_3b]))) {
_qT1++
}
}
if (_qT1 === 0) {
return
}
var _Ke = _xc._Le(_de._Me, _s9._A9._Ee, _xc._Ne, _qT1 * 6);
var _Oe = _Ke._Pe() >> 2;
var index = _Oe * _Ke._Qe;
_Ke._Qe += _qT1 * 6;
var _Re = _Ke._Se;
var _Te = _Ke._Ue;
var _Ve = _Ke._We;
var _Xe = index;
var _sf = _Xe + _Oe;
var _Q9 = _sf + _Oe;
var _tf = _Q9 + _Oe;
var _uf = _tf + _Oe;
var _vf = _uf + _Oe;
var _f9 = _ih | (((_Bd * 255) & 0xff) << 24);
var _6b = -_Yv * (_ra._z1 - _s9._H3);
var _7b = -_Zv * (_ra._A1 - _s9._I3);
var _8b = _6b + (_Yv * _s9._J3);
var _9b = _7b + (_Zv * _s9._K3);
var _rT1 = 0;
if (Math.abs(_fa) < 0.0001) {
for (var _3b = 0; _3b < _Jc; _3b++) {
if (((_121[_3b] === 0) || ((_121[_3b] & _oT1) !== 0)) && ((_2T1 === 0) || (_2T1 === _O81[_3b]))) {
var x = __i1[_3b].x * _hT1;
var y = __i1[_3b].y * _hT1;
_Re[_Xe + 0] = _Re[_uf + 0] = _Re[_vf + 0] = x + _6b;
_Re[_Xe + 1] = _Re[_sf + 1] = _Re[_vf + 1] = y + _7b;
_Re[_sf + 0] = _Re[_Q9 + 0] = _Re[_tf + 0] = x + _8b;
_Re[_Q9 + 1] = _Re[_tf + 1] = _Re[_uf + 1] = y + _9b;
_Re[_Xe + 2] = _Re[_sf + 2] = _Re[_Q9 + 2] = _Re[_tf + 2] = _Re[_uf + 2] = _Re[_vf + 2] = _Ye;
_Te[_Xe] = _Te[_sf] = _Te[_Q9] = _Te[_tf] = _Te[_uf] = _Te[_vf] = _f9;
_Ve[_Xe + 0] = _Ve[_uf + 0] = _Ve[_vf + 0] = _s9.x / _s9._A9.width;
_Ve[_Xe + 1] = _Ve[_sf + 1] = _Ve[_vf + 1] = _s9.y / _s9._A9.height;
_Ve[_sf + 0] = _Ve[_Q9 + 0] = _Ve[_tf + 0] = (_s9.x + _s9._k2) / _s9._A9.width;
_Ve[_Q9 + 1] = _Ve[_tf + 1] = _Ve[_uf + 1] = (_s9.y + _s9._l2) / _s9._A9.height;
var _sT1 = _Oe * 6;
_Xe += _sT1;
_sf += _sT1;
_Q9 += _sT1;
_tf += _sT1;
_uf += _sT1;
_vf += _sT1
}
}
} else {
var _Ib = Math.sin(_fa);
var _Jb = Math.cos(_fa);
var _tT1 = _6b * _Jb;
var _uT1 = _8b * _Jb;
var _vT1 = _7b * _Jb;
var _wT1 = _9b * _Jb;
var _xT1 = _6b * _Ib;
var _yT1 = _8b * _Ib;
var _zT1 = _7b * _Ib;
var _AT1 = _9b * _Ib;
for (var _3b = 0; _3b < _Jc; _3b++) {
if (((_121[_3b] === 0) || ((_121[_3b] & _oT1) !== 0)) && ((_2T1 === 0) || (_2T1 === _O81[_3b]))) {
var x = __i1[_3b].x * _hT1;
var y = __i1[_3b].y * _hT1;
_Re[_Xe + 0] = _Re[_vf + 0] = x + _tT1 + _zT1;
_Re[_Xe + 1] = _Re[_vf + 1] = y - _xT1 + _vT1;
_Re[_Q9 + 0] = _Re[_tf + 0] = x + _uT1 + _AT1;
_Re[_Q9 + 1] = _Re[_tf + 1] = y - _yT1 + _wT1;
_Re[_sf + 1] = y - _yT1 + _vT1;
_Re[_sf + 0] = x + _uT1 + _zT1;
_Re[_uf + 0] = x + _tT1 + _AT1;
_Re[_uf + 1] = y - _xT1 + _wT1;
_Te[_Xe] = _Te[_sf] = _Te[_Q9] = _Te[_tf] = _Te[_uf] = _Te[_vf] = _f9;
_Ve[_Xe + 0] = _Ve[_uf + 0] = _Ve[_vf + 0] = _s9.x / _s9._A9.width;
_Ve[_Xe + 1] = _Ve[_sf + 1] = _Ve[_vf + 1] = _s9.y / _s9._A9.height;
_Ve[_sf + 0] = _Ve[_Q9 + 0] = _Ve[_tf + 0] = (_s9.x + _s9._k2) / _s9._A9.width;
_Ve[_Q9 + 1] = _Ve[_tf + 1] = _Ve[_uf + 1] = (_s9.y + _s9._l2) / _s9._A9.height;
var _sT1 = _Oe * 6;
_Xe += _sT1;
_sf += _sT1;
_Q9 += _sT1;
_tf += _sT1;
_uf += _sT1;
_vf += _sT1
}
}
}
};;
_CR1.prototype._Tl1 = function () {
return this._lg1._Tl1()
};;
_CR1.prototype._dl1 = function () {
return this._lg1._dl1()
};;
_CR1.prototype._nl1 = function () {
return this._lg1._nl1() * (1.0 / this._BS)
};;
_CR1.prototype._gl1 = function () {
return this._lg1._gl1()
};;
_CR1.prototype._ll1 = function () {
return this._lg1._ll1()
};;
_CR1.prototype._il1 = function () {
return this._lg1._il1()
};;
_CR1.prototype._el1 = function (_ui) {
this._lg1._el1(_ui)
};;
_CR1.prototype._ml1 = function (_Hn) {
this._lg1._ml1(_Hn * this._BS)
};;
_CR1.prototype._fl1 = function (_bS) {
this._lg1._fl1(_bS)
};;
_CR1.prototype._jl1 = function (_qS) {
this._lg1._jl1(_qS)
};;
_CR1.prototype._hl1 = function (_lO1) {
this._lg1._hl1(_lO1)
};;
var _BT1 = (this && this._BT1) || (function () {
var _CT1 = Object.setPrototypeOf || ({
_DT1: []
}
instanceof Array && function (_Xn, _99) {
_Xn._DT1 = _99
}) || function (_Xn, _99) {
for (var _gE in _99)
if (_99.hasOwnProperty(_gE)) _Xn[_gE] = _99[_gE]
};
return function (_Xn, _99) {
_CT1(_Xn, _99);
function _ET1() {
this.constructor = _Xn
}
_Xn.prototype = _99 === null ? Object._P31(_99) : (_ET1.prototype = _99.prototype, new _ET1())
}
})();
var spine;
(function (spine) {
var _FT1 = (function () {
function _FT1(name,
_ya, duration) {
if (name == null) throw new Error("name cannot be null.");
if (_ya == null) throw new Error("timelines cannot be null.");
this.name = name;
this._ya = _ya;
this.duration = duration
}
_FT1.prototype.apply = function (skeleton, _GT1, time, loop, events, alpha, _DI, _35) {
if (skeleton == null) throw new Error("skeleton cannot be null.");
if (loop && this.duration != 0) {
time %= this.duration;
if (_GT1 > 0) _GT1 %= this.duration
}
var _ya = this._ya;
for (var _i2 = 0, _3b = _ya.length; _i2 < _3b; _i2++) _ya[_i2].apply(skeleton, _GT1, time, events, alpha, _DI, _35)
};
_FT1._HT1 = function (_IT1, target, _z31) {
if (_z31 === void 0) {
_z31 = 1
}
var _9Z = 0;
var _c61 = _IT1.length / _z31 - 2;
if (_c61 == 0) return _z31;
var current = _c61 >>> 1;
while (!0) {
if (_IT1[(current + 1) * _z31] <= target) _9Z = current + 1;
else _c61 = current;
if (_9Z == _c61) return (_9Z + 1) * _z31;
current = (_9Z + _c61) >>> 1
}
};
_FT1._JT1 = function (_IT1, target, _z31) {
for (var _i2 = 0, _c2 = _IT1.length - _z31; _i2 <= _c2; _i2 += _z31)
if (_IT1[_i2] > target) return _i2;
return -1
};
return _FT1
}());
spine._FT1 = _FT1;
var _KT1;
(function (_KT1) {
_KT1[_KT1["setup"] = 0] = "setup";
_KT1[_KT1["first"] = 1] = "first";
_KT1[_KT1["replace"] = 2] = "replace";
_KT1[_KT1["add"] = 3] = "add"
})(_KT1 = spine._KT1 || (spine._KT1 = {}));
var _LT1;
(function (_LT1) {
_LT1[_LT1["in"] = 0] = "in";
_LT1[_LT1["out"] = 1] = "out"
})(_LT1 = spine._LT1 || (spine._LT1 = {}));
var _MT1;
(function (_MT1) {
_MT1[_MT1["rotate"] = 0] = "rotate";
_MT1[_MT1["translate"] = 1] = "translate";
_MT1[_MT1["scale"] = 2] = "scale";
_MT1[_MT1["shear"] = 3] = "shear";
_MT1[_MT1["attachment"] = 4] = "attachment";
_MT1[_MT1["color"] = 5] = "color";
_MT1[_MT1["deform"] = 6] = "deform";
_MT1[_MT1["event"] = 7] = "event";
_MT1[_MT1["drawOrder"] = 8] = "drawOrder";
_MT1[_MT1["ikConstraint"] = 9] = "ikConstraint";
_MT1[_MT1["transformConstraint"] = 10] = "transformConstraint";
_MT1[_MT1["pathConstraintPosition"] = 11] = "pathConstraintPosition";
_MT1[_MT1["pathConstraintSpacing"] = 12] = "pathConstraintSpacing";
_MT1[_MT1["pathConstraintMix"] = 13] = "pathConstraintMix";
_MT1[_MT1["twoColor"] = 14] = "twoColor"
})(_MT1 = spine._MT1 || (spine._MT1 = {}));
var _NT1 = (function () {
function _NT1(_ua) {
if (_ua <= 0) throw new Error("frameCount must be > 0: " + _ua);
this._OT1 = spine._PT1._QT1((_ua - 1) * _NT1._RT1)
}
_NT1.prototype._ST1 = function () {
return this._OT1.length / _NT1._RT1 + 1
};
_NT1.prototype._TT1 = function (_F8) {
this._OT1[_F8 * _NT1._RT1] = _NT1.LINEAR;
};
_NT1.prototype._UT1 = function (_F8) {
this._OT1[_F8 * _NT1._RT1] = _NT1._VT1
};
_NT1.prototype._WT1 = function (_F8) {
var index = _F8 * _NT1._RT1;
if (index == this._OT1.length) return _NT1.LINEAR;
var type = this._OT1[index];
if (type == _NT1.LINEAR) return _NT1.LINEAR;
if (type == _NT1._VT1) return _NT1._VT1;
return _NT1._XT1
};
_NT1.prototype._YT1 = function (_F8, _ZT1, __T1, _0U1, _1U1) {
var _2U1 = (-_ZT1 * 2 + _0U1) * 0.03,
_3U1 = (-__T1 * 2 + _1U1) * 0.03;
var _4U1 = ((_ZT1 - _0U1) * 3 + 1) * 0.006,
_5U1 = ((__T1 - _1U1) * 3 + 1) * 0.006;
var _6U1 = _2U1 * 2 + _4U1,
_7U1 = _3U1 * 2 + _5U1;
var _8U1 = _ZT1 * 0.3 + _2U1 + _4U1 * 0.16666667,
_9U1 = __T1 * 0.3 + _3U1 + _5U1 * 0.16666667;
var _i2 = _F8 * _NT1._RT1;
var _OT1 = this._OT1;
_OT1[_i2++] = _NT1._XT1;
var x = _8U1,
y = _9U1;
for (var _3b = _i2 + _NT1._RT1 - 1; _i2 < _3b; _i2 += 2) {
_OT1[_i2] = x;
_OT1[_i2 + 1] = y;
_8U1 += _6U1;
_9U1 += _7U1;
_6U1 += _4U1;
_7U1 += _5U1;
x += _8U1;
y += _9U1
}
};
_NT1.prototype._aU1 = function (_F8, _bU1) {
_bU1 = spine._cU1._oN(_bU1, 0, 1);
var _OT1 = this._OT1;
var _i2 = _F8 * _NT1._RT1;
var type = _OT1[_i2];
if (type == _NT1.LINEAR) return _bU1;
if (type == _NT1._VT1) return 0;
_i2++;
var x = 0;
for (var start = _i2, _3b = _i2 + _NT1._RT1 - 1; _i2 < _3b; _i2 += 2) {
x = _OT1[_i2];
if (x >= _bU1) {
var _dU1 = void 0,
_eU1 = void 0;
if (_i2 == start) {
_dU1 = 0;
_eU1 = 0
} else {
_dU1 = _OT1[_i2 - 2];
_eU1 = _OT1[_i2 - 1]
}
return _eU1 + (_OT1[_i2 + 1] - _eU1) * (_bU1 - _dU1) / (x - _dU1)
}
}
var y = _OT1[_i2 - 1];
return y + (1 - y) * (_bU1 - x) / (1 - x)
};
_NT1.LINEAR = 0;
_NT1._VT1 = 1;
_NT1._XT1 = 2;
_NT1._RT1 = 10 * 2 - 1;
return _NT1
}());
spine._NT1 = _NT1;
var _fU1 = (function (_gU1) {
_BT1(_fU1, _gU1);
function _fU1(_ua) {
var _hU1 = _gU1.call(this,
_ua) || this;
_hU1.frames = spine._PT1._QT1(_ua << 1);
return _hU1
}
_fU1.prototype._iU1 = function () {
return (_MT1.rotate << 24) + this._jU1
};
_fU1.prototype._kU1 = function (_F8, time, _lU1) {
_F8 <<= 1;
this.frames[_F8] = time;
this.frames[_F8 + _fU1._mU1] = _lU1
};
_fU1.prototype.apply = function (skeleton, _GT1, time, events, alpha, _DI, _35) {
var frames = this.frames;
var bone = skeleton.bones[this._jU1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
bone.rotation = bone.data.rotation;
return;
case _KT1.first:
var _nU1 = bone.data.rotation - bone.rotation;
bone.rotation += (_nU1 - (16384 - ((16384.499999999996 - _nU1 / 360) | 0)) * 360) * alpha
}
return
}
if (time >= frames[frames.length - _fU1._oU1]) {
var _79 = frames[frames.length + _fU1._pU1];
switch (_DI) {
case _KT1.setup:
bone.rotation = bone.data.rotation + _79 * alpha;
break;
case _KT1.first:
case _KT1.replace:
_79 += bone.data.rotation - bone.rotation;
_79 -= (16384 - ((16384.499999999996 - _79 / 360) | 0)) * 360;
case _KT1.add:
bone.rotation += _79 * alpha
}
return
}
var _Ga = _FT1._HT1(frames, time, _fU1._oU1);
var _qU1 = frames[_Ga + _fU1._pU1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1((_Ga >> 1) - 1,
1 - (time - _rU1) / (frames[_Ga + _fU1._sU1] - _rU1));
_79 = frames[_Ga + _fU1._mU1] - _qU1;
_79 = _qU1 + (_79 - (16384 - ((16384.499999999996 - _79 / 360) | 0)) * 360) * _bU1;
switch (_DI) {
case _KT1.setup:
bone.rotation = bone.data.rotation + (_79 - (16384 - ((16384.499999999996 - _79 / 360) | 0)) * 360) * alpha;
break;
case _KT1.first:
case _KT1.replace:
_79 += bone.data.rotation - bone.rotation;
case _KT1.add:
bone.rotation += (_79 - (16384 - ((16384.499999999996 - _79 / 360) | 0)) * 360) * alpha
}
};
_fU1._oU1 = 2;
_fU1._sU1 = -2;
_fU1._pU1 = -1;
_fU1._mU1 = 1;
return _fU1
}(_NT1));
spine._fU1 = _fU1;
var _tU1 = (function (_gU1) {
_BT1(_tU1, _gU1);
function _tU1(_ua) {
var _hU1 = _gU1.call(this, _ua) || this;
_hU1.frames = spine._PT1._QT1(_ua * _tU1._oU1);
return _hU1
}
_tU1.prototype._iU1 = function () {
return (_MT1.translate << 24) + this._jU1
};
_tU1.prototype._kU1 = function (_F8, time, x, y) {
_F8 *= _tU1._oU1;
this.frames[_F8] = time;
this.frames[_F8 + _tU1._Pu] = x;
this.frames[_F8 + _tU1._Qu] = y
};
_tU1.prototype.apply = function (skeleton, _GT1, time, events, alpha, _DI, _35) {
var frames = this.frames;
var bone = skeleton.bones[this._jU1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
bone.x = bone.data.x;
bone.y = bone.data.y;
return;
case _KT1.first:
bone.x += (bone.data.x - bone.x) * alpha;
bone.y += (bone.data.y - bone.y) * alpha;
}
return
}
var x = 0,
y = 0;
if (time >= frames[frames.length - _tU1._oU1]) {
x = frames[frames.length + _tU1._uU1];
y = frames[frames.length + _tU1._vU1]
} else {
var _Ga = _FT1._HT1(frames, time, _tU1._oU1);
x = frames[_Ga + _tU1._uU1];
y = frames[_Ga + _tU1._vU1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _tU1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _tU1._sU1] - _rU1));
x += (frames[_Ga + _tU1._Pu] - x) * _bU1;
y += (frames[_Ga + _tU1._Qu] - y) * _bU1
}
switch (_DI) {
case _KT1.setup:
bone.x = bone.data.x + x * alpha;
bone.y = bone.data.y + y * alpha;
break;
case _KT1.first:
case _KT1.replace:
bone.x += (bone.data.x + x - bone.x) * alpha;
bone.y += (bone.data.y + y - bone.y) * alpha;
break;
case _KT1.add:
bone.x += x * alpha;
bone.y += y * alpha
}
};
_tU1._oU1 = 3;
_tU1._sU1 = -3;
_tU1._uU1 = -2;
_tU1._vU1 = -1;
_tU1._Pu = 1;
_tU1._Qu = 2;
return _tU1
}(_NT1));
spine._tU1 = _tU1;
var _wU1 = (function (_gU1) {
_BT1(_wU1, _gU1);
function _wU1(_ua) {
return _gU1.call(this, _ua) || this
}
_wU1.prototype._iU1 = function () {
return (_MT1.scale << 24) + this._jU1
};
_wU1.prototype.apply = function (skeleton, _GT1, time, events, alpha, _DI, _35) {
var frames = this.frames;
var bone = skeleton.bones[this._jU1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
bone.scaleX = bone.data.scaleX;
bone.scaleY = bone.data.scaleY;
return;
case _KT1.first:
bone.scaleX += (bone.data.scaleX - bone.scaleX) * alpha;
bone.scaleY += (bone.data.scaleY - bone.scaleY) * alpha
}
return
}
var x = 0,
y = 0;
if (time >= frames[frames.length - _wU1._oU1]) {
x = frames[frames.length + _wU1._uU1] * bone.data.scaleX;
y = frames[frames.length + _wU1._vU1] * bone.data.scaleY
} else {
var _Ga = _FT1._HT1(frames, time, _wU1._oU1);
x = frames[_Ga + _wU1._uU1];
y = frames[_Ga + _wU1._vU1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _wU1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _wU1._sU1] - _rU1));
x = (x + (frames[_Ga + _wU1._Pu] - x) * _bU1) * bone.data.scaleX;
y = (y + (frames[_Ga + _wU1._Qu] - y) * _bU1) * bone.data.scaleY
}
if (alpha == 1) {
if (_DI == _KT1.add) {
bone.scaleX += x - bone.data.scaleX;
bone.scaleY += y - bone.data.scaleY
} else {
bone.scaleX = x;
bone.scaleY = y
}
} else {
var _om1 = 0,
_pm1 = 0;
if (_35 == _LT1.out) {
switch (_DI) {
case _KT1.setup:
_om1 = bone.data.scaleX;
_pm1 = bone.data.scaleY;
bone.scaleX = _om1 + (Math.abs(x) * spine._cU1._xU1(_om1) - _om1) * alpha;
bone.scaleY = _pm1 + (Math.abs(y) * spine._cU1._xU1(_pm1) - _pm1) * alpha;
break;
case _KT1.first:
case _KT1.replace:
_om1 = bone.scaleX;
_pm1 = bone.scaleY;
bone.scaleX = _om1 + (Math.abs(x) * spine._cU1._xU1(_om1) - _om1) * alpha;
bone.scaleY = _pm1 + (Math.abs(y) * spine._cU1._xU1(_pm1) - _pm1) * alpha;
break;
case _KT1.add:
_om1 = bone.scaleX;
_pm1 = bone.scaleY;
bone.scaleX = _om1 + (Math.abs(x) * spine._cU1._xU1(_om1) - bone.data.scaleX) * alpha;
bone.scaleY = _pm1 + (Math.abs(y) * spine._cU1._xU1(_pm1) - bone.data.scaleY) * alpha
}
} else {
switch (_DI) {
case _KT1.setup:
_om1 = Math.abs(bone.data.scaleX) * spine._cU1._xU1(x);
_pm1 = Math.abs(bone.data.scaleY) * spine._cU1._xU1(y);
bone.scaleX = _om1 + (x - _om1) * alpha;
bone.scaleY = _pm1 + (y - _pm1) * alpha;
break;
case _KT1.first:
case _KT1.replace:
_om1 = Math.abs(bone.scaleX) * spine._cU1._xU1(x);
_pm1 = Math.abs(bone.scaleY) * spine._cU1._xU1(y);
bone.scaleX = _om1 + (x - _om1) * alpha;
bone.scaleY = _pm1 + (y - _pm1) * alpha;
break;
case _KT1.add:
_om1 = spine._cU1._xU1(x);
_pm1 = spine._cU1._xU1(y);
bone.scaleX = Math.abs(bone.scaleX) * _om1 + (x - Math.abs(bone.data.scaleX) * _om1) * alpha;
bone.scaleY = Math.abs(bone.scaleY) * _pm1 + (y - Math.abs(bone.data.scaleY) * _pm1) * alpha
}
}
}
};
return _wU1;
}(_tU1));
spine._wU1 = _wU1;
var _yU1 = (function (_gU1) {
_BT1(_yU1, _gU1);
function _yU1(_ua) {
return _gU1.call(this, _ua) || this
}
_yU1.prototype._iU1 = function () {
return (_MT1.shear << 24) + this._jU1
};
_yU1.prototype.apply = function (skeleton, _GT1, time, events, alpha, _DI, _35) {
var frames = this.frames;
var bone = skeleton.bones[this._jU1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
bone.shearX = bone.data.shearX;
bone.shearY = bone.data.shearY;
return;
case _KT1.first:
bone.shearX += (bone.data.shearX - bone.shearX) * alpha;
bone.shearY += (bone.data.shearY - bone.shearY) * alpha;
}
return
}
var x = 0,
y = 0;
if (time >= frames[frames.length - _yU1._oU1]) {
x = frames[frames.length + _yU1._uU1];
y = frames[frames.length + _yU1._vU1]
} else {
var _Ga = _FT1._HT1(frames, time, _yU1._oU1);
x = frames[_Ga + _yU1._uU1];
y = frames[_Ga + _yU1._vU1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _yU1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _yU1._sU1] - _rU1));
x = x + (frames[_Ga + _yU1._Pu] - x) * _bU1;
y = y + (frames[_Ga + _yU1._Qu] - y) * _bU1
}
switch (_DI) {
case _KT1.setup:
bone.shearX = bone.data.shearX + x * alpha;
bone.shearY = bone.data.shearY + y * alpha;
break;
case _KT1.first:
case _KT1.replace:
bone.shearX += (bone.data.shearX + x - bone.shearX) * alpha;
bone.shearY += (bone.data.shearY + y - bone.shearY) * alpha;
break;
case _KT1.add:
bone.shearX += x * alpha;
bone.shearY += y * alpha
}
};
return _yU1
}(_tU1));
spine._yU1 = _yU1;
var _zU1 = (function (_gU1) {
_BT1(_zU1, _gU1);
function _zU1(_ua) {
var _hU1 = _gU1.call(this, _ua) || this;
_hU1.frames = spine._PT1._QT1(_ua * _zU1._oU1);
return _hU1
}
_zU1.prototype._iU1 = function () {
return (_MT1.color << 24) + this._09
};
_zU1.prototype._kU1 = function (_F8, time, _79, _89, _99, _a9) {
_F8 *= _zU1._oU1;
this.frames[_F8] = time;
this.frames[_F8 + _zU1._AU1] = _79;
this.frames[_F8 + _zU1._7f1] = _89;
this.frames[_F8 + _zU1._651] = _99;
this.frames[_F8 + _zU1._X31] = _a9
};
_zU1.prototype.apply = function (skeleton, _GT1, time, events, alpha, _DI, _35) {
var slot = skeleton.slots[this._09];
var frames = this.frames;
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
slot.color._7a(slot.data.color);
return;
case _KT1.first:
var color = slot.color,
setup = slot.data.color;
color.add((setup._79 - color._79) * alpha, (setup._89 - color._89) * alpha, (setup._99 - color._99) * alpha, (setup._a9 - color._a9) * alpha)
}
return
}
var _79 = 0,
_89 = 0,
_99 = 0,
_a9 = 0;
if (time >= frames[frames.length - _zU1._oU1]) {
var _i2 = frames.length;
_79 = frames[_i2 + _zU1._BU1];
_89 = frames[_i2 + _zU1._CU1];
_99 = frames[_i2 + _zU1._DU1];
_a9 = frames[_i2 + _zU1._EU1]
} else {
var _Ga = _FT1._HT1(frames, time, _zU1._oU1);
_79 = frames[_Ga + _zU1._BU1];
_89 = frames[_Ga + _zU1._CU1];
_99 = frames[_Ga + _zU1._DU1];
_a9 = frames[_Ga + _zU1._EU1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _zU1._oU1 - 1,
1 - (time - _rU1) / (frames[_Ga + _zU1._sU1] - _rU1));
_79 += (frames[_Ga + _zU1._AU1] - _79) * _bU1;
_89 += (frames[_Ga + _zU1._7f1] - _89) * _bU1;
_99 += (frames[_Ga + _zU1._651] - _99) * _bU1;
_a9 += (frames[_Ga + _zU1._X31] - _a9) * _bU1
}
if (alpha == 1) slot.color.set(_79, _89, _99, _a9);
else {
var color = slot.color;
if (_DI == _KT1.setup) color._7a(slot.data.color);
color.add((_79 - color._79) * alpha, (_89 - color._89) * alpha, (_99 - color._99) * alpha, (_a9 - color._a9) * alpha)
}
};
_zU1._oU1 = 5;
_zU1._sU1 = -5;
_zU1._BU1 = -4;
_zU1._CU1 = -3;
_zU1._DU1 = -2;
_zU1._EU1 = -1;
_zU1._AU1 = 1;
_zU1._7f1 = 2;
_zU1._651 = 3;
_zU1._X31 = 4;
return _zU1
}(_NT1));
spine._zU1 = _zU1;
var _FU1 = (function (_gU1) {
_BT1(_FU1, _gU1);
function _FU1(_ua) {
var _hU1 = _gU1.call(this, _ua) || this;
_hU1.frames = spine._PT1._QT1(_ua * _FU1._oU1);
return _hU1
}
_FU1.prototype._iU1 = function () {
return (_MT1.twoColor << 24) + this._09
};
_FU1.prototype._kU1 = function (_F8, time, _79, _89, _99, _a9, _iB, _kB, _mB) {
_F8 *= _FU1._oU1;
this.frames[_F8] = time;
this.frames[_F8 + _FU1._AU1] = _79;
this.frames[_F8 + _FU1._7f1] = _89;
this.frames[_F8 + _FU1._651] = _99;
this.frames[_F8 + _FU1._X31] = _a9;
this.frames[_F8 + _FU1._GU1] = _iB;
this.frames[_F8 + _FU1._HU1] = _kB;
this.frames[_F8 + _FU1._0d1] = _mB
};
_FU1.prototype.apply = function (skeleton, _GT1, time, events, alpha, _DI, _35) {
var slot = skeleton.slots[this._09];
var frames = this.frames;
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
slot.color._7a(slot.data.color);
slot._Be._7a(slot.data._Be);
return;
case _KT1.first:
var _IU1 = slot.color,
_JU1 = slot._Be,
_KU1 = slot.data.color,
_LU1 = slot.data._Be;
_IU1.add((_KU1._79 - _IU1._79) * alpha, (_KU1._89 - _IU1._89) * alpha, (_KU1._99 - _IU1._99) * alpha,
(_KU1._a9 - _IU1._a9) * alpha);
_JU1.add((_LU1._79 - _JU1._79) * alpha, (_LU1._89 - _JU1._89) * alpha, (_LU1._99 - _JU1._99) * alpha, 0)
}
return
}
var _79 = 0,
_89 = 0,
_99 = 0,
_a9 = 0,
_iB = 0,
_kB = 0,
_mB = 0;
if (time >= frames[frames.length - _FU1._oU1]) {
var _i2 = frames.length;
_79 = frames[_i2 + _FU1._BU1];
_89 = frames[_i2 + _FU1._CU1];
_99 = frames[_i2 + _FU1._DU1];
_a9 = frames[_i2 + _FU1._EU1];
_iB = frames[_i2 + _FU1._MU1];
_kB = frames[_i2 + _FU1._NU1];
_mB = frames[_i2 + _FU1._OU1]
} else {
var _Ga = _FT1._HT1(frames, time, _FU1._oU1);
_79 = frames[_Ga + _FU1._BU1];
_89 = frames[_Ga + _FU1._CU1];
_99 = frames[_Ga + _FU1._DU1];
_a9 = frames[_Ga + _FU1._EU1];
_iB = frames[_Ga + _FU1._MU1];
_kB = frames[_Ga + _FU1._NU1];
_mB = frames[_Ga + _FU1._OU1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _FU1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _FU1._sU1] - _rU1));
_79 += (frames[_Ga + _FU1._AU1] - _79) * _bU1;
_89 += (frames[_Ga + _FU1._7f1] - _89) * _bU1;
_99 += (frames[_Ga + _FU1._651] - _99) * _bU1;
_a9 += (frames[_Ga + _FU1._X31] - _a9) * _bU1;
_iB += (frames[_Ga + _FU1._GU1] - _iB) * _bU1;
_kB += (frames[_Ga + _FU1._HU1] - _kB) * _bU1;
_mB += (frames[_Ga + _FU1._0d1] - _mB) * _bU1
}
if (alpha == 1) {
slot.color.set(_79, _89, _99, _a9);
slot._Be.set(_iB, _kB, _mB, 1)
} else {
var _IU1 = slot.color,
_JU1 = slot._Be;
if (_DI == _KT1.setup) {
_IU1._7a(slot.data.color);
_JU1._7a(slot.data._Be)
}
_IU1.add((_79 - _IU1._79) * alpha, (_89 - _IU1._89) * alpha, (_99 - _IU1._99) * alpha, (_a9 - _IU1._a9) * alpha);
_JU1.add((_iB - _JU1._79) * alpha, (_kB - _JU1._89) * alpha, (_mB - _JU1._99) * alpha, 0)
}
};
_FU1._oU1 = 8;
_FU1._sU1 = -8;
_FU1._BU1 = -7;
_FU1._CU1 = -6;
_FU1._DU1 = -5;
_FU1._EU1 = -4;
_FU1._MU1 = -3;
_FU1._NU1 = -2;
_FU1._OU1 = -1;
_FU1._AU1 = 1;
_FU1._7f1 = 2;
_FU1._651 = 3;
_FU1._X31 = 4;
_FU1._GU1 = 5;
_FU1._HU1 = 6;
_FU1._0d1 = 7;
return _FU1
}(_NT1));
spine._FU1 = _FU1;
var _PU1 = (function () {
function _PU1(_ua) {
this.frames = spine._PT1._QT1(_ua);
this._QU1 = new Array(_ua)
}
_PU1.prototype._iU1 = function () {
return (_MT1.attachment << 24) + this._09
};
_PU1.prototype._ST1 = function () {
return this.frames.length
};
_PU1.prototype._kU1 = function (_F8, time, _Lf) {
this.frames[_F8] = time;
this._QU1[_F8] = _Lf
};
_PU1.prototype.apply = function (skeleton, _GT1, time, events, alpha, _DI, _35) {
var slot = skeleton.slots[this._09];
if (_35 == _LT1.out && _DI == _KT1.setup) {
var _RU1 = slot.data._Lf;
slot.__8(_RU1 == null ? null : skeleton._39(this._09, _RU1));
return
}
var frames = this.frames;
if (time < frames[0]) {
if (_DI == _KT1.setup || _DI == _KT1.first) {
var _SU1 = slot.data._Lf;
slot.__8(_SU1 == null ? null : skeleton._39(this._09, _SU1))
}
return
}
var _F8 = 0;
if (time >= frames[frames.length - 1]) _F8 = frames.length - 1;
else _F8 = _FT1._HT1(frames, time, 1) - 1;
var _Lf = this._QU1[_F8];
skeleton.slots[this._09].__8(_Lf == null ? null : skeleton._39(this._09, _Lf))
};
return _PU1
}());
spine._PU1 = _PU1;
var _TU1 = null;
var _UU1 = (function (_gU1) {
_BT1(_UU1, _gU1);
function _UU1(_ua) {
var _hU1 = _gU1.call(this, _ua) || this;
_hU1.frames = spine._PT1._QT1(_ua);
_hU1._VU1 = new Array(_ua);
if (_TU1 == null) _TU1 = spine._PT1._QT1(64);
return _hU1
}
_UU1.prototype._iU1 = function () {
return (_MT1.deform << 27) + +this.attachment.id + this._09
};
_UU1.prototype._kU1 = function (_F8, time, vertices) {
this.frames[_F8] = time;
this._VU1[_F8] = vertices
};
_UU1.prototype.apply = function (skeleton, _GT1, time, _WU1, alpha, _DI, _35) {
var slot = skeleton.slots[this._09];
var _XU1 = slot._39();
if (!(_XU1 instanceof spine._YU1) || !_XU1._ZU1(this.attachment)) return;
var __U1 = slot._0V1;
if (__U1.length == 0) _DI = _KT1.setup;
var _VU1 = this._VU1;
var vertexCount = _VU1[0].length;
var frames = this.frames;
if (time < frames[0]) {
var _1V1 = _XU1;
switch (_DI) {
case _KT1.setup:
__U1.length = 0;
return;
case _KT1.first:
if (alpha == 1) {
__U1.length = 0;
break
}
var _2V1 = spine._PT1._3V1(__U1, vertexCount);
if (_1V1.bones == null) {
var _4V1 = _1V1.vertices;
for (var _i2 = 0; _i2 < vertexCount; _i2++) _2V1[_i2] += (_4V1[_i2] - _2V1[_i2]) * alpha
} else {
alpha = 1 - alpha;
for (var _i2 = 0; _i2 < vertexCount; _i2++) _2V1[_i2] *= alpha
}
}
return
}
var vertices = spine._PT1._3V1(__U1,
vertexCount);
if (time >= frames[frames.length - 1]) {
var _5V1 = _VU1[frames.length - 1];
if (alpha == 1) {
if (_DI == _KT1.add) {
var _1V1 = _XU1;
if (_1V1.bones == null) {
var _6V1 = _1V1.vertices;
for (var _7V1 = 0; _7V1 < vertexCount; _7V1++) {
vertices[_7V1] += _5V1[_7V1] - _6V1[_7V1]
}
} else {
for (var _8V1 = 0; _8V1 < vertexCount; _8V1++) vertices[_8V1] += _5V1[_8V1]
}
} else {
spine._PT1._9V1(_5V1, 0, vertices, 0, vertexCount)
}
} else {
switch (_DI) {
case _KT1.setup: {
var _aV1 = _XU1;
if (_aV1.bones == null) {
var _bV1 = _aV1.vertices;
for (var _cV1 = 0; _cV1 < vertexCount; _cV1++) {
var setup = _bV1[_cV1];
vertices[_cV1] = setup + (_5V1[_cV1] - setup) * alpha
}
} else {
for (var _dV1 = 0; _dV1 < vertexCount; _dV1++) vertices[_dV1] = _5V1[_dV1] * alpha
}
break
}
case _KT1.first:
case _KT1.replace:
for (var _eV1 = 0; _eV1 < vertexCount; _eV1++) vertices[_eV1] += (_5V1[_eV1] - vertices[_eV1]) * alpha;
case _KT1.add:
var _1V1 = _XU1;
if (_1V1.bones == null) {
var _fV1 = _1V1.vertices;
for (var _gV1 = 0; _gV1 < vertexCount; _gV1++) {
vertices[_gV1] += (_5V1[_gV1] - _fV1[_gV1]) * alpha
}
} else {
for (var _hV1 = 0; _hV1 < vertexCount; _hV1++) vertices[_hV1] += _5V1[_hV1] * alpha
}
}
}
return
}
var _Ga = _FT1._HT1(frames,
time);
var _iV1 = _VU1[_Ga - 1];
var _jV1 = _VU1[_Ga];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga - 1, 1 - (time - _rU1) / (frames[_Ga - 1] - _rU1));
if (alpha == 1) {
if (_DI == _KT1.add) {
var _1V1 = _XU1;
if (_1V1.bones == null) {
var _kV1 = _1V1.vertices;
for (var _lV1 = 0; _lV1 < vertexCount; _lV1++) {
var _Nj1 = _iV1[_lV1];
vertices[_lV1] += _Nj1 + (_jV1[_lV1] - _Nj1) * _bU1 - _kV1[_lV1]
}
} else {
for (var _mV1 = 0; _mV1 < vertexCount; _mV1++) {
var _Nj1 = _iV1[_mV1];
vertices[_mV1] += _Nj1 + (_jV1[_mV1] - _Nj1) * _bU1
}
}
} else {
for (var _nV1 = 0; _nV1 < vertexCount; _nV1++) {
var _Nj1 = _iV1[_nV1];
vertices[_nV1] = _Nj1 + (_jV1[_nV1] - _Nj1) * _bU1
}
}
} else {
switch (_DI) {
case _KT1.setup: {
var _oV1 = _XU1;
if (_oV1.bones == null) {
var _pV1 = _oV1.vertices;
for (var _qV1 = 0; _qV1 < vertexCount; _qV1++) {
var _Nj1 = _iV1[_qV1],
setup = _pV1[_qV1];
vertices[_qV1] = setup + (_Nj1 + (_jV1[_qV1] - _Nj1) * _bU1 - setup) * alpha
}
} else {
for (var _rV1 = 0; _rV1 < vertexCount; _rV1++) {
var _Nj1 = _iV1[_rV1];
vertices[_rV1] = (_Nj1 + (_jV1[_rV1] - _Nj1) * _bU1) * alpha
}
}
break
}
case _KT1.first:
case _KT1.replace:
for (var _sV1 = 0; _sV1 < vertexCount; _sV1++) {
var _Nj1 = _iV1[_sV1];
vertices[_sV1] += (_Nj1 + (_jV1[_sV1] - _Nj1) * _bU1 - vertices[_sV1]) * alpha;
}
break;
case _KT1.add:
var _1V1 = _XU1;
if (_1V1.bones == null) {
var _tV1 = _1V1.vertices;
for (var _uV1 = 0; _uV1 < vertexCount; _uV1++) {
var _Nj1 = _iV1[_uV1];
vertices[_uV1] += (_Nj1 + (_jV1[_uV1] - _Nj1) * _bU1 - _tV1[_uV1]) * alpha
}
} else {
for (var _vV1 = 0; _vV1 < vertexCount; _vV1++) {
var _Nj1 = _iV1[_vV1];
vertices[_vV1] += (_Nj1 + (_jV1[_vV1] - _Nj1) * _bU1) * alpha
}
}
}
}
};
return _UU1
}(_NT1));
spine._UU1 = _UU1;
var _ac = (function () {
function _ac(_ua) {
this.frames = spine._PT1._QT1(_ua);
this.events = new Array(_ua)
}
_ac.prototype._iU1 = function () {
return _MT1.event << 24
};
_ac.prototype._ST1 = function () {
return this.frames.length
};
_ac.prototype._kU1 = function (_F8, event) {
this.frames[_F8] = event.time;
this.events[_F8] = event
};
_ac.prototype.apply = function (skeleton, _GT1, time, _WU1, alpha, _DI, _35) {
if (_WU1 == null) return;
var frames = this.frames;
var _ua = this.frames.length;
if (_GT1 > time) {
this.apply(skeleton, _GT1, Number.MAX_VALUE, _WU1, alpha, _DI, _35);
_GT1 = -1
} else if (_GT1 >= frames[_ua - 1]) return;
if (time < frames[0]) return;
var _Ga = 0;
if (_GT1 < frames[0]) _Ga = 0;
else {
_Ga = _FT1._HT1(frames, _GT1);
var _rU1 = frames[_Ga];
while (_Ga > 0) {
if (frames[_Ga - 1] != _rU1) break;
_Ga--
}
}
for (; _Ga < _ua && time >= frames[_Ga]; _Ga++) _WU1.push(this.events[_Ga])
};
return _ac
}());
spine._ac = _ac;
var _wV1 = (function () {
function _wV1(_ua) {
this.frames = spine._PT1._QT1(_ua);
this._xV1 = new Array(_ua)
}
_wV1.prototype._iU1 = function () {
return _MT1.drawOrder << 24
};
_wV1.prototype._ST1 = function () {
return this.frames.length
};
_wV1.prototype._kU1 = function (_F8, time, drawOrder) {
this.frames[_F8] = time;
this._xV1[_F8] = drawOrder
};
_wV1.prototype.apply = function (skeleton, _GT1, time, _WU1,
alpha, _DI, _35) {
var drawOrder = skeleton.drawOrder;
var slots = skeleton.slots;
if (_35 == _LT1.out && _DI == _KT1.setup) {
spine._PT1._9V1(skeleton.slots, 0, skeleton.drawOrder, 0, skeleton.slots.length);
return
}
var frames = this.frames;
if (time < frames[0]) {
if (_DI == _KT1.setup || _DI == _KT1.first) spine._PT1._9V1(skeleton.slots, 0, skeleton.drawOrder, 0, skeleton.slots.length);
return
}
var _Ga = 0;
if (time >= frames[frames.length - 1]) _Ga = frames.length - 1;
else _Ga = _FT1._HT1(frames, time) - 1;
var _yV1 = this._xV1[_Ga];
if (_yV1 == null) spine._PT1._9V1(slots,
0, drawOrder, 0, slots.length);
else {
for (var _i2 = 0, _3b = _yV1.length; _i2 < _3b; _i2++) drawOrder[_i2] = slots[_yV1[_i2]]
}
};
return _wV1
}());
spine._wV1 = _wV1;
var _zV1 = (function (_gU1) {
_BT1(_zV1, _gU1);
function _zV1(_ua) {
var _hU1 = _gU1.call(this, _ua) || this;
_hU1.frames = spine._PT1._QT1(_ua * _zV1._oU1);
return _hU1
}
_zV1.prototype._iU1 = function () {
return (_MT1.ikConstraint << 24) + this._AV1
};
_zV1.prototype._kU1 = function (_F8, time, mix, _BV1, compress, _V1) {
_F8 *= _zV1._oU1;
this.frames[_F8] = time;
this.frames[_F8 + _zV1._CV1] = mix;
this.frames[_F8 + _zV1._DV1] = _BV1;
this.frames[_F8 + _zV1._EV1] = compress ? 1 : 0;
this.frames[_F8 + _zV1._FV1] = _V1 ? 1 : 0
};
_zV1.prototype.apply = function (skeleton, _GT1, time, _WU1, alpha, _DI, _35) {
var frames = this.frames;
var _GV1 = skeleton._HV1[this._AV1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
_GV1.mix = _GV1.data.mix;
_GV1._BV1 = _GV1.data._BV1;
_GV1.compress = _GV1.data.compress;
_GV1._V1 = _GV1.data._V1;
return;
case _KT1.first:
_GV1.mix += (_GV1.data.mix - _GV1.mix) * alpha;
_GV1._BV1 = _GV1.data._BV1;
_GV1.compress = _GV1.data.compress;
_GV1._V1 = _GV1.data._V1
}
return
}
if (time >= frames[frames.length - _zV1._oU1]) {
if (_DI == _KT1.setup) {
_GV1.mix = _GV1.data.mix + (frames[frames.length + _zV1._IV1] - _GV1.data.mix) * alpha;
if (_35 == _LT1.out) {
_GV1._BV1 = _GV1.data._BV1;
_GV1.compress = _GV1.data.compress;
_GV1._V1 = _GV1.data._V1
} else {
_GV1._BV1 = frames[frames.length + _zV1._JV1];
_GV1.compress = frames[frames.length + _zV1._KV1] != 0;
_GV1._V1 = frames[frames.length + _zV1._LV1] != 0
}
} else {
_GV1.mix += (frames[frames.length + _zV1._IV1] - _GV1.mix) * alpha;
if (_35 == _LT1["in"]) {
_GV1._BV1 = frames[frames.length + _zV1._JV1];
_GV1.compress = frames[frames.length + _zV1._KV1] != 0;
_GV1._V1 = frames[frames.length + _zV1._LV1] != 0
}
}
return
}
var _Ga = _FT1._HT1(frames, time, _zV1._oU1);
var mix = frames[_Ga + _zV1._IV1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _zV1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _zV1._sU1] - _rU1));
if (_DI == _KT1.setup) {
_GV1.mix = _GV1.data.mix + (mix + (frames[_Ga + _zV1._CV1] - mix) * _bU1 - _GV1.data.mix) * alpha;
if (_35 == _LT1.out) {
_GV1._BV1 = _GV1.data._BV1;
_GV1.compress = _GV1.data.compress;
_GV1._V1 = _GV1.data._V1
} else {
_GV1._BV1 = frames[_Ga + _zV1._JV1];
_GV1.compress = frames[_Ga + _zV1._KV1] != 0;
_GV1._V1 = frames[_Ga + _zV1._LV1] != 0
}
} else {
_GV1.mix += (mix + (frames[_Ga + _zV1._CV1] - mix) * _bU1 - _GV1.mix) * alpha;
if (_35 == _LT1["in"]) {
_GV1._BV1 = frames[_Ga + _zV1._JV1];
_GV1.compress = frames[_Ga + _zV1._KV1] != 0;
_GV1._V1 = frames[_Ga + _zV1._LV1] != 0
}
}
};
_zV1._oU1 = 5;
_zV1._sU1 = -5;
_zV1._IV1 = -4;
_zV1._JV1 = -3;
_zV1._KV1 = -2;
_zV1._LV1 = -1;
_zV1._CV1 = 1;
_zV1._DV1 = 2;
_zV1._EV1 = 3;
_zV1._FV1 = 4;
return _zV1
}(_NT1));
spine._zV1 = _zV1;
var _MV1 = (function (_gU1) {
_BT1(_MV1, _gU1);
function _MV1(_ua) {
var _hU1 = _gU1.call(this,
_ua) || this;
_hU1.frames = spine._PT1._QT1(_ua * _MV1._oU1);
return _hU1
}
_MV1.prototype._iU1 = function () {
return (_MT1.transformConstraint << 24) + this._NV1
};
_MV1.prototype._kU1 = function (_F8, time, rotateMix, _OV1, scaleMix, _PV1) {
_F8 *= _MV1._oU1;
this.frames[_F8] = time;
this.frames[_F8 + _MV1._QV1] = rotateMix;
this.frames[_F8 + _MV1._RV1] = _OV1;
this.frames[_F8 + _MV1._SV1] = scaleMix;
this.frames[_F8 + _MV1._TV1] = _PV1;
};
_MV1.prototype.apply = function (skeleton, _GT1, time, _WU1, alpha, _DI, _35) {
var frames = this.frames;
var _GV1 = skeleton._UV1[this._NV1];
if (time < frames[0]) {
var data = _GV1.data;
switch (_DI) {
case _KT1.setup:
_GV1.rotateMix = data.rotateMix;
_GV1._OV1 = data._OV1;
_GV1.scaleMix = data.scaleMix;
_GV1._PV1 = data._PV1;
return;
case _KT1.first:
_GV1.rotateMix += (data.rotateMix - _GV1.rotateMix) * alpha;
_GV1._OV1 += (data._OV1 - _GV1._OV1) * alpha;
_GV1.scaleMix += (data.scaleMix - _GV1.scaleMix) * alpha;
_GV1._PV1 += (data._PV1 - _GV1._PV1) * alpha
}
return
}
var rotate = 0,
translate = 0,
scale = 0,
shear = 0;
if (time >= frames[frames.length - _MV1._oU1]) {
var _i2 = frames.length;
rotate = frames[_i2 + _MV1._VV1];
translate = frames[_i2 + _MV1._WV1];
scale = frames[_i2 + _MV1._XV1];
shear = frames[_i2 + _MV1._YV1]
} else {
var _Ga = _FT1._HT1(frames, time, _MV1._oU1);
rotate = frames[_Ga + _MV1._VV1];
translate = frames[_Ga + _MV1._WV1];
scale = frames[_Ga + _MV1._XV1];
shear = frames[_Ga + _MV1._YV1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _MV1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _MV1._sU1] - _rU1));
rotate += (frames[_Ga + _MV1._QV1] - rotate) * _bU1;
translate += (frames[_Ga + _MV1._RV1] - translate) * _bU1;
scale += (frames[_Ga + _MV1._SV1] - scale) * _bU1;
shear += (frames[_Ga + _MV1._TV1] - shear) * _bU1
}
if (_DI == _KT1.setup) {
var data = _GV1.data;
_GV1.rotateMix = data.rotateMix + (rotate - data.rotateMix) * alpha;
_GV1._OV1 = data._OV1 + (translate - data._OV1) * alpha;
_GV1.scaleMix = data.scaleMix + (scale - data.scaleMix) * alpha;
_GV1._PV1 = data._PV1 + (shear - data._PV1) * alpha
} else {
_GV1.rotateMix += (rotate - _GV1.rotateMix) * alpha;
_GV1._OV1 += (translate - _GV1._OV1) * alpha;
_GV1.scaleMix += (scale - _GV1.scaleMix) * alpha;
_GV1._PV1 += (shear - _GV1._PV1) * alpha
}
};
_MV1._oU1 = 5;
_MV1._sU1 = -5;
_MV1._VV1 = -4;
_MV1._WV1 = -3;
_MV1._XV1 = -2;
_MV1._YV1 = -1;
_MV1._QV1 = 1;
_MV1._RV1 = 2;
_MV1._SV1 = 3;
_MV1._TV1 = 4;
return _MV1
}(_NT1));
spine._MV1 = _MV1;
var _ZV1 = (function (_gU1) {
_BT1(_ZV1, _gU1);
function _ZV1(_ua) {
var _hU1 = _gU1.call(this, _ua) || this;
_hU1.frames = spine._PT1._QT1(_ua * _ZV1._oU1);
return _hU1
}
_ZV1.prototype._iU1 = function () {
return (_MT1.pathConstraintPosition << 24) + this.__V1
};
_ZV1.prototype._kU1 = function (_F8, time, value) {
_F8 *= _ZV1._oU1;
this.frames[_F8] = time;
this.frames[_F8 + _ZV1._0W1] = value
};
_ZV1.prototype.apply = function (skeleton, _GT1, time, _WU1, alpha, _DI, _35) {
var frames = this.frames;
var _GV1 = skeleton._1W1[this.__V1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
_GV1.position = _GV1.data.position;
return;
case _KT1.first:
_GV1.position += (_GV1.data.position - _GV1.position) * alpha
}
return
}
var position = 0;
if (time >= frames[frames.length - _ZV1._oU1]) position = frames[frames.length + _ZV1._2W1];
else {
var _Ga = _FT1._HT1(frames, time, _ZV1._oU1);
position = frames[_Ga + _ZV1._2W1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _ZV1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _ZV1._sU1] - _rU1));
position += (frames[_Ga + _ZV1._0W1] - position) * _bU1
}
if (_DI == _KT1.setup) _GV1.position = _GV1.data.position + (position - _GV1.data.position) * alpha;
else _GV1.position += (position - _GV1.position) * alpha
};
_ZV1._oU1 = 2;
_ZV1._sU1 = -2;
_ZV1._2W1 = -1;
_ZV1._0W1 = 1;
return _ZV1
}(_NT1));
spine._ZV1 = _ZV1;
var _3W1 = (function (_gU1) {
_BT1(_3W1, _gU1);
function _3W1(_ua) {
return _gU1.call(this, _ua) || this
}
_3W1.prototype._iU1 = function () {
return (_MT1.pathConstraintSpacing << 24) + this.__V1
};
_3W1.prototype.apply = function (skeleton, _GT1, time, _WU1, alpha, _DI, _35) {
var frames = this.frames;
var _GV1 = skeleton._1W1[this.__V1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
_GV1.spacing = _GV1.data.spacing;
return;
case _KT1.first:
_GV1.spacing += (_GV1.data.spacing - _GV1.spacing) * alpha
}
return
}
var spacing = 0;
if (time >= frames[frames.length - _3W1._oU1]) spacing = frames[frames.length + _3W1._2W1];
else {
var _Ga = _FT1._HT1(frames, time, _3W1._oU1);
spacing = frames[_Ga + _3W1._2W1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _3W1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _3W1._sU1] - _rU1));
spacing += (frames[_Ga + _3W1._0W1] - spacing) * _bU1
}
if (_DI == _KT1.setup) _GV1.spacing = _GV1.data.spacing + (spacing - _GV1.data.spacing) * alpha;
else _GV1.spacing += (spacing - _GV1.spacing) * alpha
};
return _3W1
}(_ZV1));
spine._3W1 = _3W1;
var _4W1 = (function (_gU1) {
_BT1(_4W1, _gU1);
function _4W1(_ua) {
var _hU1 = _gU1.call(this, _ua) || this;
_hU1.frames = spine._PT1._QT1(_ua * _4W1._oU1);
return _hU1
}
_4W1.prototype._iU1 = function () {
return (_MT1.pathConstraintMix << 24) + this.__V1
};
_4W1.prototype._kU1 = function (_F8, time, rotateMix, _OV1) {
_F8 *= _4W1._oU1;
this.frames[_F8] = time;
this.frames[_F8 + _4W1._QV1] = rotateMix;
this.frames[_F8 + _4W1._RV1] = _OV1
};
_4W1.prototype.apply = function (skeleton,
_GT1, time, _WU1, alpha, _DI, _35) {
var frames = this.frames;
var _GV1 = skeleton._1W1[this.__V1];
if (time < frames[0]) {
switch (_DI) {
case _KT1.setup:
_GV1.rotateMix = _GV1.data.rotateMix;
_GV1._OV1 = _GV1.data._OV1;
return;
case _KT1.first:
_GV1.rotateMix += (_GV1.data.rotateMix - _GV1.rotateMix) * alpha;
_GV1._OV1 += (_GV1.data._OV1 - _GV1._OV1) * alpha
}
return
}
var rotate = 0,
translate = 0;
if (time >= frames[frames.length - _4W1._oU1]) {
rotate = frames[frames.length + _4W1._VV1];
translate = frames[frames.length + _4W1._WV1]
} else {
var _Ga = _FT1._HT1(frames, time,
_4W1._oU1);
rotate = frames[_Ga + _4W1._VV1];
translate = frames[_Ga + _4W1._WV1];
var _rU1 = frames[_Ga];
var _bU1 = this._aU1(_Ga / _4W1._oU1 - 1, 1 - (time - _rU1) / (frames[_Ga + _4W1._sU1] - _rU1));
rotate += (frames[_Ga + _4W1._QV1] - rotate) * _bU1;
translate += (frames[_Ga + _4W1._RV1] - translate) * _bU1;
}
if (_DI == _KT1.setup) {
_GV1.rotateMix = _GV1.data.rotateMix + (rotate - _GV1.data.rotateMix) * alpha;
_GV1._OV1 = _GV1.data._OV1 + (translate - _GV1.data._OV1) * alpha
} else {
_GV1.rotateMix += (rotate - _GV1.rotateMix) * alpha;
_GV1._OV1 += (translate - _GV1._OV1) * alpha
}
};
_4W1._oU1 = 3;
_4W1._sU1 = -3;
_4W1._VV1 = -2;
_4W1._WV1 = -1;
_4W1._QV1 = 1;
_4W1._RV1 = 2;
return _4W1
}(_NT1));
spine._4W1 = _4W1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _18 = (function () {
function _18(data) {
this._O1 = new Array();
this.events = new Array();
this._5W1 = new Array();
this._km1 = new _6W1(this);
this._7W1 = new spine._8W1();
this._9W1 = !1;
this._aW1 = 1;
this._bW1 = new spine._cW1(function () {
return new _dW1()
});
this.data = data
}
_18.prototype._Ba = function (_CB1) {
_CB1 *= this._aW1;
var _O1 = this._O1;
for (var _i2 = 0, _3b = _O1.length; _i2 < _3b; _i2++) {
var current = _O1[_i2];
if (current == null) continue;
current._eW1 = current._fW1;
current._gW1 = current._hW1;
var _iW1 = _CB1 * current._aW1;
if (current._nz1 > 0) {
current._nz1 -= _iW1;
if (current._nz1 > 0) continue;
_iW1 = -current._nz1;
current._nz1 = 0
}
var _3m = current._3m;
if (_3m != null) {
var _jW1 = current._gW1 - _3m._nz1;
if (_jW1 >= 0) {
_3m._nz1 = 0;
_3m._G8 = (_jW1 / current._aW1 + _CB1) * _3m._aW1;
current._G8 += _iW1;
this._kW1(_i2, _3m, !0);
while (_3m._lW1 != null) {
_3m._mW1 += _CB1;
_3m = _3m._lW1
}
continue
}
} else if (current._gW1 >= current._nW1 && current._lW1 == null) {
_O1[_i2] = null;
this._km1.end(current);
this._oW1(current);
continue
}
if (current._lW1 != null && this._pW1(current, _CB1)) {
var from = current._lW1;
current._lW1 = null;
if (from != null) from._qW1 = null;
while (from != null) {
this._km1.end(from);
from = from._lW1;
}
}
current._G8 += _iW1
}
this._km1._rW1()
};
_18.prototype._pW1 = function (_sW1, _CB1) {
var from = _sW1._lW1;
if (from == null) return !0;
var _DL = this._pW1(from, _CB1);
from._eW1 = from._fW1;
from._gW1 = from._hW1;
if (_sW1._mW1 > 0 && _sW1._mW1 >= _sW1._tW1) {
if (from._uW1 == 0 || _sW1._tW1 == 0) {
_sW1._lW1 = from._lW1;
if (from._lW1 != null) from._lW1._qW1 = _sW1;
_sW1._vW1 = from._vW1;
this._km1.end(from)
}
return _DL
}
from._G8 += _CB1 * from._aW1;
_sW1._mW1 += _CB1;
return !1
};
_18.prototype.apply = function (skeleton) {
if (skeleton == null) throw new Error("skeleton cannot be null.");
if (this._9W1) this._wW1();
var events = this.events;
var _O1 = this._O1;
var _xW1 = !1;
for (var _i2 = 0, _3b = _O1.length; _i2 < _3b; _i2++) {
var current = _O1[_i2];
if (current == null || current._nz1 > 0) continue;
_xW1 = !0;
var _DI = _i2 == 0 ? spine._KT1.first : current._yW1;
var mix = current.alpha;
if (current._lW1 != null) mix *= this._zW1(current,
skeleton, _DI);
else if (current._G8 >= current._nW1 && current._3m == null) mix = 0;
var _eW1 = current._eW1,
_AW1 = current._BW1();
var _xa = current._x8._ya.length;
var _ya = current._x8._ya;
if (_i2 == 0 && (mix == 1 || _DI == spine._KT1.add)) {
for (var _Gz = 0; _Gz < _xa; _Gz++) _ya[_Gz].apply(skeleton, _eW1, _AW1, events, mix, _DI, spine._LT1["in"])
} else {
var _CW1 = current._CW1;
var _vz1 = current._DW1.length == 0;
if (_vz1) spine._PT1._3V1(current._DW1, _xa << 1, null);
var _DW1 = current._DW1;
for (var _Gz = 0; _Gz < _xa; _Gz++) {
var _zB = _ya[_Gz];
var _EW1 = _CW1[_Gz] == _18._FW1 ? _DI : spine._KT1.setup;
if (_zB instanceof spine._fU1) {
this._GW1(_zB, skeleton, _AW1, mix, _EW1, _DW1, _Gz << 1, _vz1)
} else {
spine._PT1._HW1(mix, _DI);
_zB.apply(skeleton, _eW1, _AW1, events, mix, _EW1, spine._LT1["in"])
}
}
}
this._IW1(current, _AW1);
events.length = 0;
current._fW1 = _AW1;
current._hW1 = current._G8
}
this._km1._rW1();
return _xW1
};
_18.prototype._zW1 = function (_sW1, skeleton, _DI) {
var from = _sW1._lW1;
if (from._lW1 != null) this._zW1(from, skeleton, _DI);
var mix = 0;
if (_sW1._tW1 == 0) {
mix = 1;
if (_DI == spine._KT1.first) _DI = spine._KT1.setup
} else {
mix = _sW1._mW1 / _sW1._tW1;
if (mix > 1) mix = 1;
if (_DI != spine._KT1.first) _DI = from._yW1
}
var events = mix < from._JW1 ? this.events : null;
var _KW1 = mix < from._LW1,
drawOrder = mix < from._MW1;
var _eW1 = from._eW1,
_AW1 = from._BW1();
var _xa = from._x8._ya.length;
var _ya = from._x8._ya;
var _NW1 = from.alpha * _sW1._vW1,
_OW1 = _NW1 * (1 - mix);
if (_DI == spine._KT1.add) {
for (var _i2 = 0; _i2 < _xa; _i2++) _ya[_i2].apply(skeleton, _eW1, _AW1, events, _OW1, _DI, spine._LT1.out)
} else {
var _CW1 = from._CW1;
var _PW1 = from._PW1;
var _vz1 = from._DW1.length == 0;
if (_vz1) spine._PT1._3V1(from._DW1, _xa << 1, null);
var _DW1 = from._DW1;
from._uW1 = 0;
for (var _i2 = 0; _i2 < _xa; _i2++) {
var _zB = _ya[_i2];
var _EW1;
var alpha = 0;
switch (_CW1[_i2]) {
case _18._FW1:
if (!_KW1 && _zB instanceof spine._PU1) continue;
if (!drawOrder && _zB instanceof spine._wV1) continue;
_EW1 = _DI;
alpha = _OW1;
break;
case _18._QW1:
_EW1 = spine._KT1.setup;
alpha = _OW1;
break;
case _18._RW1:
_EW1 = spine._KT1.setup;
alpha = _NW1;
break;
default:
_EW1 = spine._KT1.setup;
var _SW1 = _PW1[_i2];
alpha = _NW1 * Math.max(0, 1 - _SW1._mW1 / _SW1._tW1);
break
}
from._uW1 += alpha;
if (_zB instanceof spine._fU1) this._GW1(_zB,
skeleton, _AW1, alpha, _EW1, _DW1, _i2 << 1, _vz1);
else {
spine._PT1._HW1(alpha, _DI);
_zB.apply(skeleton, _eW1, _AW1, events, alpha, _EW1, spine._LT1.out)
}
}
}
if (_sW1._tW1 > 0) this._IW1(from, _AW1);
this.events.length = 0;
from._fW1 = _AW1;
from._hW1 = from._G8;
return mix
};
_18.prototype._GW1 = function (_zB, skeleton, time, alpha, _DI, _DW1, _i2, _vz1) {
if (_vz1) _DW1[_i2] = 0;
if (alpha == 1) {
_zB.apply(skeleton, 0, time, null, 1, _DI, spine._LT1["in"]);
return
}
var _TW1 = _zB;
var frames = _TW1.frames;
var bone = skeleton.bones[_TW1._jU1];
if (time < frames[0]) {
if (_DI == spine._KT1.setup) bone.rotation = bone.data.rotation;
return
}
var _iB = 0;
if (time >= frames[frames.length - spine._fU1._oU1]) _iB = bone.data.rotation + frames[frames.length + spine._fU1._pU1];
else {
var _Ga = spine._FT1._HT1(frames, time, spine._fU1._oU1);
var _qU1 = frames[_Ga + spine._fU1._pU1];
var _rU1 = frames[_Ga];
var _bU1 = _TW1._aU1((_Ga >> 1) - 1, 1 - (time - _rU1) / (frames[_Ga + spine._fU1._sU1] - _rU1));
_iB = frames[_Ga + spine._fU1._mU1] - _qU1;
_iB -= (16384 - ((16384.499999999996 - _iB / 360) | 0)) * 360;
_iB = _qU1 + _iB * _bU1 + bone.data.rotation;
_iB -= (16384 - ((16384.499999999996 - _iB / 360) | 0)) * 360
}
var _hB = _DI == spine._KT1.setup ? bone.data.rotation : bone.rotation;
var _LX = 0,
__x = _iB - _hB;
__x -= (16384 - ((16384.499999999996 - __x / 360) | 0)) * 360;
if (__x == 0) {
_LX = _DW1[_i2]
} else {
var _UW1 = 0,
_VW1 = 0;
if (_vz1) {
_UW1 = 0;
_VW1 = __x
} else {
_UW1 = _DW1[_i2];
_VW1 = _DW1[_i2 + 1]
}
var current = __x > 0,
_vP = _UW1 >= 0;
if (spine._cU1._xU1(_VW1) != spine._cU1._xU1(__x) && Math.abs(_VW1) <= 90) {
if (Math.abs(_UW1) > 180) _UW1 += 360 * spine._cU1._xU1(_UW1);
_vP = current
}
_LX = __x + _UW1 - _UW1 % 360;
if (_vP != current) _LX += 360 * spine._cU1._xU1(_UW1);
_DW1[_i2] = _LX
}
_DW1[_i2 + 1] = __x;
_hB += _LX * alpha;
bone.rotation = _hB - (16384 - ((16384.499999999996 - _hB / 360) | 0)) * 360
};
_18.prototype._IW1 = function (_1m, _AW1) {
var _WW1 = _1m._WW1,
_XW1 = _1m._XW1;
var duration = _XW1 - _WW1;
var _YW1 = _1m._gW1 % duration;
var events = this.events;
var _i2 = 0,
_3b = events.length;
for (; _i2 < _3b; _i2++) {
var _ZW1 = events[_i2];
if (_ZW1.time < _YW1) break;
if (_ZW1.time > _XW1) continue;
this._km1.event(_1m, _ZW1)
}
var complete = !1;
if (_1m.loop) complete = duration == 0 || _YW1 > _1m._G8 % duration;
else complete = _AW1 >= _XW1 && _1m._eW1 < _XW1;
if (complete) this._km1.complete(_1m);
for (; _i2 < _3b; _i2++) {
var __W1 = events[_i2];
if (__W1.time < _WW1) continue;
this._km1.event(_1m,
events[_i2])
}
};
_18.prototype._0X1 = function () {
var _1X1 = this._km1._2X1;
this._km1._2X1 = !0;
for (var _i2 = 0, _3b = this._O1.length; _i2 < _3b; _i2++) this._2c(_i2);
this._O1.length = 0;
this._km1._2X1 = _1X1;
this._km1._rW1()
};
_18.prototype._2c = function (_3X1) {
if (_3X1 >= this._O1.length) return;
var current = this._O1[_3X1];
if (current == null) return;
this._km1.end(current);
this._oW1(current);
var _1m = current;
while (!0) {
var from = _1m._lW1;
if (from == null) break;
this._km1.end(from);
_1m._lW1 = null;
_1m._qW1 = null;
_1m = from
}
this._O1[current._3X1] = null;
this._km1._rW1()
};
_18.prototype._kW1 = function (index, current, interrupt) {
var from = this._4X1(index);
this._O1[index] = current;
if (from != null) {
if (interrupt) this._km1.interrupt(from);
current._lW1 = from;
from._qW1 = current;
current._mW1 = 0;
if (from._lW1 != null && from._tW1 > 0) current._vW1 *= Math.min(1, from._mW1 / from._tW1);
from._DW1.length = 0
}
this._km1.start(current)
};
_18.prototype._M8 = function (_3X1, _5X1, loop) {
var _x8 = this.data._6X1._L8(_5X1);
if (_x8 == null) throw new Error("Animation not found: " + _5X1);
return this._7X1(_3X1,
_x8, loop)
};
_18.prototype._7X1 = function (_3X1, _x8, loop) {
if (_x8 == null) throw new Error("animation cannot be null.");
var interrupt = !0;
var current = this._4X1(_3X1);
if (current != null) {
if (current._hW1 == -1) {
this._O1[_3X1] = current._lW1;
this._km1.interrupt(current);
this._km1.end(current);
this._oW1(current);
current = current._lW1;
interrupt = !1
} else this._oW1(current)
}
var _1m = this._8X1(_3X1, _x8, loop, current);
this._kW1(_3X1, _1m, interrupt);
this._km1._rW1();
return _1m
};
_18.prototype._9X1 = function (_3X1, _5X1, loop, _nz1) {
var _x8 = this.data._6X1._L8(_5X1);
if (_x8 == null) throw new Error("Animation not found: " + _5X1);
return this._aX1(_3X1, _x8, loop, _nz1);
};
_18.prototype._aX1 = function (_3X1, _x8, loop, _nz1) {
if (_x8 == null) throw new Error("animation cannot be null.");
var _c2 = this._4X1(_3X1);
if (_c2 != null) {
while (_c2._3m != null) _c2 = _c2._3m
}
var _1m = this._8X1(_3X1, _x8, loop, _c2);
if (_c2 == null) {
this._kW1(_3X1, _1m, !0);
this._km1._rW1()
} else {
_c2._3m = _1m;
if (_nz1 <= 0) {
var duration = _c2._XW1 - _c2._WW1;
if (duration != 0) {
if (_c2.loop) _nz1 += duration * (1 + ((_c2._G8 / duration) | 0));
else _nz1 += Math.max(duration,
_c2._G8);
_nz1 -= this.data._bX1(_c2._x8, _x8)
} else _nz1 = _c2._G8;
}
}
_1m._nz1 = _nz1;
return _1m
};
_18.prototype._cX1 = function (_3X1, _tW1) {
var _1m = this._7X1(_3X1, _18._dX1, !1);
_1m._tW1 = _tW1;
_1m._nW1 = _tW1;
return _1m
};
_18.prototype._eX1 = function (_3X1, _tW1, _nz1) {
if (_nz1 <= 0) _nz1 -= _tW1;
var _1m = this._aX1(_3X1, _18._dX1, !1, _nz1);
_1m._tW1 = _tW1;
_1m._nW1 = _tW1;
return _1m
};
_18.prototype._fX1 = function (_tW1) {
var _1X1 = this._km1._2X1;
this._km1._2X1 = !0;
for (var _i2 = 0, _3b = this._O1.length; _i2 < _3b; _i2++) {
var current = this._O1[_i2];
if (current != null) this._cX1(current._3X1,
_tW1)
}
this._km1._2X1 = _1X1;
this._km1._rW1()
};
_18.prototype._4X1 = function (index) {
if (index < this._O1.length) return this._O1[index];
spine._PT1._gX1(this._O1, index - this._O1.length + 1, null);
this._O1.length = index + 1;
return null
};
_18.prototype._8X1 = function (_3X1, _x8, loop, _c2) {
var _1m = this._bW1._hX1();
_1m._3X1 = _3X1;
_1m._x8 = _x8;
_1m.loop = loop;
_1m._iX1 = !1;
_1m._JW1 = 0;
_1m._LW1 = 0;
_1m._MW1 = 0;
_1m._WW1 = 0;
_1m._XW1 = _x8.duration;
_1m._eW1 = -1;
_1m._fW1 = -1;
_1m._nz1 = 0;
_1m._G8 = 0;
_1m._gW1 = -1;
_1m._hW1 = -1;
_1m._nW1 = Number.MAX_VALUE;
_1m._aW1 = 1;
_1m.alpha = 1;
_1m._vW1 = 1;
_1m._mW1 = 0;
_1m._tW1 = _c2 == null ? 0 : this.data._bX1(_c2._x8, _x8);
return _1m
};
_18.prototype._oW1 = function (_1m) {
var _3m = _1m._3m;
while (_3m != null) {
this._km1.dispose(_3m);
_3m = _3m._3m
}
_1m._3m = null
};
_18.prototype._wW1 = function () {
this._9W1 = !1;
this._7W1.clear();
for (var _i2 = 0, _3b = this._O1.length; _i2 < _3b; _i2++) {
var _1m = this._O1[_i2];
if (_1m == null) continue;
while (_1m._lW1 != null) _1m = _1m._lW1;
do {
if (_1m._lW1 == null || _1m._yW1 != spine._KT1.add) this._jX1(_1m);
_1m = _1m._qW1
} while (_1m != null)
}
};
_18.prototype._jX1 = function (_1m) {
var _sW1 = _1m._qW1;
var _ya = _1m._x8._ya;
var _kX1 = _1m._x8._ya.length;
var _CW1 = spine._PT1._3V1(_1m._CW1, _kX1);
_1m._PW1.length = 0;
var _lX1 = spine._PT1._3V1(_1m._PW1, _kX1);
var _7W1 = this._7W1;
if (_sW1 != null && _sW1._iX1) {
for (var _mX1 = 0; _mX1 < _kX1; _mX1++) {
_7W1.add(_ya[_mX1]._iU1());
_CW1[_mX1] = _18._RW1
}
return
}
_nX1: for (var _i2 = 0; _i2 < _kX1; _i2++) {
var id = _ya[_i2]._iU1();
if (!_7W1.add(id)) _CW1[_i2] = _18._FW1;
else if (_sW1 == null || !this._oX1(_sW1, id)) _CW1[_i2] = _18._QW1;
else {
for (var _3m = _sW1._qW1; _3m != null; _3m = _3m._qW1) {
if (this._oX1(_3m,
id)) continue;
if (_1m._tW1 > 0) {
_CW1[_i2] = _18._pX1;
_lX1[_i2] = _3m;
continue _nX1
}
break
}
_CW1[_i2] = _18._RW1
}
}
};
_18.prototype._oX1 = function (_1m, id) {
var _ya = _1m._x8._ya;
for (var _i2 = 0, _3b = _ya.length; _i2 < _3b; _i2++)
if (_ya[_i2]._iU1() == id) return !0;
return !1
};
_18.prototype._qX1 = function (_3X1) {
if (_3X1 >= this._O1.length) return null;
return this._O1[_3X1]
};
_18.prototype._f8 = function (listener) {
if (listener == null) throw new Error("listener cannot be null.");
this._5W1.push(listener)
};
_18.prototype._rX1 = function (listener) {
var index = this._5W1.indexOf(listener);
if (index >= 0) this._5W1.splice(index, 1)
};
_18.prototype._sX1 = function () {
this._5W1.length = 0
};
_18.prototype._tX1 = function () {
this._km1.clear()
};
_18._dX1 = new spine._FT1("", [], 0);
_18._FW1 = 0;
_18._QW1 = 1;
_18._RW1 = 2;
_18._pX1 = 3;
return _18
}());
spine._18 = _18;
var _dW1 = (function () {
function _dW1() {
this._yW1 = spine._KT1.replace;
this._CW1 = new Array();
this._PW1 = new Array();
this._DW1 = new Array()
}
_dW1.prototype._M31 = function () {
this._3m = null;
this._lW1 = null;
this._qW1 = null;
this._x8 = null;
this.listener = null;
this._CW1.length = 0;
this._PW1.length = 0;
this._DW1.length = 0
};
_dW1.prototype._BW1 = function () {
if (this.loop) {
var duration = this._XW1 - this._WW1;
if (duration == 0) return this._WW1;
return (this._G8 % duration) + this._WW1
}
return Math.min(this._G8 + this._WW1, this._XW1)
};
_dW1.prototype._uX1 = function (_eW1) {
this._eW1 = _eW1;
this._fW1 = _eW1
};
_dW1.prototype._vX1 = function () {
return this._G8 >= this._XW1 - this._WW1
};
_dW1.prototype._wX1 = function () {
this._DW1.length = 0
};
return _dW1
}());
spine._dW1 = _dW1;
var _6W1 = (function () {
function _6W1(_xX1) {
this._yX1 = [];
this._2X1 = !1;
this._xX1 = _xX1
}
_6W1.prototype.start = function (_1m) {
this._yX1.push(_zX1.start);
this._yX1.push(_1m);
this._xX1._9W1 = !0
};
_6W1.prototype.interrupt = function (_1m) {
this._yX1.push(_zX1.interrupt);
this._yX1.push(_1m)
};
_6W1.prototype.end = function (_1m) {
this._yX1.push(_zX1.end);
this._yX1.push(_1m);
this._xX1._9W1 = !0
};
_6W1.prototype.dispose = function (_1m) {
this._yX1.push(_zX1.dispose);
this._yX1.push(_1m)
};
_6W1.prototype.complete = function (_1m) {
this._yX1.push(_zX1.complete);
this._yX1.push(_1m);
};
_6W1.prototype.event = function (_1m,
event) {
this._yX1.push(_zX1.event);
this._yX1.push(_1m);
this._yX1.push(event)
};
_6W1.prototype._rW1 = function () {
if (this._2X1) return;
this._2X1 = !0;
var _yX1 = this._yX1;
var _5W1 = this._xX1._5W1;
for (var _i2 = 0; _i2 < _yX1.length; _i2 += 2) {
var type = _yX1[_i2];
var _1m = _yX1[_i2 + 1];
switch (type) {
case _zX1.start:
if (_1m.listener != null && _1m.listener.start) _1m.listener.start(_1m);
for (var _Gz = 0; _Gz < _5W1.length; _Gz++)
if (_5W1[_Gz].start) _5W1[_Gz].start(_1m);
break;
case _zX1.interrupt:
if (_1m.listener != null && _1m.listener.interrupt) _1m.listener.interrupt(_1m);
for (var _Gz = 0; _Gz < _5W1.length; _Gz++)
if (_5W1[_Gz].interrupt) _5W1[_Gz].interrupt(_1m);
break;
case _zX1.end:
if (_1m.listener != null && _1m.listener.end) _1m.listener.end(_1m);
for (var _Gz = 0; _Gz < _5W1.length; _Gz++)
if (_5W1[_Gz].end) _5W1[_Gz].end(_1m);
case _zX1.dispose:
if (_1m.listener != null && _1m.listener.dispose) _1m.listener.dispose(_1m);
for (var _Gz = 0; _Gz < _5W1.length; _Gz++)
if (_5W1[_Gz].dispose) _5W1[_Gz].dispose(_1m);
this._xX1._bW1._AX1(_1m);
break;
case _zX1.complete:
if (_1m.listener != null && _1m.listener.complete) _1m.listener.complete(_1m);
for (var _Gz = 0; _Gz < _5W1.length; _Gz++)
if (_5W1[_Gz].complete) _5W1[_Gz].complete(_1m);
break;
case _zX1.event:
var _BX1 = _yX1[_i2++ + 2];
if (_1m.listener != null && _1m.listener.event) _1m.listener.event(_1m, _BX1);
for (var _Gz = 0; _Gz < _5W1.length; _Gz++)
if (_5W1[_Gz].event) _5W1[_Gz].event(_1m, _BX1);
break
}
}
this.clear();
this._2X1 = !1
};
_6W1.prototype.clear = function () {
this._yX1.length = 0
};
return _6W1
}());
spine._6W1 = _6W1;
var _zX1;
(function (_zX1) {
_zX1[_zX1["start"] = 0] = "start";
_zX1[_zX1["interrupt"] = 1] = "interrupt";
_zX1[_zX1["end"] = 2] = "end";
_zX1[_zX1["dispose"] = 3] = "dispose";
_zX1[_zX1["complete"] = 4] = "complete";
_zX1[_zX1["event"] = 5] = "event"
})(_zX1 = spine._zX1 || (spine._zX1 = {}));
var _CX1 = (function () {
function _CX1() {}
_CX1.prototype.start = function (_1m) {};
_CX1.prototype.interrupt = function (_1m) {};
_CX1.prototype.end = function (_1m) {};
_CX1.prototype.dispose = function (_1m) {};
_CX1.prototype.complete = function (_1m) {};
_CX1.prototype.event = function (_1m, event) {};
return _CX1
}());
spine._CX1 = _CX1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _08 = (function () {
function _08(_6X1) {
this._DX1 = {};
this._EX1 = 0;
if (_6X1 == null) throw new Error("skeletonData cannot be null.");
this._6X1 = _6X1
}
_08.prototype._V8 = function (_FX1, _GX1, duration) {
var from = this._6X1._L8(_FX1);
if (from == null) throw new Error("Animation not found: " + _FX1);
var _sW1 = this._6X1._L8(_GX1);
if (_sW1 == null) throw new Error("Animation not found: " + _GX1);
this._HX1(from, _sW1, duration)
};
_08.prototype._HX1 = function (from, _sW1, duration) {
if (from == null) throw new Error("from cannot be null.");
if (_sW1 == null) throw new Error("to cannot be null.");
var key = from.name + "." + _sW1.name;
this._DX1[key] = duration
};
_08.prototype._bX1 = function (from, _sW1) {
var key = from.name + "." + _sW1.name;
var value = this._DX1[key];
return value === undefined ? this._EX1 : value
};
return _08
}());
spine._08 = _08
})(spine || (spine = {}));
var spine;
(function (spine) {
var _IX1 = (function () {
function _IX1(_JX1, _KX1) {
if (_KX1 === void 0) {
_KX1 = ""
}
this._4M = {};
this._LX1 = {};
this._MX1 = 0;
this._KX = 0;
this._JX1 = _JX1;
this._KX1 = _KX1
}
_IX1._NX1 = function (_IV, _OX1, error) {
var _NX = new XMLHttpRequest();
_NX.open("GET", _IV, !0);
_NX.onload = function () {
if (_NX.status == 200) {
_OX1(_NX.responseText)
} else {
error(_NX.status, _NX.responseText)
}
};
_NX.onerror = function () {
error(_NX.status, _NX.responseText)
};
_NX.send()
};
_IX1._PX1 = function (_IV, _OX1, error) {
var _NX = new XMLHttpRequest();
_NX.open("GET", _IV, !0);
_NX.responseType = "arraybuffer";
_NX.onload = function () {
if (_NX.status == 200) {
_OX1(new Uint8Array(_NX.response))
} else {
error(_NX.status, _NX.responseText)
}
};
_NX.onerror = function () {
error(_NX.status, _NX.responseText);
};
_NX.send()
};
_IX1.prototype._QX1 = function (path, _OX1,
error) {
var _hU1 = this;
if (_OX1 === void 0) {
_OX1 = null
}
if (error === void 0) {
error = null
}
path = this._KX1 + path;
this._MX1++;
_IX1._NX1(path, function (data) {
_hU1._4M[path] = data;
if (_OX1) _OX1(path, data);
_hU1._MX1--;
_hU1._KX++
}, function (state, responseText) {
_hU1._LX1[path] = "Couldn't load text " + path + ": status " + status + ", " + responseText;
if (error) error(path, "Couldn't load text " + path + ": status " + status + ", " + responseText);
_hU1._MX1--;
_hU1._KX++
})
};
_IX1.prototype._Wc = function (path, _OX1, error) {
var _hU1 = this;
if (_OX1 === void 0) {
_OX1 = null
}
if (error === void 0) {
error = null
}
path = this._KX1 + path;
this._MX1++;
var img = new Image();
img.crossOrigin = _RX1;
img.onload = function (_SX1) {
var _A9 = _hU1._JX1(img);
_hU1._4M[path] = _A9;
_hU1._MX1--;
_hU1._KX++;
if (_OX1) _OX1(path, img)
};
img.onerror = function (_SX1) {
_hU1._LX1[path] = "Couldn't load image " + path;
_hU1._MX1--;
_hU1._KX++;
if (error) error(path, "Couldn't load image " + path)
};
img.src = _jW(null, null, path)
};
_IX1.prototype._TX1 = function (path, data, _OX1, error) {
var _hU1 = this;
if (_OX1 === void 0) {
_OX1 = null
}
if (error === void 0) {
error = null
}
path = this._KX1 + path;
this._MX1++;
var img = new Image();
img.onload = function (_SX1) {
var _A9 = _hU1._JX1(img);
_hU1._4M[path] = _A9;
_hU1._MX1--;
_hU1._KX++;
if (_OX1) _OX1(path, img)
};
img.onerror = function (_SX1) {
_hU1._LX1[path] = "Couldn't load image " + path;
_hU1._MX1--;
_hU1._KX++;
if (error) error(path, "Couldn't load image " + path)
};
img.src = data
};
_IX1.prototype._UX1 = function (path, _OX1, error) {
var _hU1 = this;
if (_OX1 === void 0) {
_OX1 = null
}
if (error === void 0) {
error = null
}
var parent = path.lastIndexOf("/") >= 0 ? path.substring(0,
path.lastIndexOf("/")) : "";
path = this._KX1 + path;
this._MX1++;
_IX1._NX1(path, function (_VX1) {
var _WX1 = {
_Jc: 0
};
var _XX1 = new Array();
try {
var _X9 = new spine._Y9(_VX1, function (path) {
_XX1.push(parent + "/" + path);
var _I9 = document.createElement("img");
_I9.width = 16;
_I9.height = 16;
return new spine._YX1(_I9)
})
} catch (e) {
var _bB = e;
_hU1._LX1[path] = "Couldn't load texture atlas " + path + ": " + _bB.message;
if (error) error(path, "Couldn't load texture atlas " + path + ": " + _bB.message);
_hU1._MX1--;
_hU1._KX++;
return
}
var _ZX1 = function (_Rd) {
var __X1 = !1;
_hU1._Wc(_Rd, function (_0Y1, _I9) {
_WX1._Jc++;
if (_WX1._Jc == _XX1.length) {
if (!__X1) {
try {
var _X9 = new spine._Y9(_VX1, function (path) {
return _hU1.get(parent + "/" + path)
});
_hU1._4M[path] = _X9;
if (_OX1) _OX1(path, _X9);
_hU1._MX1--;
_hU1._KX++
} catch (e) {
var _bB = e;
_hU1._LX1[path] = "Couldn't load texture atlas " + path + ": " + _bB.message;
if (error) error(path, "Couldn't load texture atlas " + path + ": " + _bB.message);
_hU1._MX1--;
_hU1._KX++
}
} else {
_hU1._LX1[path] = "Couldn't load texture atlas page " + _0Y1 + "} of atlas " + path;
if (error) error(path,
"Couldn't load texture atlas page " + _0Y1 + " of atlas " + path);
_hU1._MX1--;
_hU1._KX++
}
}
}, function (_0Y1, _1Y1) {
__X1 = !0;
_WX1._Jc++;
if (_WX1._Jc == _XX1.length) {
_hU1._LX1[path] = "Couldn't load texture atlas page " + _0Y1 + "} of atlas " + path;
if (error) error(path, "Couldn't load texture atlas page " + _0Y1 + " of atlas " + path);
_hU1._MX1--;
_hU1._KX++
}
})
};
for (var _2Y1 = 0, _3Y1 = _XX1; _2Y1 < _3Y1.length; _2Y1++) {
var _Rd = _3Y1[_2Y1];
_ZX1(_Rd)
}
}, function (state, responseText) {
_hU1._LX1[path] = "Couldn't load texture atlas " + path + ": status " + status + ", " + responseText;
if (error) error(path, "Couldn't load texture atlas " + path + ": status " + status + ", " + responseText);
_hU1._MX1--;
_hU1._KX++
})
};
_IX1.prototype.get = function (path) {
path = this._KX1 + path;
return this._4M[path]
};
_IX1.prototype.remove = function (path) {
path = this._KX1 + path;
var _4Y1 = this._4M[path];
if (_4Y1.dispose) _4Y1.dispose();
this._4M[path] = null
};
_IX1.prototype._5Y1 = function () {
for (var key in this._4M) {
var _4Y1 = this._4M[key];
if (_4Y1.dispose) _4Y1.dispose()
}
this._4M = {}
};
_IX1.prototype._6Y1 = function () {
return this._MX1 == 0
};
_IX1.prototype._7Y1 = function () {
return this._MX1
};
_IX1.prototype._8Y1 = function () {
return this._KX
};
_IX1.prototype.dispose = function () {
this._5Y1()
};
_IX1.prototype._9Y1 = function () {
return Object._aY1(this._LX1).length > 0
};
_IX1.prototype._bY1 = function () {
return this._LX1
};
return _IX1
}());
spine._IX1 = _IX1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _1a = (function () {
function _1a(_X9) {
this._X9 = _X9
}
_1a.prototype._3a = function (skin, name, path) {
var _L9 = this._X9._cY1(path);
if (_L9 == null) throw new Error("Region not found in atlas: " + path + " (region attachment: " + name + ")");
_L9._Od = _L9;
var attachment = new spine._pd(name);
attachment._dY1(_L9);
return attachment
};
_1a.prototype._eY1 = function (skin, name, path) {
var _L9 = this._X9._cY1(path);
if (_L9 == null) throw new Error("Region not found in atlas: " + path + " (mesh attachment: " + name + ")");
_L9._Od = _L9;
var attachment = new spine._rd(name);
attachment._L9 = _L9;
return attachment
};
_1a.prototype._fY1 = function (skin, name) {
return new spine._td(name)
};
_1a.prototype._gY1 = function (skin, name) {
return new spine._hY1(name)
};
_1a.prototype._iY1 = function (skin, name) {
return new spine._jY1(name)
};
_1a.prototype._kY1 = function (skin, name) {
return new spine._Ud(name)
};
return _1a
}());
spine._1a = _1a
})(spine || (spine = {}));
var spine;
(function (spine) {
var _ce;
(function (_ce) {
_ce[_ce["Normal"] = 0] = "Normal";
_ce[_ce["Additive"] = 1] = "Additive";
_ce[_ce["Multiply"] = 2] = "Multiply";
_ce[_ce["Screen"] = 3] = "Screen"
})(_ce = spine._ce || (spine._ce = {}))
})(spine || (spine = {}));
var spine;
(function (spine) {
var _lY1 = (function () {
function _lY1(data, skeleton, parent) {
this._H31 = new Array();
this.x = 0;
this.y = 0;
this.rotation = 0;
this.scaleX = 0;
this.scaleY = 0;
this.shearX = 0;
this.shearY = 0;
this._5M = 0;
this._6M = 0;
this._Yb = 0;
this._mY1 = 0;
this._nY1 = 0;
this._oY1 = 0;
this._pY1 = 0;
this._qY1 = !1;
this._a9 = 0;
this._99 = 0;
this._Sb = 0;
this._j2 = 0;
this._Xn = 0;
this._Tb = 0;
this._rY1 = !1;
if (data == null) throw new Error("data cannot be null.");
if (skeleton == null) throw new Error("skeleton cannot be null.");
this.data = data;
this.skeleton = skeleton;
this.parent = parent;
this._sY1()
}
_lY1.prototype._Ba = function () {
this._tY1(this.x, this.y, this.rotation, this.scaleX, this.scaleY,
this.shearX, this.shearY)
};
_lY1.prototype._ka = function () {
this._tY1(this.x, this.y, this.rotation, this.scaleX, this.scaleY, this.shearX, this.shearY)
};
_lY1.prototype._tY1 = function (x, y, rotation, scaleX, scaleY, shearX, shearY) {
this._5M = x;
this._6M = y;
this._Yb = rotation;
this._mY1 = scaleX;
this._nY1 = scaleY;
this._oY1 = shearX;
this._pY1 = shearY;
this._qY1 = !0;
var parent = this.parent;
if (parent == null) {
var skeleton = this.skeleton;
var _uY1 = rotation + 90 + shearY;
var _eP = skeleton.scaleX;
var _fP = skeleton.scaleY;
this._a9 = spine._cU1._vY1(rotation + shearX) * scaleX * _eP;
this._99 = spine._cU1._vY1(_uY1) * scaleY * _fP;
this._j2 = spine._cU1._wY1(rotation + shearX) * scaleX * _eP;
this._Xn = spine._cU1._wY1(_uY1) * scaleY * _fP;
this._Sb = x * _eP + skeleton.x;
this._Tb = y * _fP + skeleton.y;
return
}
var _Tn1 = parent._a9,
_Un1 = parent._99,
_ym1 = parent._j2,
_xY1 = parent._Xn;
this._Sb = _Tn1 * x + _Un1 * y + parent._Sb;
this._Tb = _ym1 * x + _xY1 * y + parent._Tb;
switch (this.data._yY1) {
case spine._zY1.Normal: {
var _uY1 = rotation + 90 + shearY;
var _AY1 = spine._cU1._vY1(rotation + shearX) * scaleX;
var _BY1 = spine._cU1._vY1(_uY1) * scaleY;
var _CY1 = spine._cU1._wY1(rotation + shearX) * scaleX;
var _DY1 = spine._cU1._wY1(_uY1) * scaleY;
this._a9 = _Tn1 * _AY1 + _Un1 * _CY1;
this._99 = _Tn1 * _BY1 + _Un1 * _DY1;
this._j2 = _ym1 * _AY1 + _xY1 * _CY1;
this._Xn = _ym1 * _BY1 + _xY1 * _DY1;
return
}
case spine._zY1.OnlyTranslation: {
var _uY1 = rotation + 90 + shearY;
this._a9 = spine._cU1._vY1(rotation + shearX) * scaleX;
this._99 = spine._cU1._vY1(_uY1) * scaleY;
this._j2 = spine._cU1._wY1(rotation + shearX) * scaleX;
this._Xn = spine._cU1._wY1(_uY1) * scaleY;
break
}
case spine._zY1.NoRotationOrReflection: {
var _wy = _Tn1 * _Tn1 + _ym1 * _ym1;
var _EY1 = 0;
if (_wy > 0.0001) {
_wy = Math.abs(_Tn1 * _xY1 - _Un1 * _ym1) / _wy;
_Un1 = _ym1 * _wy;
_xY1 = _Tn1 * _wy;
_EY1 = Math.atan2(_ym1, _Tn1) * spine._cU1._FY1
} else {
_Tn1 = 0;
_ym1 = 0;
_EY1 = 90 - Math.atan2(_xY1, _Un1) * spine._cU1._FY1
}
var _Cu = rotation + shearX - _EY1;
var _Du = rotation + shearY - _EY1 + 90;
var _AY1 = spine._cU1._vY1(_Cu) * scaleX;
var _BY1 = spine._cU1._vY1(_Du) * scaleY;
var _CY1 = spine._cU1._wY1(_Cu) * scaleX;
var _DY1 = spine._cU1._wY1(_Du) * scaleY;
this._a9 = _Tn1 * _AY1 - _Un1 * _CY1;
this._99 = _Tn1 * _BY1 - _Un1 * _DY1;
this._j2 = _ym1 * _AY1 + _xY1 * _CY1;
this._Xn = _ym1 * _BY1 + _xY1 * _DY1;
break
}
case spine._zY1.NoScale:
case spine._zY1.NoScaleOrReflection: {
var cos = spine._cU1._vY1(rotation);
var sin = spine._cU1._wY1(rotation);
var _Ap = (_Tn1 * cos + _Un1 * sin) / this.skeleton.scaleX;
var _GY1 = (_ym1 * cos + _xY1 * sin) / this.skeleton.scaleY;
var _wy = Math.sqrt(_Ap * _Ap + _GY1 * _GY1);
if (_wy > 0.00001) _wy = 1 / _wy;
_Ap *= _wy;
_GY1 *= _wy;
_wy = Math.sqrt(_Ap * _Ap + _GY1 * _GY1);
var _79 = Math.PI / 2 + Math.atan2(_GY1, _Ap);
var _HY1 = Math.cos(_79) * _wy;
var _IY1 = Math.sin(_79) * _wy;
var _AY1 = spine._cU1._vY1(shearX) * scaleX;
var _BY1 = spine._cU1._vY1(90 + shearY) * scaleY;
var _CY1 = spine._cU1._wY1(shearX) * scaleX;
var _DY1 = spine._cU1._wY1(90 + shearY) * scaleY;
this._a9 = _Ap * _AY1 + _HY1 * _CY1;
this._99 = _Ap * _BY1 + _HY1 * _DY1;
this._j2 = _GY1 * _AY1 + _IY1 * _CY1;
this._Xn = _GY1 * _BY1 + _IY1 * _DY1;
break
}
}
this._a9 *= this.skeleton.scaleX;
this._99 *= this.skeleton.scaleX;
this._j2 *= this.skeleton.scaleY;
this._Xn *= this.skeleton.scaleY
};
_lY1.prototype._sY1 = function () {
var data = this.data;
this.x = data.x;
this.y = data.y;
this.rotation = data.rotation;
this.scaleX = data.scaleX;
this.scaleY = data.scaleY;
this.shearX = data.shearX;
this.shearY = data.shearY
};
_lY1.prototype._Ub = function () {
return Math.atan2(this._j2,
this._a9) * spine._cU1._FY1
};
_lY1.prototype._Vb = function () {
return Math.atan2(this._Xn, this._99) * spine._cU1._FY1
};
_lY1.prototype._Wb = function () {
return Math.sqrt(this._a9 * this._a9 + this._j2 * this._j2)
};
_lY1.prototype._Xb = function () {
return Math.sqrt(this._99 * this._99 + this._Xn * this._Xn)
};
_lY1.prototype._JY1 = function () {
this._qY1 = !0;
var parent = this.parent;
if (parent == null) {
this._5M = this._Sb;
this._6M = this._Tb;
this._Yb = Math.atan2(this._j2, this._a9) * spine._cU1._FY1;
this._mY1 = Math.sqrt(this._a9 * this._a9 + this._j2 * this._j2);
this._nY1 = Math.sqrt(this._99 * this._99 + this._Xn * this._Xn);
this._oY1 = 0;
this._pY1 = Math.atan2(this._a9 * this._99 + this._j2 * this._Xn, this._a9 * this._Xn - this._99 * this._j2) * spine._cU1._FY1;
return
}
var _Tn1 = parent._a9,
_Un1 = parent._99,
_ym1 = parent._j2,
_xY1 = parent._Xn;
var _KY1 = 1 / (_Tn1 * _xY1 - _Un1 * _ym1);
var _of = this._Sb - parent._Sb,
_pf = this._Tb - parent._Tb;
this._5M = (_of * _xY1 * _KY1 - _pf * _Un1 * _KY1);
this._6M = (_pf * _Tn1 * _KY1 - _of * _ym1 * _KY1);
var _LY1 = _KY1 * _xY1;
var id = _KY1 * _Tn1;
var _MY1 = _KY1 * _Un1;
var _NY1 = _KY1 * _ym1;
var _OY1 = _LY1 * this._a9 - _MY1 * this._j2;
var _PY1 = _LY1 * this._99 - _MY1 * this._Xn;
var _QY1 = id * this._j2 - _NY1 * this._a9;
var _RY1 = id * this._Xn - _NY1 * this._99;
this._oY1 = 0;
this._mY1 = Math.sqrt(_OY1 * _OY1 + _QY1 * _QY1);
if (this._mY1 > 0.0001) {
var _751 = _OY1 * _RY1 - _PY1 * _QY1;
this._nY1 = _751 / this._mY1;
this._pY1 = Math.atan2(_OY1 * _PY1 + _QY1 * _RY1, _751) * spine._cU1._FY1;
this._Yb = Math.atan2(_QY1, _OY1) * spine._cU1._FY1
} else {
this._mY1 = 0;
this._nY1 = Math.sqrt(_PY1 * _PY1 + _RY1 * _RY1);
this._pY1 = 0;
this._Yb = 90 - Math.atan2(_RY1, _PY1) * spine._cU1._FY1
}
};
_lY1.prototype._SY1 = function (_dg1) {
var _a9 = this._a9,
_99 = this._99,
_j2 = this._j2,
_Xn = this._Xn;
var _TY1 = 1 / (_a9 * _Xn - _99 * _j2);
var x = _dg1.x - this._Sb,
y = _dg1.y - this._Tb;
_dg1.x = (x * _Xn * _TY1 - y * _99 * _TY1);
_dg1.y = (y * _a9 * _TY1 - x * _j2 * _TY1);
return _dg1
};
_lY1.prototype._UY1 = function (_VY1) {
var x = _VY1.x,
y = _VY1.y;
_VY1.x = x * this._a9 + y * this._99 + this._Sb;
_VY1.y = x * this._j2 + y * this._Xn + this._Tb;
return _VY1
};
_lY1.prototype._WY1 = function (_XY1) {
var sin = spine._cU1._wY1(_XY1),
cos = spine._cU1._vY1(_XY1);
return Math.atan2(this._a9 * sin - this._j2 * cos, this._Xn * cos - this._99 * sin) * spine._cU1._FY1 + this.rotation - this.shearX;
};
_lY1.prototype._YY1 = function (_ZY1) {
_ZY1 -= this.rotation - this.shearX;
var sin = spine._cU1._wY1(_ZY1),
cos = spine._cU1._vY1(_ZY1);
return Math.atan2(cos * this._j2 + sin * this._Xn, cos * this._a9 + sin * this._99) * spine._cU1._FY1
};
_lY1.prototype.__Y1 = function (_lU1) {
var _a9 = this._a9,
_99 = this._99,
_j2 = this._j2,
_Xn = this._Xn;
var cos = spine._cU1._vY1(_lU1),
sin = spine._cU1._wY1(_lU1);
this._a9 = cos * _a9 - sin * _j2;
this._99 = cos * _99 - sin * _Xn;
this._j2 = sin * _a9 + cos * _j2;
this._Xn = sin * _99 + cos * _Xn;
this._qY1 = !1
};
return _lY1
}());
spine._lY1 = _lY1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _0Z1 = (function () {
function _0Z1(index, name, parent) {
this.x = 0;
this.y = 0;
this.rotation = 0;
this.scaleX = 1;
this.scaleY = 1;
this.shearX = 0;
this.shearY = 0;
this._yY1 = _zY1.Normal;
if (index < 0) throw new Error("index must be >= 0.");
if (name == null) throw new Error("name cannot be null.");
this.index = index;
this.name = name;
this.parent = parent
}
return _0Z1
}());
spine._0Z1 = _0Z1;
var _zY1;
(function (_zY1) {
_zY1[_zY1["Normal"] = 0] = "Normal";
_zY1[_zY1["OnlyTranslation"] = 1] = "OnlyTranslation";
_zY1[_zY1["NoRotationOrReflection"] = 2] = "NoRotationOrReflection";
_zY1[_zY1["NoScale"] = 3] = "NoScale";
_zY1[_zY1["NoScaleOrReflection"] = 4] = "NoScaleOrReflection"
})(_zY1 = spine._zY1 || (spine._zY1 = {}))
})(spine || (spine = {}));
var spine;
(function (spine) {
var _DB = (function () {
function _DB(time, data) {
if (data == null) throw new Error("data cannot be null.");
this.time = time;
this.data = data
}
return _DB
}());
spine._DB = _DB
})(spine || (spine = {}));
var spine;
(function (spine) {
var _1Z1 = (function () {
function _1Z1(name) {
this.name = name
}
return _1Z1
}());
spine._1Z1 = _1Z1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _2Z1 = (function () {
function _2Z1(data, skeleton) {
this._BV1 = 0;
this.compress = !1;
this._V1 = !1;
this.mix = 1;
if (data == null) throw new Error("data cannot be null.");
if (skeleton == null) throw new Error("skeleton cannot be null.");
this.data = data;
this.mix = data.mix;
this._BV1 = data._BV1;
this.compress = data.compress;
this._V1 = data._V1;
this.bones = new Array();
for (var _i2 = 0; _i2 < data.bones.length; _i2++) this.bones.push(skeleton._Nb(data.bones[_i2].name));
this.target = skeleton._Nb(data.target.name)
}
_2Z1.prototype._3Z1 = function () {
return this.data._4Z1
};
_2Z1.prototype.apply = function () {
this._Ba()
};
_2Z1.prototype._Ba = function () {
var target = this.target;
var bones = this.bones;
switch (bones.length) {
case 1:
this._5Z1(bones[0], target._Sb, target._Tb, this.compress, this._V1, this.data._6Z1, this.mix);
break;
case 2:
this._7Z1(bones[0], bones[1], target._Sb, target._Tb, this._BV1, this._V1, this.mix);
break
}
};
_2Z1.prototype._5Z1 = function (bone, _8Z1, _9Z1, compress, _V1, _6Z1, alpha) {
if (!bone._qY1) bone._JY1();
var _gE = bone.parent;
var id = 1 / (_gE._a9 * _gE._Xn - _gE._99 * _gE._j2);
var x = _8Z1 - _gE._Sb,
y = _9Z1 - _gE._Tb;
var _aZ1 = (x * _gE._Xn - y * _gE._99) * id - bone._5M,
_bZ1 = (y * _gE._a9 - x * _gE._j2) * id - bone._6M;
var _cZ1 = Math.atan2(_bZ1, _aZ1) * spine._cU1._FY1 - bone._oY1 - bone._Yb;
if (bone._mY1 < 0) _cZ1 += 180;
if (_cZ1 > 180) _cZ1 -= 360;
else if (_cZ1 < -180) _cZ1 += 360;
var _eP = bone._mY1,
_fP = bone._nY1;
if (compress || _V1) {
var _99 = bone.data.length * _eP,
_vF = Math.sqrt(_aZ1 * _aZ1 + _bZ1 * _bZ1);
if ((compress && _vF < _99) || (_V1 && _vF > _99) && _99 > 0.0001) {
var _wy = (_vF / _99 - 1) * alpha + 1;
_eP *= _wy;
if (_6Z1) _fP *= _wy
}
}
bone._tY1(bone._5M, bone._6M, bone._Yb + _cZ1 * alpha,
_eP, _fP, bone._oY1, bone._pY1)
};
_2Z1.prototype._7Z1 = function (parent, _dZ1, _8Z1, _9Z1, _eZ1, _V1, alpha) {
if (alpha == 0) {
_dZ1._ka();
return
}
if (!parent._qY1) parent._JY1();
if (!_dZ1._qY1) _dZ1._JY1();
var _Ln = parent._5M,
_Mn = parent._6M,
_fZ1 = parent._mY1,
_eP = _fZ1,
_gZ1 = parent._nY1,
_hZ1 = _dZ1._mY1;
var _iZ1 = 0,
_jZ1 = 0,
_5w = 0;
if (_fZ1 < 0) {
_fZ1 = -_fZ1;
_iZ1 = 180;
_5w = -1
} else {
_iZ1 = 0;
_5w = 1
}
if (_gZ1 < 0) {
_gZ1 = -_gZ1;
_5w = -_5w
}
if (_hZ1 < 0) {
_hZ1 = -_hZ1;
_jZ1 = 180
} else _jZ1 = 0;
var _Dn = _dZ1._5M,
_En = 0,
_kZ1 = 0,
_lZ1 = 0,
_a9 = parent._a9,
_99 = parent._99,
_j2 = parent._j2,
_Xn = parent._Xn;
var _N9 = Math.abs(_fZ1 - _gZ1) <= 0.0001;
if (!_N9) {
_En = 0;
_kZ1 = _a9 * _Dn + parent._Sb;
_lZ1 = _j2 * _Dn + parent._Tb
} else {
_En = _dZ1._6M;
_kZ1 = _a9 * _Dn + _99 * _En + parent._Sb;
_lZ1 = _j2 * _Dn + _Xn * _En + parent._Tb
}
var _mZ1 = parent.parent;
_a9 = _mZ1._a9;
_99 = _mZ1._99;
_j2 = _mZ1._j2;
_Xn = _mZ1._Xn;
var id = 1 / (_a9 * _Xn - _99 * _j2),
x = _8Z1 - _mZ1._Sb,
y = _9Z1 - _mZ1._Tb;
var _aZ1 = (x * _Xn - y * _99) * id - _Ln,
_bZ1 = (y * _a9 - x * _j2) * id - _Mn,
_vF = _aZ1 * _aZ1 + _bZ1 * _bZ1;
x = _kZ1 - _mZ1._Sb;
y = _lZ1 - _mZ1._Tb;
var _of = (x * _Xn - y * _99) * id - _Ln,
_pf = (y * _a9 - x * _j2) * id - _Mn;
var _nZ1 = Math.sqrt(_of * _of + _pf * _pf),
_xE1 = _dZ1.data.length * _hZ1,
_h_ = 0,
_i_ = 0;
_nX1: if (_N9) {
_xE1 *= _fZ1;
var cos = (_vF - _nZ1 * _nZ1 - _xE1 * _xE1) / (2 * _nZ1 * _xE1);
if (cos < -1) cos = -1;
else if (cos > 1) {
cos = 1;
if (_V1 && _nZ1 + _xE1 > 0.0001) _eP *= (Math.sqrt(_vF) / (_nZ1 + _xE1) - 1) * alpha + 1
}
_i_ = Math.acos(cos) * _eZ1;
_a9 = _nZ1 + _xE1 * cos;
_99 = _xE1 * Math.sin(_i_);
_h_ = Math.atan2(_bZ1 * _a9 - _aZ1 * _99, _aZ1 * _a9 + _bZ1 * _99)
} else {
_a9 = _fZ1 * _xE1;
_99 = _gZ1 * _xE1;
var _oZ1 = _a9 * _a9,
__D = _99 * _99,
_pZ1 = Math.atan2(_bZ1, _aZ1);
_j2 = __D * _nZ1 * _nZ1 + _oZ1 * _vF - _oZ1 * __D;
var _251 = -2 * __D * _nZ1,
_351 = __D - _oZ1;
_Xn = _251 * _251 - 4 * _351 * _j2;
if (_Xn >= 0) {
var _qC = Math.sqrt(_Xn);
if (_251 < 0) _qC = -_qC;
_qC = -(_251 + _qC) / 2;
var _Ep1 = _qC / _351,
_hB = _j2 / _qC;
var _79 = Math.abs(_Ep1) < Math.abs(_hB) ? _Ep1 : _hB;
if (_79 * _79 <= _vF) {
y = Math.sqrt(_vF - _79 * _79) * _eZ1;
_h_ = _pZ1 - Math.atan2(y, _79);
_i_ = Math.atan2(y / _gZ1, (_79 - _nZ1) / _fZ1);
break _nX1
}
}
var _qZ1 = spine._cU1.PI,
_La = _nZ1 - _a9,
_rZ1 = _La * _La,
_Na = 0;
var _sZ1 = 0,
_Ma = _nZ1 + _a9,
_tZ1 = _Ma * _Ma,
_Oa = 0;
_j2 = -_a9 * _nZ1 / (_oZ1 - __D);
if (_j2 >= -1 && _j2 <= 1) {
_j2 = Math.acos(_j2);
x = _a9 * Math.cos(_j2) + _nZ1;
y = _99 * Math.sin(_j2);
_Xn = x * x + y * y;
if (_Xn < _rZ1) {
_qZ1 = _j2;
_rZ1 = _Xn;
_La = x;
_Na = y
}
if (_Xn > _tZ1) {
_sZ1 = _j2;
_tZ1 = _Xn;
_Ma = x;
_Oa = y
}
}
if (_vF <= (_rZ1 + _tZ1) / 2) {
_h_ = _pZ1 - Math.atan2(_Na * _eZ1, _La);
_i_ = _qZ1 * _eZ1
} else {
_h_ = _pZ1 - Math.atan2(_Oa * _eZ1, _Ma);
_i_ = _sZ1 * _eZ1
}
}
var _VA1 = Math.atan2(_En, _Dn) * _5w;
var rotation = parent._Yb;
_h_ = (_h_ - _VA1) * spine._cU1._FY1 + _iZ1 - rotation;
if (_h_ > 180) _h_ -= 360;
else if (_h_ < -180) _h_ += 360;
parent._tY1(_Ln, _Mn, rotation + _h_ * alpha, _eP, parent._nY1, 0, 0);
rotation = _dZ1._Yb;
_i_ = ((_i_ + _VA1) * spine._cU1._FY1 - _dZ1._oY1) * _5w + _jZ1 - rotation;
if (_i_ > 180) _i_ -= 360;
else if (_i_ < -180) _i_ += 360;
_dZ1._tY1(_Dn, _En, rotation + _i_ * alpha, _dZ1._mY1, _dZ1._nY1, _dZ1._oY1, _dZ1._pY1)
};
return _2Z1
}());
spine._2Z1 = _2Z1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _uZ1 = (function () {
function _uZ1(name) {
this._4Z1 = 0;
this.bones = new Array();
this._BV1 = 1;
this.compress = !1;
this._V1 = !1;
this._6Z1 = !1;
this.mix = 1;
this.name = name
}
return _uZ1
}());
spine._uZ1 = _uZ1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _vZ1 = (function () {
function _vZ1(data, skeleton) {
this.position = 0;
this.spacing = 0;
this.rotateMix = 0;
this._OV1 = 0;
this._wZ1 = new Array();
this.__i1 = new Array();
this._dg1 = new Array();
this._OT1 = new Array();
this.lengths = new Array();
this._xZ1 = new Array();
if (data == null) throw new Error("data cannot be null.");
if (skeleton == null) throw new Error("skeleton cannot be null.");
this.data = data;
this.bones = new Array();
for (var _i2 = 0, _3b = data.bones.length; _i2 < _3b; _i2++) this.bones.push(skeleton._Nb(data.bones[_i2].name));
this.target = skeleton._Z8(data.target.name);
this.position = data.position;
this.spacing = data.spacing;
this.rotateMix = data.rotateMix;
this._OV1 = data._OV1
}
_vZ1.prototype.apply = function () {
this._Ba()
};
_vZ1.prototype._Ba = function () {
var attachment = this.target._39();
if (!(attachment instanceof spine._hY1)) return;
var rotateMix = this.rotateMix,
_OV1 = this._OV1;
var translate = _OV1 > 0,
rotate = rotateMix > 0;
if (!translate && !rotate) return;
var data = this.data;
var _yZ1 = data.spacingMode == spine._zZ1.Percent;
var rotateMode = data.rotateMode;
var _AZ1 = rotateMode == spine._BZ1.Tangent,
scale = rotateMode == spine._BZ1.ChainScale;
var _CZ1 = this.bones.length,
_DZ1 = _AZ1 ? _CZ1 : _CZ1 + 1;
var bones = this.bones;
var _wZ1 = spine._PT1._3V1(this._wZ1, _DZ1),
lengths = null;
var spacing = this.spacing;
if (scale || !_yZ1) {
if (scale) lengths = spine._PT1._3V1(this.lengths, _CZ1);
var _EZ1 = data.spacingMode == spine._zZ1.Length;
for (var _i2 = 0, _3b = _DZ1 - 1; _i2 < _3b;) {
var bone = bones[_i2];
var _FZ1 = bone.data.length;
if (_FZ1 < _vZ1._iR1) {
if (scale) lengths[_i2] = 0;
_wZ1[++_i2] = 0
} else if (_yZ1) {
if (scale) {
var x = _FZ1 * bone._a9,
y = _FZ1 * bone._j2;
var length = Math.sqrt(x * x + y * y);
lengths[_i2] = length
}
_wZ1[++_i2] = spacing;
} else {
var _GZ1 = _FZ1 * bone._a9,
_HZ1 = _FZ1 * bone._j2;
var _IZ1 = Math.sqrt(_GZ1 * _GZ1 + _HZ1 * _HZ1);
if (scale) lengths[_i2] = _IZ1;
_wZ1[++_i2] = (_EZ1 ? _FZ1 + spacing : spacing) * _IZ1 / _FZ1
}
}
} else {
for (var _i2 = 1; _i2 < _DZ1; _i2++) _wZ1[_i2] = spacing
}
var __i1 = this._JZ1(attachment, _DZ1, _AZ1, data._KZ1 == spine._LZ1.Percent, _yZ1);
var _MZ1 = __i1[0],
_NZ1 = __i1[1],
_OZ1 = data._OZ1;
var _PZ1 = !1;
if (_OZ1 == 0) _PZ1 = rotateMode == spine._BZ1.Chain;
else {
_PZ1 = !1;
var _gE = this.target.bone;
_OZ1 *= _gE._a9 * _gE._Xn - _gE._99 * _gE._j2 > 0 ? spine._cU1._QZ1 : -spine._cU1._QZ1
}
for (var _i2 = 0, _gE = 3; _i2 < _CZ1; _i2++, _gE += 3) {
var bone = bones[_i2];
bone._Sb += (_MZ1 - bone._Sb) * _OV1;
bone._Tb += (_NZ1 - bone._Tb) * _OV1;
var _RZ1 = __i1[_gE],
_SZ1 = __i1[_gE + 1],
_of = _RZ1 - _MZ1,
_pf = _SZ1 - _NZ1;
if (scale) {
var _TZ1 = lengths[_i2];
if (_TZ1 != 0) {
var _wy = (Math.sqrt(_of * _of + _pf * _pf) / _TZ1 - 1) * rotateMix + 1;
bone._a9 *= _wy;
bone._j2 *= _wy
}
}
_MZ1 = _RZ1;
_NZ1 = _SZ1;
if (rotate) {
var _a9 = bone._a9,
_99 = bone._99,
_j2 = bone._j2,
_Xn = bone._Xn,
_79 = 0,
cos = 0,
sin = 0;
if (_AZ1) _79 = __i1[_gE - 1];
else if (_wZ1[_i2 + 1] == 0) _79 = __i1[_gE + 2];
else _79 = Math.atan2(_pf, _of);
_79 -= Math.atan2(_j2, _a9);
if (_PZ1) {
cos = Math.cos(_79);
sin = Math.sin(_79);
var _UZ1 = bone.data.length;
_MZ1 += (_UZ1 * (cos * _a9 - sin * _j2) - _of) * rotateMix;
_NZ1 += (_UZ1 * (sin * _a9 + cos * _j2) - _pf) * rotateMix
} else {
_79 += _OZ1
}
if (_79 > spine._cU1.PI) _79 -= spine._cU1._VZ1;
else if (_79 < -spine._cU1.PI) _79 += spine._cU1._VZ1;
_79 *= rotateMix;
cos = Math.cos(_79);
sin = Math.sin(_79);
bone._a9 = cos * _a9 - sin * _j2;
bone._99 = cos * _99 - sin * _Xn;
bone._j2 = sin * _a9 + cos * _j2;
bone._Xn = sin * _99 + cos * _Xn
}
bone._qY1 = !1
}
};
_vZ1.prototype._JZ1 = function (path, _DZ1, _AZ1, _WZ1, _yZ1) {
var target = this.target;
var position = this.position;
var _wZ1 = this._wZ1,
out = spine._PT1._3V1(this.__i1,
_DZ1 * 3 + 2),
_dg1 = null;
var _Do = path._Do;
var _XZ1 = path._Td,
_YZ1 = _XZ1 / 6,
_ZZ1 = _vZ1.__Z1;
if (!path._0_1) {
var lengths = path.lengths;
_YZ1 -= _Do ? 1 : 2;
var _1_1 = lengths[_YZ1];
if (_WZ1) position *= _1_1;
if (_yZ1) {
for (var _i2 = 0; _i2 < _DZ1; _i2++) _wZ1[_i2] *= _1_1
}
_dg1 = spine._PT1._3V1(this._dg1, 8);
for (var _i2 = 0, _cz = 0, curve = 0; _i2 < _DZ1; _i2++, _cz += 3) {
var _2_1 = _wZ1[_i2];
position += _2_1;
var _gE = position;
if (_Do) {
_gE %= _1_1;
if (_gE < 0) _gE += _1_1;
curve = 0
} else if (_gE < 0) {
if (_ZZ1 != _vZ1._3_1) {
_ZZ1 = _vZ1._3_1;
path._Nd(target, 2, 4, _dg1, 0, 2)
}
this._4_1(_gE,
_dg1, 0, out, _cz);
continue
} else if (_gE > _1_1) {
if (_ZZ1 != _vZ1._5_1) {
_ZZ1 = _vZ1._5_1;
path._Nd(target, _XZ1 - 6, 4, _dg1, 0, 2)
}
this._6_1(_gE - _1_1, _dg1, 0, out, _cz);
continue
}
for (;; curve++) {
var _7_1 = lengths[curve];
if (_gE > _7_1) continue;
if (curve == 0) _gE /= _7_1;
else {
var _Nj1 = lengths[curve - 1];
_gE = (_gE - _Nj1) / (_7_1 - _Nj1)
}
break
}
if (curve != _ZZ1) {
_ZZ1 = curve;
if (_Do && curve == _YZ1) {
path._Nd(target, _XZ1 - 4, 4, _dg1, 0, 2);
path._Nd(target, 0, 4, _dg1, 4, 2)
} else path._Nd(target, curve * 6 + 2, 8, _dg1, 0, 2)
}
this._8_1(_gE, _dg1[0], _dg1[1], _dg1[2], _dg1[3],
_dg1[4], _dg1[5], _dg1[6], _dg1[7], out, _cz, _AZ1 || (_i2 > 0 && _2_1 == 0))
}
return out
}
if (_Do) {
_XZ1 += 2;
_dg1 = spine._PT1._3V1(this._dg1, _XZ1);
path._Nd(target, 2, _XZ1 - 4, _dg1, 0, 2);
path._Nd(target, 0, 2, _dg1, _XZ1 - 4, 2);
_dg1[_XZ1 - 2] = _dg1[0];
_dg1[_XZ1 - 1] = _dg1[1]
} else {
_YZ1--;
_XZ1 -= 4;
_dg1 = spine._PT1._3V1(this._dg1, _XZ1);
path._Nd(target, 2, _XZ1, _dg1, 0, 2)
}
var _OT1 = spine._PT1._3V1(this._OT1, _YZ1);
var _9_1 = 0;
var _6b = _dg1[0],
_7b = _dg1[1],
_ZT1 = 0,
__T1 = 0,
_0U1 = 0,
_1U1 = 0,
_8b = 0,
_9b = 0;
var _2U1 = 0,
_3U1 = 0,
_4U1 = 0,
_5U1 = 0,
_6U1 = 0,
_7U1 = 0,
_8U1 = 0,
_9U1 = 0;
for (var _i2 = 0, _k2 = 2; _i2 < _YZ1; _i2++, _k2 += 6) {
_ZT1 = _dg1[_k2];
__T1 = _dg1[_k2 + 1];
_0U1 = _dg1[_k2 + 2];
_1U1 = _dg1[_k2 + 3];
_8b = _dg1[_k2 + 4];
_9b = _dg1[_k2 + 5];
_2U1 = (_6b - _ZT1 * 2 + _0U1) * 0.1875;
_3U1 = (_7b - __T1 * 2 + _1U1) * 0.1875;
_4U1 = ((_ZT1 - _0U1) * 3 - _6b + _8b) * 0.09375;
_5U1 = ((__T1 - _1U1) * 3 - _7b + _9b) * 0.09375;
_6U1 = _2U1 * 2 + _4U1;
_7U1 = _3U1 * 2 + _5U1;
_8U1 = (_ZT1 - _6b) * 0.75 + _2U1 + _4U1 * 0.16666667;
_9U1 = (__T1 - _7b) * 0.75 + _3U1 + _5U1 * 0.16666667;
_9_1 += Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_8U1 += _6U1;
_9U1 += _7U1;
_6U1 += _4U1;
_7U1 += _5U1;
_9_1 += Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_8U1 += _6U1;
_9U1 += _7U1;
_9_1 += Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_8U1 += _6U1 + _4U1;
_9U1 += _7U1 + _5U1;
_9_1 += Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_OT1[_i2] = _9_1;
_6b = _8b;
_7b = _9b
}
if (_WZ1) position *= _9_1;
else position *= _9_1 / path.lengths[_YZ1 - 1];
if (_yZ1) {
for (var _i2 = 0; _i2 < _DZ1; _i2++) _wZ1[_i2] *= _9_1
}
var _xZ1 = this._xZ1;
var _a_1 = 0;
for (var _i2 = 0, _cz = 0, curve = 0, _b_1 = 0; _i2 < _DZ1; _i2++, _cz += 3) {
var _2_1 = _wZ1[_i2];
position += _2_1;
var _gE = position;
if (_Do) {
_gE %= _9_1;
if (_gE < 0) _gE += _9_1;
curve = 0
} else if (_gE < 0) {
this._4_1(_gE, _dg1, 0, out, _cz);
continue
} else if (_gE > _9_1) {
this._6_1(_gE - _9_1, _dg1, _XZ1 - 4, out, _cz);
continue
}
for (;; curve++) {
var _c_1 = _OT1[curve];
if (_gE > _c_1) continue;
if (curve == 0) _gE /= _c_1;
else {
var _Nj1 = _OT1[curve - 1];
_gE = (_gE - _Nj1) / (_c_1 - _Nj1)
}
break
}
if (curve != _ZZ1) {
_ZZ1 = curve;
var _Gz = curve * 6;
_6b = _dg1[_Gz];
_7b = _dg1[_Gz + 1];
_ZT1 = _dg1[_Gz + 2];
__T1 = _dg1[_Gz + 3];
_0U1 = _dg1[_Gz + 4];
_1U1 = _dg1[_Gz + 5];
_8b = _dg1[_Gz + 6];
_9b = _dg1[_Gz + 7];
_2U1 = (_6b - _ZT1 * 2 + _0U1) * 0.03;
_3U1 = (_7b - __T1 * 2 + _1U1) * 0.03;
_4U1 = ((_ZT1 - _0U1) * 3 - _6b + _8b) * 0.006;
_5U1 = ((__T1 - _1U1) * 3 - _7b + _9b) * 0.006;
_6U1 = _2U1 * 2 + _4U1;
_7U1 = _3U1 * 2 + _5U1;
_8U1 = (_ZT1 - _6b) * 0.3 + _2U1 + _4U1 * 0.16666667;
_9U1 = (__T1 - _7b) * 0.3 + _3U1 + _5U1 * 0.16666667;
_a_1 = Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_xZ1[0] = _a_1;
for (_Gz = 1; _Gz < 8; _Gz++) {
_8U1 += _6U1;
_9U1 += _7U1;
_6U1 += _4U1;
_7U1 += _5U1;
_a_1 += Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_xZ1[_Gz] = _a_1
}
_8U1 += _6U1;
_9U1 += _7U1;
_a_1 += Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_xZ1[8] = _a_1;
_8U1 += _6U1 + _4U1;
_9U1 += _7U1 + _5U1;
_a_1 += Math.sqrt(_8U1 * _8U1 + _9U1 * _9U1);
_xZ1[9] = _a_1;
_b_1 = 0
}
_gE *= _a_1;
for (;; _b_1++) {
var _d_1 = _xZ1[_b_1];
if (_gE > _d_1) continue;
if (_b_1 == 0) _gE /= _d_1;
else {
var _Nj1 = _xZ1[_b_1 - 1];
_gE = _b_1 + (_gE - _Nj1) / (_d_1 - _Nj1)
}
break
}
this._8_1(_gE * 0.1, _6b, _7b, _ZT1, __T1, _0U1, _1U1, _8b, _9b, out, _cz, _AZ1 || (_i2 > 0 && _2_1 == 0))
}
return out
};
_vZ1.prototype._4_1 = function (_gE, _yE, _i2, out, _cz) {
var _6b = _yE[_i2],
_7b = _yE[_i2 + 1],
_of = _yE[_i2 + 2] - _6b,
_pf = _yE[_i2 + 3] - _7b,
_79 = Math.atan2(_pf, _of);
out[_cz] = _6b + _gE * Math.cos(_79);
out[_cz + 1] = _7b + _gE * Math.sin(_79);
out[_cz + 2] = _79
};
_vZ1.prototype._6_1 = function (_gE, _yE, _i2, out, _cz) {
var _6b = _yE[_i2 + 2],
_7b = _yE[_i2 + 3],
_of = _6b - _yE[_i2],
_pf = _7b - _yE[_i2 + 1],
_79 = Math.atan2(_pf, _of);
out[_cz] = _6b + _gE * Math.cos(_79);
out[_cz + 1] = _7b + _gE * Math.sin(_79);
out[_cz + 2] = _79
};
_vZ1.prototype._8_1 = function (_gE, _6b, _7b, _ZT1, __T1, _0U1, _1U1, _8b, _9b, out, _cz, _AZ1) {
if (_gE == 0 || isNaN(_gE)) {
out[_cz] = _6b;
out[_cz + 1] = _7b;
out[_cz + 2] = Math.atan2(__T1 - _7b, _ZT1 - _6b);
return
}
var _e_1 = _gE * _gE,
_f_1 = _e_1 * _gE,
_N9 = 1 - _gE,
_g_1 = _N9 * _N9,
_h_1 = _g_1 * _N9;
var _i_1 = _N9 * _gE,
_j_1 = _i_1 * 3,
_k_1 = _N9 * _j_1,
_l_1 = _j_1 * _gE;
var x = _6b * _h_1 + _ZT1 * _k_1 + _0U1 * _l_1 + _8b * _f_1,
y = _7b * _h_1 + __T1 * _k_1 + _1U1 * _l_1 + _9b * _f_1;
out[_cz] = x;
out[_cz + 1] = y;
if (_AZ1) {
if (_gE < 0.001) out[_cz + 2] = Math.atan2(__T1 - _7b, _ZT1 - _6b);
else out[_cz + 2] = Math.atan2(y - (_7b * _g_1 + __T1 * _i_1 * 2 + _1U1 * _e_1), x - (_6b * _g_1 + _ZT1 * _i_1 * 2 + _0U1 * _e_1))
}
};
_vZ1.prototype._3Z1 = function () {
return this.data._4Z1
};
_vZ1.__Z1 = -1;
_vZ1._3_1 = -2;
_vZ1._5_1 = -3;
_vZ1._iR1 = 0.00001;
return _vZ1
}());
spine._vZ1 = _vZ1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _m_1 = (function () {
function _m_1(name) {
this._4Z1 = 0;
this.bones = new Array();
this.name = name
}
return _m_1
}());
spine._m_1 = _m_1;
var _LZ1;
(function (_LZ1) {
_LZ1[_LZ1["Fixed"] = 0] = "Fixed";
_LZ1[_LZ1["Percent"] = 1] = "Percent"
})(_LZ1 = spine._LZ1 || (spine._LZ1 = {}));
var _zZ1;
(function (_zZ1) {
_zZ1[_zZ1["Length"] = 0] = "Length";
_zZ1[_zZ1["Fixed"] = 1] = "Fixed";
_zZ1[_zZ1["Percent"] = 2] = "Percent"
})(_zZ1 = spine._zZ1 || (spine._zZ1 = {}));
var _BZ1;
(function (_BZ1) {
_BZ1[_BZ1["Tangent"] = 0] = "Tangent";
_BZ1[_BZ1["Chain"] = 1] = "Chain";
_BZ1[_BZ1["ChainScale"] = 2] = "ChainScale"
})(_BZ1 = spine._BZ1 || (spine._BZ1 = {}))
})(spine || (spine = {}));
var spine;
(function (spine) {
var _n_1 = (function () {
function _n_1(_o_1) {
this._MX1 = new Array();
this._4M = {};
this._o_1 = _o_1
}
_n_1.prototype._KX = function () {
var _i2 = 0;
for (var _O9 in this._4M) _i2++;
return _i2
};
return _n_1
}());
var _p_1 = (function () {
function _p_1(_KX1) {
if (_KX1 === void 0) {
_KX1 = ""
}
this._q_1 = {};
this._r_1 = {};
this._s_1 = {};
this._LX1 = {};
this._KX1 = _KX1
}
_p_1.prototype._t_1 = function (_o_1, _JX1, path) {
var _q_1 = this._q_1[_o_1];
if (_q_1 === null || _q_1 === undefined) {
_q_1 = new _n_1(_o_1);
this._q_1[_o_1] = _q_1
}
if (_JX1 !== null) _q_1._JX1 = _JX1;
_q_1._MX1.push(path);
if (this._r_1[path] === path) {
return !1
} else {
this._r_1[path] = path;
return !0
}
};
_p_1.prototype._QX1 = function (_o_1, path) {
var _hU1 = this;
path = this._KX1 + path;
if (!this._t_1(_o_1, null, path)) return;
var _NX = new XMLHttpRequest();
_NX.onreadystatechange = function () {
if (_NX.readyState == XMLHttpRequest._u_1) {
if (_NX.status >= 200 && _NX.status < 300) {
_hU1._s_1[path] = _NX.responseText
} else {
_hU1._LX1[path] = "Couldn't load text " + path + ": status " + _NX.status + ", " + _NX.responseText
}
}
};
_NX.open("GET", path, !0);
_NX.send()
};
_p_1.prototype._v_1 = function (_o_1, path) {
var _hU1 = this;
path = this._KX1 + path;
if (!this._t_1(_o_1, null, path)) return;
var _NX = new XMLHttpRequest();
_NX.onreadystatechange = function () {
if (_NX.readyState == XMLHttpRequest._u_1) {
if (_NX.status >= 200 && _NX.status < 300) {
_hU1._s_1[path] = JSON.parse(_NX.responseText)
} else {
_hU1._LX1[path] = "Couldn't load text " + path + ": status " + _NX.status + ", " + _NX.responseText
}
}
};
_NX.open("GET", path, !0);
_NX.send()
};
_p_1.prototype._Wc = function (_o_1, _JX1, path) {
var _hU1 = this;
path = this._KX1 + path;
if (!this._t_1(_o_1, _JX1, path)) return;
var img = new Image();
img.crossOrigin = _RX1;
img.src = _jW(null, null, path);
img.onload = function (_SX1) {
_hU1._s_1[path] = img
};
img.onerror = function (_SX1) {
_hU1._LX1[path] = "Couldn't load image " + path
}
};
_p_1.prototype.get = function (_o_1, path) {
path = this._KX1 + path;
var _q_1 = this._q_1[_o_1];
if (_q_1 === null || _q_1 === undefined) return !0;
return _q_1._4M[path]
};
_p_1.prototype._w_1 = function (_q_1) {
for (var _i2 = 0; _i2 < _q_1._MX1.length; _i2++) {
var path = _q_1._MX1[_i2];
var _4Y1 = _q_1._4M[path];
if (_4Y1 === null || _4Y1 === undefined) {
var _x_1 = this._s_1[path];
if (_x_1 === null || _x_1 === undefined) continue;
if (_x_1 instanceof HTMLImageElement) {
_q_1._4M[path] = _q_1._JX1(_x_1)
} else {
_q_1._4M[path] = _x_1
}
}
}
};
_p_1.prototype._6Y1 = function (_o_1) {
var _q_1 = this._q_1[_o_1];
if (_q_1 === null || _q_1 === undefined) return !0;
this._w_1(_q_1);
return _q_1._MX1.length == _q_1._KX()
};
_p_1.prototype.dispose = function () {};
_p_1.prototype._9Y1 = function () {
return Object._aY1(this._LX1).length > 0
};
_p_1.prototype._bY1 = function () {
return this._LX1
};
return _p_1
}());
spine._p_1 = _p_1;
})(spine || (spine = {}));
var spine;
(function (spine) {
var __7 = (function () {
function __7(data) {
this._y_1 = new Array();
this._z_1 = new Array();
this.time = 0;
this.scaleX = 1;
this.scaleY = 1;
this.x = 0;
this.y = 0;
if (data == null) throw new Error("data cannot be null.");
this.data = data;
this.bones = new Array();
for (var _i2 = 0; _i2 < data.bones.length; _i2++) {
var _ic = data.bones[_i2];
var bone = void 0;
if (_ic.parent == null) bone = new spine._lY1(_ic, this, null);
else {
var _A_1 = this.bones[_ic.parent.index];
bone = new spine._lY1(_ic, this, _A_1);
_A_1._H31.push(bone)
}
this.bones.push(bone);
}
this.slots = new Array();
this.drawOrder = new Array();
for (var _i2 = 0; _i2 < data.slots.length; _i2++) {
var _B_1 = data.slots[_i2];
var bone = this.bones[_B_1._ic.index];
var slot = new spine._C_1(_B_1, bone);
this.slots.push(slot);
this.drawOrder.push(slot)
}
this._HV1 = new Array();
for (var _i2 = 0; _i2 < data._HV1.length; _i2++) {
var _D_1 = data._HV1[_i2];
this._HV1.push(new spine._2Z1(_D_1, this))
}
this._UV1 = new Array();
for (var _i2 = 0; _i2 < data._UV1.length; _i2++) {
var _E_1 = data._UV1[_i2];
this._UV1.push(new spine._F_1(_E_1, this))
}
this._1W1 = new Array();
for (var _i2 = 0; _i2 < data._1W1.length; _i2++) {
var _G_1 = data._1W1[_i2];
this._1W1.push(new spine._vZ1(_G_1, this))
}
this.color = new spine._b9(1, 1, 1, 1);
this._H_1()
}
__7.prototype._H_1 = function () {
var _H_1 = this._y_1;
_H_1.length = 0;
this._z_1.length = 0;
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) bones[_i2]._rY1 = !1;
var _HV1 = this._HV1;
var _UV1 = this._UV1;
var _1W1 = this._1W1;
var _I_1 = _HV1.length,
_J_1 = _UV1.length,
_K_1 = _1W1.length;
var _L_1 = _I_1 + _J_1 + _K_1;
_nX1: for (var _i2 = 0; _i2 < _L_1; _i2++) {
for (var _Gz = 0; _Gz < _I_1; _Gz++) {
var _GV1 = _HV1[_Gz];
if (_GV1.data._4Z1 == _i2) {
this._M_1(_GV1);
continue _nX1
}
}
for (var _Gz = 0; _Gz < _J_1; _Gz++) {
var _GV1 = _UV1[_Gz];
if (_GV1.data._4Z1 == _i2) {
this._N_1(_GV1);
continue _nX1
}
}
for (var _Gz = 0; _Gz < _K_1; _Gz++) {
var _GV1 = _1W1[_Gz];
if (_GV1.data._4Z1 == _i2) {
this._O_1(_GV1);
continue _nX1
}
}
}
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) this._P_1(bones[_i2])
};
__7.prototype._M_1 = function (_GV1) {
var target = _GV1.target;
this._P_1(target);
var _Q_1 = _GV1.bones;
var parent = _Q_1[0];
this._P_1(parent);
if (_Q_1.length > 1) {
var _dZ1 = _Q_1[_Q_1.length - 1];
if (!(this._y_1.indexOf(_dZ1) > -1)) this._z_1.push(_dZ1);
}
this._y_1.push(_GV1);
this._R_1(parent._H31);
_Q_1[_Q_1.length - 1]._rY1 = !0
};
__7.prototype._O_1 = function (_GV1) {
var slot = _GV1.target;
var _09 = slot.data.index;
var _S_1 = slot.bone;
if (this.skin != null) this._T_1(this.skin, _09, _S_1);
if (this.data._O8 != null && this.data._O8 != this.skin) this._T_1(this.data._O8, _09, _S_1);
for (var _i2 = 0, _3b = this.data.skins.length; _i2 < _3b; _i2++) this._T_1(this.data.skins[_i2], _09, _S_1);
var attachment = slot._39();
if (attachment instanceof spine._hY1) this._U_1(attachment, _S_1);
var _Q_1 = _GV1.bones;
var _CZ1 = _Q_1.length;
for (var _i2 = 0; _i2 < _CZ1; _i2++) this._P_1(_Q_1[_i2]);
this._y_1.push(_GV1);
for (var _i2 = 0; _i2 < _CZ1; _i2++) this._R_1(_Q_1[_i2]._H31);
for (var _i2 = 0; _i2 < _CZ1; _i2++) _Q_1[_i2]._rY1 = !0
};
__7.prototype._N_1 = function (_GV1) {
this._P_1(_GV1.target);
var _Q_1 = _GV1.bones;
var _CZ1 = _Q_1.length;
if (_GV1.data._VY1) {
for (var _i2 = 0; _i2 < _CZ1; _i2++) {
var _dZ1 = _Q_1[_i2];
this._P_1(_dZ1.parent);
if (!(this._y_1.indexOf(_dZ1) > -1)) this._z_1.push(_dZ1)
}
} else {
for (var _i2 = 0; _i2 < _CZ1; _i2++) {
this._P_1(_Q_1[_i2])
}
}
this._y_1.push(_GV1);
for (var _Gz = 0; _Gz < _CZ1; _Gz++) this._R_1(_Q_1[_Gz]._H31);
for (var _Gz = 0; _Gz < _CZ1; _Gz++) _Q_1[_Gz]._rY1 = !0
};
__7.prototype._T_1 = function (skin, _09, _S_1) {
var _KW1 = skin._KW1[_09];
if (!_KW1) return;
for (var key in _KW1) {
this._U_1(_KW1[key], _S_1)
}
};
__7.prototype._U_1 = function (attachment, _S_1) {
if (!(attachment instanceof spine._hY1)) return;
var _V_1 = attachment.bones;
if (_V_1 == null) this._P_1(_S_1);
else {
var bones = this.bones;
var _i2 = 0;
while (_i2 < _V_1.length) {
var _CZ1 = _V_1[_i2++];
for (var _3b = _i2 + _CZ1; _i2 < _3b; _i2++) {
var _jU1 = _V_1[_i2];
this._P_1(bones[_jU1])
}
}
}
};
__7.prototype._P_1 = function (bone) {
if (bone._rY1) return;
var parent = bone.parent;
if (parent != null) this._P_1(parent);
bone._rY1 = !0;
this._y_1.push(bone)
};
__7.prototype._R_1 = function (bones) {
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) {
var bone = bones[_i2];
if (bone._rY1) this._R_1(bone._H31);
bone._rY1 = !1
}
};
__7.prototype._ka = function () {
var _z_1 = this._z_1;
for (var _i2 = 0, _3b = _z_1.length; _i2 < _3b; _i2++) {
var bone = _z_1[_i2];
bone._5M = bone.x;
bone._6M = bone.y;
bone._Yb = bone.rotation;
bone._mY1 = bone.scaleX;
bone._nY1 = bone.scaleY;
bone._oY1 = bone.shearX;
bone._pY1 = bone.shearY;
bone._qY1 = !0
}
var _H_1 = this._y_1;
for (var _i2 = 0, _3b = _H_1.length; _i2 < _3b; _i2++) _H_1[_i2]._Ba()
};
__7.prototype._sY1 = function () {
this._W_1();
this._Q8()
};
__7.prototype._W_1 = function () {
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) bones[_i2]._sY1();
var _HV1 = this._HV1;
for (var _i2 = 0, _3b = _HV1.length; _i2 < _3b; _i2++) {
var _GV1 = _HV1[_i2];
_GV1.mix = _GV1.data.mix;
_GV1._BV1 = _GV1.data._BV1;
_GV1.compress = _GV1.data.compress;
_GV1._V1 = _GV1.data._V1
}
var _UV1 = this._UV1;
for (var _i2 = 0, _3b = _UV1.length; _i2 < _3b; _i2++) {
var _GV1 = _UV1[_i2];
var data = _GV1.data;
_GV1.rotateMix = data.rotateMix;
_GV1._OV1 = data._OV1;
_GV1.scaleMix = data.scaleMix;
_GV1._PV1 = data._PV1
}
var _1W1 = this._1W1;
for (var _i2 = 0, _3b = _1W1.length; _i2 < _3b; _i2++) {
var _GV1 = _1W1[_i2];
var data = _GV1.data;
_GV1.position = data.position;
_GV1.spacing = data.spacing;
_GV1.rotateMix = data.rotateMix;
_GV1._OV1 = data._OV1
}
};
__7.prototype._Q8 = function () {
var slots = this.slots;
spine._PT1._9V1(slots, 0, this.drawOrder, 0, slots.length);
for (var _i2 = 0, _3b = slots.length; _i2 < _3b; _i2++) slots[_i2]._sY1()
};
__7.prototype._k8 = function () {
if (this.bones.length == 0) return null;
return this.bones[0]
};
__7.prototype._Nb = function (_X_1) {
if (_X_1 == null) throw new Error("boneName cannot be null.");
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) {
var bone = bones[_i2];
if (bone.data.name == _X_1) return bone
}
return null
};
__7.prototype._Y_1 = function (_X_1) {
if (_X_1 == null) throw new Error("boneName cannot be null.");
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++)
if (bones[_i2].data.name == _X_1) return _i2;
return -1
};
__7.prototype._Z8 = function (_Z_1) {
if (_Z_1 == null) throw new Error("slotName cannot be null.");
var slots = this.slots;
for (var _i2 = 0, _3b = slots.length; _i2 < _3b; _i2++) {
var slot = slots[_i2];
if (slot.data.name == _Z_1) return slot
}
return null
};
__7.prototype._19 = function (_Z_1) {
if (_Z_1 == null) throw new Error("slotName cannot be null.");
var slots = this.slots;
for (var _i2 = 0, _3b = slots.length; _i2 < _3b; _i2++)
if (slots[_i2].data.name == _Z_1) return _i2;
return -1
};
__7.prototype._P8 = function (___1) {
var skin = this.data._002(___1);
if (skin == null) throw new Error("Skin not found: " + ___1);
this._102(skin)
};
__7.prototype._102 = function (_202) {
if (_202 != null) {
if (this.skin != null) _202._302(this, this.skin);
else {
var slots = this.slots;
for (var _i2 = 0, _3b = slots.length; _i2 < _3b; _i2++) {
var slot = slots[_i2];
var _402 = slot.data._Lf;
if (_402 != null) {
var attachment = _202._39(_i2, _402);
if (attachment != null) slot.__8(attachment)
}
}
}
}
this.skin = _202
};
__7.prototype._502 = function (_Z_1, _Lf) {
return this._39(this.data._19(_Z_1), _Lf)
};
__7.prototype._39 = function (_09,
_Lf) {
if (_Lf == null) throw new Error("attachmentName cannot be null.");
if (this.skin != null) {
var attachment = this.skin._39(_09, _Lf);
if (attachment != null) return attachment;
}
if (this.data._O8 != null) return this.data._O8._39(_09, _Lf);
return null
};
__7.prototype.__8 = function (_Z_1, _Lf) {
if (_Z_1 == null) throw new Error("slotName cannot be null.");
var slots = this.slots;
for (var _i2 = 0, _3b = slots.length; _i2 < _3b; _i2++) {
var slot = slots[_i2];
if (slot.data.name == _Z_1) {
var attachment = null;
if (_Lf != null) {
attachment = this._39(_i2, _Lf);
if (attachment == null) throw new Error("Attachment not found: " + _Lf + ", for slot: " + _Z_1)
}
slot.__8(attachment);
return
}
}
throw new Error("Slot not found: " + _Z_1)
};
__7.prototype._602 = function (_702) {
if (_702 == null) throw new Error("constraintName cannot be null.");
var _HV1 = this._HV1;
for (var _i2 = 0, _3b = _HV1.length; _i2 < _3b; _i2++) {
var ikConstraint = _HV1[_i2];
if (ikConstraint.data.name == _702) return ikConstraint
}
return null
};
__7.prototype._802 = function (_702) {
if (_702 == null) throw new Error("constraintName cannot be null.");
var _UV1 = this._UV1;
for (var _i2 = 0, _3b = _UV1.length; _i2 < _3b; _i2++) {
var _GV1 = _UV1[_i2];
if (_GV1.data.name == _702) return _GV1
}
return null
};
__7.prototype._902 = function (_702) {
if (_702 == null) throw new Error("constraintName cannot be null.");
var _1W1 = this._1W1;
for (var _i2 = 0, _3b = _1W1.length; _i2 < _3b; _i2++) {
var _GV1 = _1W1[_i2];
if (_GV1.data.name == _702) return _GV1
}
return null
};
__7.prototype.getBounds = function (offset, size, _yE) {
if (_yE === void 0) {
_yE = new Array(2)
}
if (offset == null) throw new Error("offset cannot be null.");
if (size == null) throw new Error("size cannot be null.");
var drawOrder = this.drawOrder;
var _La = Number.POSITIVE_INFINITY,
_Na = Number.POSITIVE_INFINITY,
_Ma = Number.NEGATIVE_INFINITY,
_Oa = Number.NEGATIVE_INFINITY;
for (var _i2 = 0, _3b = drawOrder.length; _i2 < _3b; _i2++) {
var slot = drawOrder[_i2];
var _XZ1 = 0;
var vertices = null;
var attachment = slot._39();
if (attachment instanceof spine._pd) {
_XZ1 = 8;
vertices = spine._PT1._3V1(_yE, _XZ1, 0);
attachment._Nd(slot.bone, vertices, 0, 2)
} else if (attachment instanceof spine._rd) {
var _Sd = attachment;
_XZ1 = _Sd._Td;
vertices = spine._PT1._3V1(_yE, _XZ1, 0);
_Sd._Nd(slot, 0, _XZ1, vertices, 0, 2)
}
if (vertices != null) {
for (var _Gz = 0, _a02 = vertices.length; _Gz < _a02; _Gz += 2) {
var x = vertices[_Gz],
y = vertices[_Gz + 1];
_La = Math.min(_La, x);
_Na = Math.min(_Na, y);
_Ma = Math.max(_Ma, x);
_Oa = Math.max(_Oa, y)
}
}
}
offset.set(_La, _Na);
size.set(_Ma - _La, _Oa - _Na)
};
__7.prototype._Ba = function (_CB1) {
this.time += _CB1
};
return __7
}());
spine.__7 = __7
})(spine || (spine = {}));
var spine;
(function (spine) {
var _i8 = (function () {
function _i8() {
this._La = 0;
this._Na = 0;
this._Ma = 0;
this._Oa = 0;
this._Ka = new Array();
this._Ta = new Array();
this._b02 = new spine._cW1(function () {
return spine._PT1._QT1(16)
})
}
_i8.prototype._Ba = function (skeleton,
_c02) {
if (skeleton == null) throw new Error("skeleton cannot be null.");
var _Ka = this._Ka;
var _Ta = this._Ta;
var _b02 = this._b02;
var slots = skeleton.slots;
var _d02 = slots.length;
_Ka.length = 0;
_b02._e02(_Ta);
_Ta.length = 0;
for (var _i2 = 0; _i2 < _d02; _i2++) {
var slot = slots[_i2];
var attachment = slot._39();
if (attachment instanceof spine._td) {
var _Jf = attachment;
_Ka.push(_Jf);
var _Sa = _b02._hX1();
if (_Sa.length != _Jf._Td) {
_Sa = spine._PT1._QT1(_Jf._Td)
}
_Ta.push(_Sa);
_Jf._Nd(slot, 0, _Jf._Td, _Sa, 0, 2)
}
}
if (_c02) {
this._f02()
} else {
this._La = Number.POSITIVE_INFINITY;
this._Na = Number.POSITIVE_INFINITY;
this._Ma = Number.NEGATIVE_INFINITY;
this._Oa = Number.NEGATIVE_INFINITY;
}
};
_i8.prototype._f02 = function () {
var _La = Number.POSITIVE_INFINITY,
_Na = Number.POSITIVE_INFINITY,
_Ma = Number.NEGATIVE_INFINITY,
_Oa = Number.NEGATIVE_INFINITY;
var _Ta = this._Ta;
for (var _i2 = 0, _3b = _Ta.length; _i2 < _3b; _i2++) {
var _Sa = _Ta[_i2];
var vertices = _Sa;
for (var _Gz = 0, _a02 = _Sa.length; _Gz < _a02; _Gz += 2) {
var x = vertices[_Gz];
var y = vertices[_Gz + 1];
_La = Math.min(_La, x);
_Na = Math.min(_Na, y);
_Ma = Math.max(_Ma, x);
_Oa = Math.max(_Oa,
y)
}
}
this._La = _La;
this._Na = _Na;
this._Ma = _Ma;
this._Oa = _Oa
};
_i8.prototype._g02 = function (x, y) {
return x >= this._La && x <= this._Ma && y >= this._Na && y <= this._Oa;
};
_i8.prototype._h02 = function (_6b, _7b, _8b, _9b) {
var _La = this._La;
var _Na = this._Na;
var _Ma = this._Ma;
var _Oa = this._Oa;
if ((_6b <= _La && _8b <= _La) || (_7b <= _Na && _9b <= _Na) || (_6b >= _Ma && _8b >= _Ma) || (_7b >= _Oa && _9b >= _Oa)) return !1;
var _5b = (_9b - _7b) / (_8b - _6b);
var y = _5b * (_La - _6b) + _7b;
if (y > _Na && y < _Oa) return !0;
y = _5b * (_Ma - _6b) + _7b;
if (y > _Na && y < _Oa) return !0;
var x = (_Na - _7b) / _5b + _6b;
if (x > _La && x < _Ma) return !0;
x = (_Oa - _7b) / _5b + _6b;
if (x > _La && x < _Ma) return !0;
return !1
};
_i8.prototype._i02 = function (_j02) {
return this._La < _j02._Ma && this._Ma > _j02._La && this._Na < _j02._Oa && this._Oa > _j02._Na;
};
_i8.prototype._vb = function (x, y) {
var _Ta = this._Ta;
for (var _i2 = 0, _3b = _Ta.length; _i2 < _3b; _i2++)
if (this._k02(_Ta[_i2], x, y)) return this._Ka[_i2];
return null
};
_i8.prototype._k02 = function (_Sa, x, y) {
var vertices = _Sa;
var _a02 = _Sa.length;
var _l02 = _a02 - 2;
var _m02 = !1;
for (var _Gz = 0; _Gz < _a02; _Gz += 2) {
var _n02 = vertices[_Gz + 1];
var _eU1 = vertices[_l02 + 1];
if ((_n02 < y && _eU1 >= y) || (_eU1 < y && _n02 >= y)) {
var _o02 = vertices[_Gz];
if (_o02 + (y - _n02) / (_eU1 - _n02) * (vertices[_l02] - _o02) < x) _m02 = !_m02
}
_l02 = _Gz
}
return _m02
};
_i8.prototype._bb = function (_6b, _7b, _8b, _9b) {
var _Ta = this._Ta;
for (var _i2 = 0, _3b = _Ta.length; _i2 < _3b; _i2++)
if (this._p02(_Ta[_i2], _6b, _7b, _8b, _9b)) return this._Ka[_i2];
return null
};
_i8.prototype._p02 = function (_Sa, _6b, _7b, _8b, _9b) {
var vertices = _Sa;
var _a02 = _Sa.length;
var _q02 = _6b - _8b,
_r02 = _7b - _9b;
var _s02 = _6b * _9b - _7b * _8b;
var _qf = vertices[_a02 - 2],
_rf = vertices[_a02 - 1];
for (var _Gz = 0; _Gz < _a02; _Gz += 2) {
var _t02 = vertices[_Gz],
_u02 = vertices[_Gz + 1];
var _v02 = _qf * _u02 - _rf * _t02;
var _w02 = _qf - _t02,
_x02 = _rf - _u02;
var _y02 = _q02 * _x02 - _r02 * _w02;
var x = (_s02 * _w02 - _q02 * _v02) / _y02;
if (((x >= _qf && x <= _t02) || (x >= _t02 && x <= _qf)) && ((x >= _6b && x <= _8b) || (x >= _8b && x <= _6b))) {
var y = (_s02 * _x02 - _r02 * _v02) / _y02;
if (((y >= _rf && y <= _u02) || (y >= _u02 && y <= _rf)) && ((y >= _7b && y <= _9b) || (y >= _9b && y <= _7b))) return !0
}
_qf = _t02;
_rf = _u02
}
return !1
};
_i8.prototype._z02 = function (_Jf) {
if (_Jf == null) throw new Error("boundingBox cannot be null.");
var index = this._Ka.indexOf(_Jf);
return index == -1 ? null : this._Ta[index]
};
_i8.prototype._5A1 = function () {
return this._Ma - this._La
};
_i8.prototype._6A1 = function () {
return this._Oa - this._Na;
};
return _i8
}());
spine._i8 = _i8
})(spine || (spine = {}));
var spine;
(function (spine) {
var _Vd = (function () {
function _Vd() {
this._A02 = new spine._B02();
this._C02 = new Array();
this._D02 = new Array();
this._Yd = new Array();
this._Zd = new Array();
this._E02 = new Array()
}
_Vd.prototype._Wd = function (slot, clip) {
if (this._F02 != null) return 0;
this._F02 = clip;
var _3b = clip._Td;
var vertices = spine._PT1._3V1(this._C02, _3b);
clip._Nd(slot, 0, _3b, vertices, 0, 2);
var _C02 = this._C02;
_Vd._G02(_C02);
var _H02 = this._H02 = this._A02._I02(_C02, this._A02._J02(_C02));
for (var _i2 = 0, _K02 = _H02.length; _i2 < _K02; _i2++) {
var _Sa = _H02[_i2];
_Vd._G02(_Sa);
_Sa.push(_Sa[0]);
_Sa.push(_Sa[1])
}
return _H02.length
};
_Vd.prototype._6e = function (slot) {
if (this._F02 != null && this._F02._L02 == slot.data) this._7e()
};
_Vd.prototype._7e = function () {
if (this._F02 == null) return;
this._F02 = null;
this._H02 = null;
this._Yd.length = 0;
this._Zd.length = 0;
this._C02.length = 0
};
_Vd.prototype._Md = function () {
return this._F02 != null
};
_Vd.prototype._Xd = function (vertices, _XZ1, triangles, _M02, uvs, _IU1, _JU1, twoColor) {
var _D02 = this._D02,
_Yd = this._Yd;
var _Zd = this._Zd;
var _Ta = this._H02;
var _N02 = this._H02.length;
var _xK1 = twoColor ? 12 : 8;
var index = 0;
_Yd.length = 0;
_Zd.length = 0;
_nX1: for (var _i2 = 0; _i2 < _M02; _i2 += 3) {
var _O02 = triangles[_i2] << 1;
var _6b = vertices[_O02],
_7b = vertices[_O02 + 1];
var _Xb1 = uvs[_O02],
_sf = uvs[_O02 + 1];
_O02 = triangles[_i2 + 1] << 1;
var _8b = vertices[_O02],
_9b = vertices[_O02 + 1];
var _P9 = uvs[_O02],
_Q9 = uvs[_O02 + 1];
_O02 = triangles[_i2 + 2] << 1;
var _qf = vertices[_O02],
_rf = vertices[_O02 + 1];
var _P02 = uvs[_O02],
_tf = uvs[_O02 + 1];
for (var _gE = 0; _gE < _N02; _gE++) {
var _wy = _Yd.length;
if (this.clip(_6b, _7b, _8b, _9b, _qf, _rf, _Ta[_gE], _D02)) {
var _Q02 = _D02.length;
if (_Q02 == 0) continue;
var _R02 = _9b - _rf,
_o71 = _qf - _8b,
_Qo1 = _6b - _qf,
_S02 = _rf - _7b;
var _Xn = 1 / (_R02 * _Qo1 + _o71 * (_7b - _rf));
var _T02 = _Q02 >> 1;
var _U02 = this._D02;
var _V02 = spine._PT1._3V1(_Yd, _wy + _T02 * _xK1);
for (var _Gz = 0; _Gz < _Q02; _Gz += 2) {
var x = _U02[_Gz],
y = _U02[_Gz + 1];
_V02[_wy] = x;
_V02[_wy + 1] = y;
_V02[_wy + 2] = _IU1._79;
_V02[_wy + 3] = _IU1._89;
_V02[_wy + 4] = _IU1._99;
_V02[_wy + 5] = _IU1._a9;
var _y51 = x - _qf,
_251 = y - _rf;
var _a9 = (_R02 * _y51 + _o71 * _251) * _Xn;
var _99 = (_S02 * _y51 + _Qo1 * _251) * _Xn;
var _j2 = 1 - _a9 - _99;
_V02[_wy + 6] = _Xb1 * _a9 + _P9 * _99 + _P02 * _j2;
_V02[_wy + 7] = _sf * _a9 + _Q9 * _99 + _tf * _j2;
if (twoColor) {
_V02[_wy + 8] = _JU1._79;
_V02[_wy + 9] = _JU1._89;
_V02[_wy + 10] = _JU1._99;
_V02[_wy + 11] = _JU1._a9
}
_wy += _xK1
}
_wy = _Zd.length;
var _W02 = spine._PT1._3V1(_Zd, _wy + 3 * (_T02 - 2));
_T02--;
for (var _Gz = 1; _Gz < _T02; _Gz++) {
_W02[_wy] = index;
_W02[_wy + 1] = (index + _Gz);
_W02[_wy + 2] = (index + _Gz + 1);
_wy += 3
}
index += _T02 + 1
} else {
var _V02 = spine._PT1._3V1(_Yd, _wy + 3 * _xK1);
_V02[_wy] = _6b;
_V02[_wy + 1] = _7b;
_V02[_wy + 2] = _IU1._79;
_V02[_wy + 3] = _IU1._89;
_V02[_wy + 4] = _IU1._99;
_V02[_wy + 5] = _IU1._a9;
if (!twoColor) {
_V02[_wy + 6] = _Xb1;
_V02[_wy + 7] = _sf;
_V02[_wy + 8] = _8b;
_V02[_wy + 9] = _9b;
_V02[_wy + 10] = _IU1._79;
_V02[_wy + 11] = _IU1._89;
_V02[_wy + 12] = _IU1._99;
_V02[_wy + 13] = _IU1._a9;
_V02[_wy + 14] = _P9;
_V02[_wy + 15] = _Q9;
_V02[_wy + 16] = _qf;
_V02[_wy + 17] = _rf;
_V02[_wy + 18] = _IU1._79;
_V02[_wy + 19] = _IU1._89;
_V02[_wy + 20] = _IU1._99;
_V02[_wy + 21] = _IU1._a9;
_V02[_wy + 22] = _P02;
_V02[_wy + 23] = _tf
} else {
_V02[_wy + 6] = _Xb1;
_V02[_wy + 7] = _sf;
_V02[_wy + 8] = _JU1._79;
_V02[_wy + 9] = _JU1._89;
_V02[_wy + 10] = _JU1._99;
_V02[_wy + 11] = _JU1._a9;
_V02[_wy + 12] = _8b;
_V02[_wy + 13] = _9b;
_V02[_wy + 14] = _IU1._79;
_V02[_wy + 15] = _IU1._89;
_V02[_wy + 16] = _IU1._99;
_V02[_wy + 17] = _IU1._a9;
_V02[_wy + 18] = _P9;
_V02[_wy + 19] = _Q9;
_V02[_wy + 20] = _JU1._79;
_V02[_wy + 21] = _JU1._89;
_V02[_wy + 22] = _JU1._99;
_V02[_wy + 23] = _JU1._a9;
_V02[_wy + 24] = _qf;
_V02[_wy + 25] = _rf;
_V02[_wy + 26] = _IU1._79;
_V02[_wy + 27] = _IU1._89;
_V02[_wy + 28] = _IU1._99;
_V02[_wy + 29] = _IU1._a9;
_V02[_wy + 30] = _P02;
_V02[_wy + 31] = _tf;
_V02[_wy + 32] = _JU1._79;
_V02[_wy + 33] = _JU1._89;
_V02[_wy + 34] = _JU1._99;
_V02[_wy + 35] = _JU1._a9
}
_wy = _Zd.length;
var _W02 = spine._PT1._3V1(_Zd, _wy + 3);
_W02[_wy] = index;
_W02[_wy + 1] = (index + 1);
_W02[_wy + 2] = (index + 2);
index += 3;
continue _nX1
}
}
}
};
_Vd.prototype.clip = function (_6b, _7b, _8b, _9b, _qf, _rf, _X02, _cC) {
var _Y02 = _cC;
var _Z02 = !1;
var _aC = null;
if (_X02.length % 4 >= 2) {
_aC = _cC;
_cC = this._E02
} else _aC = this._E02;
_aC.length = 0;
_aC.push(_6b);
_aC.push(_7b);
_aC.push(_8b);
_aC.push(_9b);
_aC.push(_qf);
_aC.push(_rf);
_aC.push(_6b);
_aC.push(_7b);
_cC.length = 0;
var __02 = _X02;
var _012 = _X02.length - 4;
for (var _i2 = 0;; _i2 += 2) {
var _112 = __02[_i2],
_212 = __02[_i2 + 1];
var _312 = __02[_i2 + 2],
_412 = __02[_i2 + 3];
var _512 = _112 - _312,
_612 = _212 - _412;
var _712 = _aC;
var _812 = _aC.length - 2,
_912 = _cC.length;
for (var _Gz = 0; _Gz < _812; _Gz += 2) {
var _a12 = _712[_Gz],
_b12 = _712[_Gz + 1];
var _c12 = _712[_Gz + 2],
_d12 = _712[_Gz + 3];
var _e12 = _512 * (_d12 - _412) - _612 * (_c12 - _312) > 0;
if (_512 * (_b12 - _412) - _612 * (_a12 - _312) > 0) {
if (_e12) {
_cC.push(_c12);
_cC.push(_d12);
continue
}
var _y51 = _d12 - _b12,
_351 = _c12 - _a12;
var _f12 = (_351 * (_212 - _b12) - _y51 * (_112 - _a12)) / (_y51 * (_312 - _112) - _351 * (_412 - _212));
_cC.push(_112 + (_312 - _112) * _f12);
_cC.push(_212 + (_412 - _212) * _f12);
} else if (_e12) {
var _y51 = _d12 - _b12,
_351 = _c12 - _a12;
var _f12 = (_351 * (_212 - _b12) - _y51 * (_112 - _a12)) / (_y51 * (_312 - _112) - _351 * (_412 - _212));
_cC.push(_112 + (_312 - _112) * _f12);
_cC.push(_212 + (_412 - _212) * _f12);
_cC.push(_c12);
_cC.push(_d12)
}
_Z02 = !0
}
if (_912 == _cC.length) {
_Y02.length = 0;
return !0
}
_cC.push(_cC[0]);
_cC.push(_cC[1]);
if (_i2 == _012) break;
var _yE = _cC;
_cC = _aC;
_cC.length = 0;
_aC = _yE
}
if (_Y02 != _cC) {
_Y02.length = 0;
for (var _i2 = 0, _3b = _cC.length - 2; _i2 < _3b; _i2++) _Y02[_i2] = _cC[_i2]
} else _Y02.length = _Y02.length - 2;
return _Z02
};
_Vd._G02 = function (_Sa) {
var vertices = _Sa;
var _g12 = _Sa.length;
var _c81 = vertices[_g12 - 2] * vertices[1] - vertices[0] * vertices[_g12 - 1],
_h12 = 0,
_i12 = 0,
_j12 = 0,
_k12 = 0;
for (var _i2 = 0, _3b = _g12 - 3; _i2 < _3b; _i2 += 2) {
_h12 = vertices[_i2];
_i12 = vertices[_i2 + 1];
_j12 = vertices[_i2 + 2];
_k12 = vertices[_i2 + 3];
_c81 += _h12 * _k12 - _j12 * _i12
}
if (_c81 < 0) return;
for (var _i2 = 0, _l12 = _g12 - 2, _3b = _g12 >> 1; _i2 < _3b; _i2 += 2) {
var x = vertices[_i2],
y = vertices[_i2 + 1];
var _wb1 = _l12 - _i2;
vertices[_i2] = vertices[_wb1];
vertices[_i2 + 1] = vertices[_wb1 + 1];
vertices[_wb1] = x;
vertices[_wb1 + 1] = y
}
};
return _Vd
}());
spine._Vd = _Vd;
})(spine || (spine = {}));
var spine;
(function (spine) {
var _m12 = (function () {
function _m12() {
this.bones = new Array();
this.slots = new Array();
this.skins = new Array();
this.events = new Array();
this.animations = new Array();
this._HV1 = new Array();
this._UV1 = new Array();
this._1W1 = new Array();
this._xL = 0
}
_m12.prototype._Nb = function (_X_1) {
if (_X_1 == null) throw new Error("boneName cannot be null.");
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) {
var bone = bones[_i2];
if (bone.name == _X_1) return bone
}
return null
};
_m12.prototype._Y_1 = function (_X_1) {
if (_X_1 == null) throw new Error("boneName cannot be null.");
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++)
if (bones[_i2].name == _X_1) return _i2;
return -1
};
_m12.prototype._Z8 = function (_Z_1) {
if (_Z_1 == null) throw new Error("slotName cannot be null.");
var slots = this.slots;
for (var _i2 = 0, _3b = slots.length; _i2 < _3b; _i2++) {
var slot = slots[_i2];
if (slot.name == _Z_1) return slot
}
return null
};
_m12.prototype._19 = function (_Z_1) {
if (_Z_1 == null) throw new Error("slotName cannot be null.");
var slots = this.slots;
for (var _i2 = 0, _3b = slots.length; _i2 < _3b; _i2++)
if (slots[_i2].name == _Z_1) return _i2;
return -1
};
_m12.prototype._002 = function (___1) {
if (___1 == null) throw new Error("skinName cannot be null.");
var skins = this.skins;
for (var _i2 = 0, _3b = skins.length; _i2 < _3b; _i2++) {
var skin = skins[_i2];
if (skin.name == ___1) return skin
}
return null
};
_m12.prototype._n12 = function (_o12) {
if (_o12 == null) throw new Error("eventDataName cannot be null.");
var events = this.events;
for (var _i2 = 0, _3b = events.length; _i2 < _3b; _i2++) {
var _p12 = events[_i2];
if (_p12.name == _o12) return _p12
}
return null
};
_m12.prototype._L8 = function (_5X1) {
if (_5X1 == null) throw new Error("animationName cannot be null.");
var animations = this.animations;
for (var _i2 = 0, _3b = animations.length; _i2 < _3b; _i2++) {
var _x8 = animations[_i2];
if (_x8.name == _5X1) return _x8
}
return null
};
_m12.prototype._602 = function (_702) {
if (_702 == null) throw new Error("constraintName cannot be null.");
var _HV1 = this._HV1;
for (var _i2 = 0, _3b = _HV1.length; _i2 < _3b; _i2++) {
var _GV1 = _HV1[_i2];
if (_GV1.name == _702) return _GV1
}
return null
};
_m12.prototype._802 = function (_702) {
if (_702 == null) throw new Error("constraintName cannot be null.");
var _UV1 = this._UV1;
for (var _i2 = 0, _3b = _UV1.length; _i2 < _3b; _i2++) {
var _GV1 = _UV1[_i2];
if (_GV1.name == _702) return _GV1
}
return null
};
_m12.prototype._902 = function (_702) {
if (_702 == null) throw new Error("constraintName cannot be null.");
var _1W1 = this._1W1;
for (var _i2 = 0, _3b = _1W1.length; _i2 < _3b; _i2++) {
var _GV1 = _1W1[_i2];
if (_GV1.name == _702) return _GV1
}
return null
};
_m12.prototype._q12 = function (_r12) {
if (_r12 == null) throw new Error("pathConstraintName cannot be null.");
var _1W1 = this._1W1;
for (var _i2 = 0, _3b = _1W1.length; _i2 < _3b; _i2++)
if (_1W1[_i2].name == _r12) return _i2;
return -1
};
return _m12
}());
spine._m12 = _m12
})(spine || (spine = {}));
var spine;
(function (spine) {
var _2d = (function () {
function _2d(_0a) {
this.scale = 1;
this._s12 = new Array();
this._0a = _0a
}
_2d.prototype._3d = function (_Ql) {
var scale = this.scale;
var _6X1 = new spine._m12();
var _j8 = typeof (_Ql) === "string" ? JSON.parse(_Ql) : _Ql;
var _t12 = _j8.skeleton;
if (_t12 != null) {
_6X1.hash = _t12.hash;
_6X1.version = _t12.spine;
_6X1.width = _t12.width;
_6X1.height = _t12.height;
_6X1._xL = _t12._xL;
_6X1._u12 = _t12.images
}
if (_j8.bones) {
for (var _i2 = 0; _i2 < _j8.bones.length; _i2++) {
var _v12 = _j8.bones[_i2];
var _w12 = null;
var _x12 = this._y12(_v12, "parent", null);
if (_x12 != null) {
_w12 = _6X1._Nb(_x12);
if (_w12 == null) throw new Error("Parent bone not found: " + _x12)
}
var data = new spine._0Z1(_6X1.bones.length,
_v12.name, _w12);
data.length = this._y12(_v12, "length", 0) * scale;
data.x = this._y12(_v12, "x", 0) * scale;
data.y = this._y12(_v12, "y", 0) * scale;
data.rotation = this._y12(_v12, "rotation", 0);
data.scaleX = this._y12(_v12, "scaleX", 1);
data.scaleY = this._y12(_v12, "scaleY", 1);
data.shearX = this._y12(_v12, "shearX", 0);
data.shearY = this._y12(_v12, "shearY", 0);
data._yY1 = _2d._z12(this._y12(_v12, "transform", "normal"));
_6X1.bones.push(data)
}
}
if (_j8.slots) {
for (var _i2 = 0; _i2 < _j8.slots.length; _i2++) {
var _A12 = _j8.slots[_i2];
var _Z_1 = _A12.name;
var _X_1 = _A12.bone;
var _ic = _6X1._Nb(_X_1);
if (_ic == null) throw new Error("Slot bone not found: " + _X_1);
var data = new spine._B12(_6X1.slots.length, _Z_1, _ic);
var color = this._y12(_A12, "color", null);
if (color != null) data.color._C12(color);
var _JU1 = this._y12(_A12, "dark", null);
if (_JU1 != null) {
data._Be = new spine._b9(1, 1, 1, 1);
data._Be._C12(_JU1)
}
data._Lf = this._y12(_A12, "attachment", null);
data._He = _2d._D12(this._y12(_A12, "blend", "normal"));
_6X1.slots.push(data)
}
}
if (_j8.ik) {
for (var _i2 = 0; _i2 < _j8.ik.length; _i2++) {
var _E12 = _j8.ik[_i2];
var data = new spine._uZ1(_E12.name);
data._4Z1 = this._y12(_E12, "order", 0);
for (var _nb = 0; _nb < _E12.bones.length; _nb++) {
var _X_1 = _E12.bones[_nb];
var bone = _6X1._Nb(_X_1);
if (bone == null) throw new Error("IK bone not found: " + _X_1);
data.bones.push(bone)
}
var _F12 = _E12.target;
data.target = _6X1._Nb(_F12);
if (data.target == null) throw new Error("IK target bone not found: " + _F12);
data.mix = this._y12(_E12, "mix", 1);
data._BV1 = this._y12(_E12, "bendPositive", !0) ? 1 : -1;
data.compress = this._y12(_E12, "compress", !1);
data._V1 = this._y12(_E12,
"stretch", !1);
data._6Z1 = this._y12(_E12, "uniform", !1);
_6X1._HV1.push(data)
}
}
if (_j8.transform) {
for (var _i2 = 0; _i2 < _j8.transform.length; _i2++) {
var _E12 = _j8.transform[_i2];
var data = new spine._G12(_E12.name);
data._4Z1 = this._y12(_E12, "order", 0);
for (var _nb = 0; _nb < _E12.bones.length; _nb++) {
var _X_1 = _E12.bones[_nb];
var bone = _6X1._Nb(_X_1);
if (bone == null) throw new Error("Transform constraint bone not found: " + _X_1);
data.bones.push(bone)
}
var _F12 = _E12.target;
data.target = _6X1._Nb(_F12);
if (data.target == null) throw new Error("Transform constraint target bone not found: " + _F12);
data._VY1 = this._y12(_E12, "local", !1);
data._H12 = this._y12(_E12, "relative", !1);
data._OZ1 = this._y12(_E12, "rotation", 0);
data._R9 = this._y12(_E12, "x", 0) * scale;
data._S9 = this._y12(_E12, "y", 0) * scale;
data._I12 = this._y12(_E12, "scaleX", 0);
data._J12 = this._y12(_E12, "scaleY", 0);
data._K12 = this._y12(_E12, "shearY", 0);
data.rotateMix = this._y12(_E12, "rotateMix", 1);
data._OV1 = this._y12(_E12, "translateMix", 1);
data.scaleMix = this._y12(_E12, "scaleMix", 1);
data._PV1 = this._y12(_E12, "shearMix", 1);
_6X1._UV1.push(data)
}
}
if (_j8.path) {
for (var _i2 = 0; _i2 < _j8.path.length; _i2++) {
var _E12 = _j8.path[_i2];
var data = new spine._m_1(_E12.name);
data._4Z1 = this._y12(_E12, "order", 0);
for (var _nb = 0; _nb < _E12.bones.length; _nb++) {
var _X_1 = _E12.bones[_nb];
var bone = _6X1._Nb(_X_1);
if (bone == null) throw new Error("Transform constraint bone not found: " + _X_1);
data.bones.push(bone)
}
var _F12 = _E12.target;
data.target = _6X1._Z8(_F12);
if (data.target == null) throw new Error("Path target slot not found: " + _F12);
data._KZ1 = _2d._L12(this._y12(_E12, "positionMode", "percent"));
data.spacingMode = _2d._M12(this._y12(_E12,
"spacingMode", "length"));
data.rotateMode = _2d._N12(this._y12(_E12, "rotateMode", "tangent"));
data._OZ1 = this._y12(_E12, "rotation", 0);
data.position = this._y12(_E12, "position", 0);
if (data._KZ1 == spine._LZ1.Fixed) data.position *= scale;
data.spacing = this._y12(_E12, "spacing", 0);
if (data.spacingMode == spine._zZ1.Length || data.spacingMode == spine._zZ1.Fixed) data.spacing *= scale;
data.rotateMix = this._y12(_E12, "rotateMix", 1);
data._OV1 = this._y12(_E12, "translateMix", 1);
_6X1._1W1.push(data)
}
}
if (_j8.skins) {
for (var ___1 in _j8.skins) {
var _O12 = _j8.skins[___1];
var skin = new spine._P12(___1);
for (var _Z_1 in _O12) {
var _09 = _6X1._19(_Z_1);
if (_09 == -1) throw new Error("Slot not found: " + _Z_1);
var _A12 = _O12[_Z_1];
for (var _Q12 in _A12) {
var attachment = this._R12(_A12[_Q12], skin, _09, _Q12, _6X1);
if (attachment != null) skin._S12(_09, _Q12, attachment)
}
}
_6X1.skins.push(skin);
if (skin.name == "default") _6X1._O8 = skin
}
}
for (var _i2 = 0, _3b = this._s12.length; _i2 < _3b; _i2++) {
var _T12 = this._s12[_i2];
var skin = _T12.skin == null ? _6X1._O8 : _6X1._002(_T12.skin);
if (skin == null) throw new Error("Skin not found: " + _T12.skin);
var _U12 = skin._39(_T12._09, _T12.parent);
if (_U12 == null) throw new Error("Parent mesh not found: " + _T12.parent);
_T12._Sd._V12(_U12);
_T12._Sd._W12()
}
this._s12.length = 0;
if (_j8.events) {
for (var _X12 in _j8.events) {
var _Y12 = _j8.events[_X12];
var data = new spine._1Z1(_X12);
data._88 = this._y12(_Y12, "int", 0);
data._98 = this._y12(_Y12, "float", 0);
data._a8 = this._y12(_Y12, "string", "");
data._Z12 = this._y12(_Y12, "audio", null);
if (data._Z12 != null) {
data.volume = this._y12(_Y12, "volume", 1);
data._ze1 = this._y12(_Y12, "balance", 0)
}
_6X1.events.push(data)
}
}
if (_j8.animations) {
for (var _5X1 in _j8.animations) {
var __12 = _j8.animations[_5X1];
this._022(__12, _5X1, _6X1)
}
}
return _6X1
};
_2d.prototype._R12 = function (map, skin, _09, name, _6X1) {
var scale = this.scale;
name = this._y12(map, "name", name);
var type = this._y12(map, "type", "region");
switch (type) {
case "region": {
var path = this._y12(map, "path", name);
var _L9 = this._0a._3a(skin, name, path);
if (_L9 == null) return null;
_L9.path = path;
_L9.x = this._y12(map, "x", 0) * scale;
_L9.y = this._y12(map, "y", 0) * scale;
_L9.scaleX = this._y12(map, "scaleX", 1);
_L9.scaleY = this._y12(map,
"scaleY", 1);
_L9.rotation = this._y12(map, "rotation", 0);
_L9.width = map.width * scale;
_L9.height = map.height * scale;
var color = this._y12(map, "color", null);
if (color != null) _L9.color._C12(color);
_L9._8a();
return _L9
}
case "boundingbox": {
var _122 = this._0a._fY1(skin, name);
if (_122 == null) return null;
this._222(map, _122, map.vertexCount << 1);
var color = this._y12(map, "color", null);
if (color != null) _122.color._C12(color);
return _122
}
case "mesh":
case "linkedmesh": {
var path = this._y12(map, "path", name);
var _Sd = this._0a._eY1(skin, name, path);
if (_Sd == null) return null;
_Sd.path = path;
var color = this._y12(map, "color", null);
if (color != null) _Sd.color._C12(color);
var _322 = this._y12(map, "parent", null);
if (_322 != null) {
_Sd._422 = this._y12(map, "deform", !0);
this._s12.push(new LinkedMesh(_Sd, this._y12(map, "skin", null), _09, _322));
return _Sd
}
var uvs = map.uvs;
this._222(map, _Sd, uvs.length);
_Sd.triangles = map.triangles;
_Sd._522 = uvs;
_Sd._W12();
_Sd._622 = this._y12(map, "hull", 0) * 2;
return _Sd
}
case "path": {
var path = this._0a._gY1(skin, name);
if (path == null) return null;
path._Do = this._y12(map,
"closed", !1);
path._0_1 = this._y12(map, "constantSpeed", !0);
var vertexCount = map.vertexCount;
this._222(map, path, vertexCount << 1);
var lengths = spine._PT1._722(vertexCount / 3, 0);
for (var _i2 = 0; _i2 < map.lengths.length; _i2++) lengths[_i2] = map.lengths[_i2] * scale;
path.lengths = lengths;
var color = this._y12(map, "color", null);
if (color != null) path.color._C12(color);
return path
}
case "point": {
var _Sa1 = this._0a._iY1(skin, name);
if (_Sa1 == null) return null;
_Sa1.x = this._y12(map, "x", 0) * scale;
_Sa1.y = this._y12(map, "y", 0) * scale;
_Sa1.rotation = this._y12(map,
"rotation", 0);
var color = this._y12(map, "color", null);
if (color != null) _Sa1.color._C12(color);
return _Sa1
}
case "clipping": {
var clip = this._0a._kY1(skin, name);
if (clip == null) return null;
var end = this._y12(map, "end", null);
if (end != null) {
var slot = _6X1._Z8(end);
if (slot == null) throw new Error("Clipping end slot not found: " + end);
clip._L02 = slot;
}
var vertexCount = map.vertexCount;
this._222(map, clip, vertexCount << 1);
var color = this._y12(map, "color", null);
if (color != null) clip.color._C12(color);
return clip
}
}
return null
};
_2d.prototype._222 = function (map,
attachment, _XZ1) {
var scale = this.scale;
attachment._Td = _XZ1;
var vertices = map.vertices;
if (_XZ1 == vertices.length) {
var _822 = spine._PT1._922(vertices);
if (scale != 1) {
for (var _i2 = 0, _3b = vertices.length; _i2 < _3b; _i2++) _822[_i2] *= scale
}
attachment.vertices = _822;
return
}
var _a22 = new Array();
var bones = new Array();
for (var _i2 = 0, _3b = vertices.length; _i2 < _3b;) {
var _CZ1 = vertices[_i2++];
bones.push(_CZ1);
for (var _a02 = _i2 + _CZ1 * 4; _i2 < _a02; _i2 += 4) {
bones.push(vertices[_i2]);
_a22.push(vertices[_i2 + 1] * scale);
_a22.push(vertices[_i2 + 2] * scale);
_a22.push(vertices[_i2 + 3])
}
}
attachment.bones = bones;
attachment.vertices = spine._PT1._922(_a22)
};
_2d.prototype._022 = function (map, name, _6X1) {
var scale = this.scale;
var _ya = new Array();
var duration = 0;
if (map.slots) {
for (var _Z_1 in map.slots) {
var _A12 = map.slots[_Z_1];
var _09 = _6X1._19(_Z_1);
if (_09 == -1) throw new Error("Slot not found: " + _Z_1);
for (var _b22 in _A12) {
var _c22 = _A12[_b22];
if (_b22 == "attachment") {
var _zB = new spine._PU1(_c22.length);
_zB._09 = _09;
var _F8 = 0;
for (var _i2 = 0; _i2 < _c22.length; _i2++) {
var _d22 = _c22[_i2];
_zB._kU1(_F8++,
_d22.time, _d22.name)
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[_zB._ST1() - 1])
} else if (_b22 == "color") {
var _zB = new spine._zU1(_c22.length);
_zB._09 = _09;
var _F8 = 0;
for (var _i2 = 0; _i2 < _c22.length; _i2++) {
var _d22 = _c22[_i2];
var color = new spine._b9();
color._C12(_d22.color);
_zB._kU1(_F8, _d22.time, color._79, color._89, color._99, color._a9);
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._zU1._oU1])
} else if (_b22 == "twoColor") {
var _zB = new spine._FU1(_c22.length);
_zB._09 = _09;
var _F8 = 0;
for (var _i2 = 0; _i2 < _c22.length; _i2++) {
var _d22 = _c22[_i2];
var _IU1 = new spine._b9();
var _JU1 = new spine._b9();
_IU1._C12(_d22._IU1);
_JU1._C12(_d22._JU1);
_zB._kU1(_F8, _d22.time, _IU1._79, _IU1._89, _IU1._99, _IU1._a9, _JU1._79, _JU1._89, _JU1._99);
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._FU1._oU1]);
} else throw new Error("Invalid timeline type for a slot: " + _b22 + " (" + _Z_1 + ")")
}
}
}
if (map.bones) {
for (var _X_1 in map.bones) {
var _v12 = map.bones[_X_1];
var _jU1 = _6X1._Y_1(_X_1);
if (_jU1 == -1) throw new Error("Bone not found: " + _X_1);
for (var _b22 in _v12) {
var _c22 = _v12[_b22];
if (_b22 === "rotate") {
var _zB = new spine._fU1(_c22.length);
_zB._jU1 = _jU1;
var _F8 = 0;
for (var _i2 = 0; _i2 < _c22.length; _i2++) {
var _d22 = _c22[_i2];
_zB._kU1(_F8, _d22.time, _d22.angle);
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._fU1._oU1]);
} else if (_b22 === "translate" || _b22 === "scale" || _b22 === "shear") {
var _zB = null;
var _f22 = 1;
if (_b22 === "scale") _zB = new spine._wU1(_c22.length);
else if (_b22 === "shear") _zB = new spine._yU1(_c22.length);
else {
_zB = new spine._tU1(_c22.length);
_f22 = scale
}
_zB._jU1 = _jU1;
var _F8 = 0;
for (var _i2 = 0; _i2 < _c22.length; _i2++) {
var _d22 = _c22[_i2];
var x = this._y12(_d22, "x", 0),
y = this._y12(_d22, "y", 0);
_zB._kU1(_F8, _d22.time, x * _f22, y * _f22);
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._tU1._oU1]);
} else throw new Error("Invalid timeline type for a bone: " + _b22 + " (" + _X_1 + ")")
}
}
}
if (map.ik) {
for (var _702 in map.ik) {
var _E12 = map.ik[_702];
var _GV1 = _6X1._602(_702);
var _zB = new spine._zV1(_E12.length);
_zB._AV1 = _6X1._HV1.indexOf(_GV1);
var _F8 = 0;
for (var _i2 = 0; _i2 < _E12.length; _i2++) {
var _d22 = _E12[_i2];
_zB._kU1(_F8, _d22.time, this._y12(_d22, "mix", 1), this._y12(_d22, "bendPositive", !0) ? 1 : -1, this._y12(_d22, "compress", !1), this._y12(_d22, "stretch", !1));
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._zV1._oU1])
}
}
if (map.transform) {
for (var _702 in map.transform) {
var _E12 = map.transform[_702];
var _GV1 = _6X1._802(_702);
var _zB = new spine._MV1(_E12.length);
_zB._NV1 = _6X1._UV1.indexOf(_GV1);
var _F8 = 0;
for (var _i2 = 0; _i2 < _E12.length; _i2++) {
var _d22 = _E12[_i2];
_zB._kU1(_F8, _d22.time, this._y12(_d22, "rotateMix", 1), this._y12(_d22, "translateMix", 1), this._y12(_d22, "scaleMix", 1), this._y12(_d22, "shearMix", 1));
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._MV1._oU1]);
}
}
if (map.paths) {
for (var _702 in map.paths) {
var _E12 = map.paths[_702];
var index = _6X1._q12(_702);
if (index == -1) throw new Error("Path constraint not found: " + _702);
var data = _6X1._1W1[index];
for (var _b22 in _E12) {
var _c22 = _E12[_b22];
if (_b22 === "position" || _b22 === "spacing") {
var _zB = null;
var _f22 = 1;
if (_b22 === "spacing") {
_zB = new spine._3W1(_c22.length);
if (data.spacingMode == spine._zZ1.Length || data.spacingMode == spine._zZ1.Fixed) _f22 = scale
} else {
_zB = new spine._ZV1(_c22.length);
if (data._KZ1 == spine._LZ1.Fixed) _f22 = scale
}
_zB.__V1 = index;
var _F8 = 0;
for (var _i2 = 0; _i2 < _c22.length; _i2++) {
var _d22 = _c22[_i2];
_zB._kU1(_F8, _d22.time, this._y12(_d22, _b22, 0) * _f22);
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._ZV1._oU1])
} else if (_b22 === "mix") {
var _zB = new spine._4W1(_c22.length);
_zB.__V1 = index;
var _F8 = 0;
for (var _i2 = 0; _i2 < _c22.length; _i2++) {
var _d22 = _c22[_i2];
_zB._kU1(_F8, _d22.time, this._y12(_d22, "rotateMix", 1), this._y12(_d22, "translateMix", 1));
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[(_zB._ST1() - 1) * spine._4W1._oU1])
}
}
}
}
if (map.deform) {
for (var _g22 in map.deform) {
var _h22 = map.deform[_g22];
var skin = _6X1._002(_g22);
if (skin == null) throw new Error("Skin not found: " + _g22);
for (var _Z_1 in _h22) {
var _A12 = _h22[_Z_1];
var _09 = _6X1._19(_Z_1);
if (_09 == -1) throw new Error("Slot not found: " + _A12.name);
for (var _b22 in _A12) {
var _c22 = _A12[_b22];
var attachment = skin._39(_09, _b22);
if (attachment == null) throw new Error("Deform attachment not found: " + _c22.name);
var _i22 = attachment.bones != null;
var vertices = attachment.vertices;
var _j22 = _i22 ? vertices.length / 3 * 2 : vertices.length;
var _zB = new spine._UU1(_c22.length);
_zB._09 = _09;
_zB.attachment = attachment;
var _F8 = 0;
for (var _nb = 0; _nb < _c22.length; _nb++) {
var _d22 = _c22[_nb];
var deform = void 0;
var _k22 = this._y12(_d22, "vertices", null);
if (_k22 == null) deform = _i22 ? spine._PT1._QT1(_j22) : vertices;
else {
deform = spine._PT1._QT1(_j22);
var start = this._y12(_d22, "offset", 0);
spine._PT1._9V1(_k22, 0, deform, start, _k22.length);
if (scale != 1) {
for (var _i2 = start, _3b = _i2 + _k22.length; _i2 < _3b; _i2++) deform[_i2] *= scale
}
if (!_i22) {
for (var _i2 = 0; _i2 < _j22; _i2++) deform[_i2] += vertices[_i2]
}
}
_zB._kU1(_F8, _d22.time, deform);
this._e22(_d22, _zB, _F8);
_F8++
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[_zB._ST1() - 1])
}
}
}
}
var _l22 = map.drawOrder;
if (_l22 == null) _l22 = map._m22;
if (_l22 != null) {
var _zB = new spine._wV1(_l22.length);
var _d02 = _6X1.slots.length;
var _F8 = 0;
for (var _nb = 0; _nb < _l22.length; _nb++) {
var _n22 = _l22[_nb];
var drawOrder = null;
var _o22 = this._y12(_n22, "offsets", null);
if (_o22 != null) {
drawOrder = spine._PT1._722(_d02, -1);
var _p22 = spine._PT1._722(_d02 - _o22.length, 0);
var _q22 = 0,
_r22 = 0;
for (var _i2 = 0; _i2 < _o22.length; _i2++) {
var _s22 = _o22[_i2];
var _09 = _6X1._19(_s22.slot);
if (_09 == -1) throw new Error("Slot not found: " + _s22.slot);
while (_q22 != _09) _p22[_r22++] = _q22++;
drawOrder[_q22 + _s22.offset] = _q22++
}
while (_q22 < _d02) _p22[_r22++] = _q22++;
for (var _i2 = _d02 - 1; _i2 >= 0; _i2--)
if (drawOrder[_i2] == -1) drawOrder[_i2] = _p22[--_r22]
}
_zB._kU1(_F8++, _n22.time, drawOrder)
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[_zB._ST1() - 1])
}
if (map.events) {
var _zB = new spine._ac(map.events.length);
var _F8 = 0;
for (var _i2 = 0; _i2 < map.events.length; _i2++) {
var _Y12 = map.events[_i2];
var _BB = _6X1._n12(_Y12.name);
if (_BB == null) throw new Error("Event not found: " + _Y12.name);
var _t22 = new spine._DB(spine._PT1._u22(_Y12.time), _BB);
_t22._88 = this._y12(_Y12, "int", _BB._88);
_t22._98 = this._y12(_Y12, "float", _BB._98);
_t22._a8 = this._y12(_Y12, "string", _BB._a8);
if (_t22.data._Z12 != null) {
_t22.volume = this._y12(_Y12, "volume", 1);
_t22._ze1 = this._y12(_Y12, "balance", 0)
}
_zB._kU1(_F8++, _t22)
}
_ya.push(_zB);
duration = Math.max(duration, _zB.frames[_zB._ST1() - 1]);
}
if (isNaN(duration)) {
throw new Error("Error while parsing animation, duration is NaN")
}
_6X1.animations.push(new spine._FT1(name, _ya, duration))
};
_2d.prototype._e22 = function (map, _zB, _F8) {
if (!map.curve) return;
if (map.curve === "stepped") _zB._UT1(_F8);
else if (Object.prototype.toString.call(map.curve) === '[object Array]') {
var curve = map.curve;
_zB._YT1(_F8, curve[0], curve[1], curve[2], curve[3])
}
};
_2d.prototype._y12 = function (map, prop, _v22) {
return map[prop] !== undefined ? map[prop] : _v22
};
_2d._D12 = function (_8z) {
_8z = _8z.toLowerCase();
if (_8z == "normal") return spine._ce.Normal;
if (_8z == "additive") return spine._ce.Additive;
if (_8z == "multiply") return spine._ce.Multiply;
if (_8z == "screen") return spine._ce.Screen;
throw new Error("Unknown blend mode: " + _8z)
};
_2d._L12 = function (_8z) {
_8z = _8z.toLowerCase();
if (_8z == "fixed") return spine._LZ1.Fixed;
if (_8z == "percent") return spine._LZ1.Percent;
throw new Error("Unknown position mode: " + _8z)
};
_2d._M12 = function (_8z) {
_8z = _8z.toLowerCase();
if (_8z == "length") return spine._zZ1.Length;
if (_8z == "fixed") return spine._zZ1.Fixed;
if (_8z == "percent") return spine._zZ1.Percent;
throw new Error("Unknown position mode: " + _8z)
};
_2d._N12 = function (_8z) {
_8z = _8z.toLowerCase();
if (_8z == "tangent") return spine._BZ1.Tangent;
if (_8z == "chain") return spine._BZ1.Chain;
if (_8z == "chainscale") return spine._BZ1.ChainScale;
throw new Error("Unknown rotate mode: " + _8z)
};
_2d._z12 = function (_8z) {
_8z = _8z.toLowerCase();
if (_8z == "normal") return spine._zY1.Normal;
if (_8z == "onlytranslation") return spine._zY1.OnlyTranslation;
if (_8z == "norotationorreflection") return spine._zY1.NoRotationOrReflection;
if (_8z == "noscale") return spine._zY1.NoScale;
if (_8z == "noscaleorreflection") return spine._zY1.NoScaleOrReflection;
throw new Error("Unknown transform mode: " + _8z)
};
return _2d
}());
spine._2d = _2d;
var LinkedMesh = (function () {
function LinkedMesh(_Sd, skin, _09, parent) {
this._Sd = _Sd;
this.skin = skin;
this._09 = _09;
this.parent = parent
}
return LinkedMesh
}())
})(spine || (spine = {}));
var spine;
(function (spine) {
var _P12 = (function () {
function _P12(name) {
this._KW1 = new Array();
if (name == null) throw new Error("name cannot be null.");
this.name = name;
}
_P12.prototype._S12 = function (_09, name, attachment) {
if (attachment == null) throw new Error("attachment cannot be null.");
var _KW1 = this._KW1;
if (_09 >= _KW1.length) _KW1.length = _09 + 1;
if (!_KW1[_09]) _KW1[_09] = {};
_KW1[_09][name] = attachment
};
_P12.prototype._39 = function (_09, name) {
var _w22 = this._KW1[_09];
return _w22 ? _w22[name] : null
};
_P12.prototype._302 = function (skeleton, _x22) {
var _09 = 0;
for (var _i2 = 0; _i2 < skeleton.slots.length; _i2++) {
var slot = skeleton.slots[_i2];
var _XU1 = slot._39();
if (_XU1 && _09 < _x22._KW1.length) {
var _w22 = _x22._KW1[_09];
for (var key in _w22) {
var _y22 = _w22[key];
if (_XU1 == _y22) {
var attachment = this._39(_09, key);
if (attachment != null) slot.__8(attachment);
break
}
}
}
_09++
}
};
return _P12
}());
spine._P12 = _P12
})(spine || (spine = {}));
var spine;
(function (spine) {
var _C_1 = (function () {
function _C_1(data, bone) {
this._0V1 = new Array();
if (data == null) throw new Error("data cannot be null.");
if (bone == null) throw new Error("bone cannot be null.");
this.data = data;
this.bone = bone;
this.color = new spine._b9();
this._Be = data._Be == null ? null : new spine._b9();
this._sY1();
}
_C_1.prototype._39 = function () {
return this.attachment
};
_C_1.prototype.__8 = function (attachment) {
if (this.attachment == attachment) return;
this.attachment = attachment;
this._z22 = this.bone.skeleton.time;
this._0V1.length = 0
};
_C_1.prototype._A22 = function (time) {
this._z22 = this.bone.skeleton.time - time
};
_C_1.prototype._B22 = function () {
return this.bone.skeleton.time - this._z22
};
_C_1.prototype._sY1 = function () {
this.color._7a(this.data.color);
if (this._Be != null) this._Be._7a(this.data._Be);
if (this.data._Lf == null) this.attachment = null;
else {
this.attachment = null;
this.__8(this.bone.skeleton._39(this.data.index, this.data._Lf))
}
};
return _C_1
}());
spine._C_1 = _C_1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _B12 = (function () {
function _B12(index, name, _ic) {
this.color = new spine._b9(1, 1, 1, 1);
if (index < 0) throw new Error("index must be >= 0.");
if (name == null) throw new Error("name cannot be null.");
if (_ic == null) throw new Error("boneData cannot be null.");
this.index = index;
this.name = name;
this._ic = _ic
}
return _B12
}());
spine._B12 = _B12
})(spine || (spine = {}));
var spine;
(function (spine) {
var _YE1 = (function () {
function _YE1(_I9) {
this._KE1 = _I9
}
_YE1.prototype._qc = function () {
return this._KE1
};
_YE1._C22 = function (text) {
switch (text.toLowerCase()) {
case "nearest":
return _C9.Nearest;
case "linear":
return _C9.Linear;
case "mipmap":
return _C9.MipMap;
case "mipmapnearestnearest":
return _C9.MipMapNearestNearest;
case "mipmaplinearnearest":
return _C9.MipMapLinearNearest;
case "mipmapnearestlinear":
return _C9.MipMapNearestLinear;
case "mipmaplinearlinear":
return _C9.MipMapLinearLinear;
default:
throw new Error("Unknown texture filter " + text);
}
};
_YE1._D22 = function (text) {
switch (text.toLowerCase()) {
case "mirroredtepeat":
return _F9.MirroredRepeat;
case "clamptoedge":
return _F9.ClampToEdge;
case "repeat":
return _F9.Repeat;
default:
throw new Error("Unknown texture wrap " + text)
}
};
return _YE1
}());
spine._YE1 = _YE1;
var _C9;
(function (_C9) {
_C9[_C9["Nearest"] = 9728] = "Nearest";
_C9[_C9["Linear"] = 9729] = "Linear";
_C9[_C9["MipMap"] = 9987] = "MipMap";
_C9[_C9["MipMapNearestNearest"] = 9984] = "MipMapNearestNearest";
_C9[_C9["MipMapLinearNearest"] = 9985] = "MipMapLinearNearest";
_C9[_C9["MipMapNearestLinear"] = 9986] = "MipMapNearestLinear";
_C9[_C9["MipMapLinearLinear"] = 9987] = "MipMapLinearLinear"
})(_C9 = spine._C9 || (spine._C9 = {}));
var _F9;
(function (_F9) {
_F9[_F9["MirroredRepeat"] = 33648] = "MirroredRepeat";
_F9[_F9["ClampToEdge"] = 33071] = "ClampToEdge";
_F9[_F9["Repeat"] = 10497] = "Repeat"
})(_F9 = spine._F9 || (spine._F9 = {}));
var _E22 = (function () {
function _E22() {
this._N9 = 0;
this._O9 = 0;
this._P9 = 0;
this._Q9 = 0;
this.width = 0;
this.height = 0;
this.rotate = !1;
this._R9 = 0;
this._S9 = 0;
this._T9 = 0;
this._U9 = 0;
}
return _E22
}());
spine._E22 = _E22;
var _YX1 = (function (_gU1) {
_BT1(_YX1, _gU1);
function _YX1() {
return _gU1 !== null && _gU1.apply(this,
arguments) || this
}
_YX1.prototype._J9 = function (_B9, _D9) {};
_YX1.prototype._K9 = function (_E9, _G9) {};
_YX1.prototype.dispose = function () {};
return _YX1
}(spine._YE1));
spine._YX1 = _YX1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _Y9 = (function () {
function _Y9(_F22, _JX1) {
this._Z9 = new Array();
this.__9 = new Array();
this.load(_F22, _JX1)
}
_Y9.prototype.load = function (_F22, _JX1) {
if (_F22 === null || _F22 === undefined) return;
if (_JX1 === null || _JX1 === undefined) return;
var _G22 = new _H22(_F22);
var _I22 = new Array(4);
var _x9 = null;
while (!0) {
var _J22 = _G22._K22();
if (_J22 == null) break;
_J22 = _J22.trim();
if (_J22.length == 0) _x9 = null;
else if (!_x9) {
_x9 = new _y9();
_x9.name = _J22;
if (_G22._L22(_I22) == 2) {
_x9.width = parseInt(_I22[0]);
_x9.height = parseInt(_I22[1]);
_G22._L22(_I22)
}
_G22._L22(_I22);
_x9._B9 = spine._YE1._C22(_I22[0]);
_x9._D9 = spine._YE1._C22(_I22[1]);
var _35 = _G22._M22();
_x9._E9 = spine._F9.ClampToEdge;
_x9._G9 = spine._F9.ClampToEdge;
if (_35 == "x") _x9._E9 = spine._F9.Repeat;
else if (_35 == "y") _x9._G9 = spine._F9.Repeat;
else if (_35 == "xy") _x9._E9 = _x9._G9 = spine._F9.Repeat;
_x9._A9 = _JX1(_J22);
_x9._A9._J9(_x9._B9, _x9._D9);
_x9._A9._K9(_x9._E9, _x9._G9);
_x9.width = _x9._A9._qc().width;
_x9.height = _x9._A9._qc().height;
this._Z9.push(_x9)
} else {
var _L9 = new _M9();
_L9.name = _J22;
_L9._x9 = _x9;
_L9.rotate = _G22._M22() == "true";
_G22._L22(_I22);
var x = parseInt(_I22[0]);
var y = parseInt(_I22[1]);
_G22._L22(_I22);
var width = parseInt(_I22[0]);
var height = parseInt(_I22[1]);
_L9._N9 = x / _x9.width;
_L9._O9 = y / _x9.height;
if (_L9.rotate) {
_L9._P9 = (x + height) / _x9.width;
_L9._Q9 = (y + width) / _x9.height
} else {
_L9._P9 = (x + width) / _x9.width;
_L9._Q9 = (y + height) / _x9.height
}
_L9.x = x;
_L9.y = y;
_L9.width = Math.abs(width);
_L9.height = Math.abs(height);
if (_G22._L22(_I22) == 4) {
if (_G22._L22(_I22) == 4) {
_G22._L22(_I22)
}
}
_L9._T9 = parseInt(_I22[0]);
_L9._U9 = parseInt(_I22[1]);
_G22._L22(_I22);
_L9._R9 = parseInt(_I22[0]);
_L9._S9 = parseInt(_I22[1]);
_L9.index = parseInt(_G22._M22());
_L9._A9 = _x9._A9;
this.__9.push(_L9)
}
}
};
_Y9.prototype._cY1 = function (name) {
for (var _i2 = 0; _i2 < this.__9.length; _i2++) {
if (this.__9[_i2].name == name) {
return this.__9[_i2]
}
}
return null
};
_Y9.prototype.dispose = function () {
for (var _i2 = 0; _i2 < this._Z9.length; _i2++) {
this._Z9[_i2]._A9.dispose()
}
};
return _Y9
}());
spine._Y9 = _Y9;
var _H22 = (function () {
function _H22(text) {
this.index = 0;
var _oy = text.replace("\r\n", "\n");
_oy = _oy.replace("\r", "\n");
this._N22 = text.split("\n")
}
_H22.prototype._K22 = function () {
if (this.index >= this._N22.length) return null;
return this._N22[this.index++]
};
_H22.prototype._M22 = function () {
var _J22 = this._K22();
var _O22 = _J22.indexOf(":");
if (_O22 == -1) throw new Error("Invalid line: " + _J22);
return _J22.substring(_O22 + 1).trim()
};
_H22.prototype._L22 = function (_I22) {
var _J22 = this._K22();
var _O22 = _J22.indexOf(":");
if (_O22 == -1) throw new Error("Invalid line: " + _J22);
var _i2 = 0,
_P22 = _O22 + 1;
for (; _i2 < 3; _i2++) {
var _Q22 = _J22.indexOf(",", _P22);
if (_Q22 == -1) break;
_I22[_i2] = _J22.substr(_P22, _Q22 - _P22).trim();
_P22 = _Q22 + 1
}
_I22[_i2] = _J22.substring(_P22).trim();
return _i2 + 1
};
return _H22
}());
var _y9 = (function () {
function _y9() {}
return _y9
}());
spine._y9 = _y9;
var _M9 = (function (_gU1) {
_BT1(_M9, _gU1);
function _M9() {
return _gU1 !== null && _gU1.apply(this, arguments) || this
}
return _M9
}(spine._E22));
spine._M9 = _M9
})(spine || (spine = {}));
var spine;
(function (spine) {
var _F_1 = (function () {
function _F_1(data, skeleton) {
this.rotateMix = 0;
this._OV1 = 0;
this.scaleMix = 0;
this._PV1 = 0;
this._yE = new spine._R22();
if (data == null) throw new Error("data cannot be null.");
if (skeleton == null) throw new Error("skeleton cannot be null.");
this.data = data;
this.rotateMix = data.rotateMix;
this._OV1 = data._OV1;
this.scaleMix = data.scaleMix;
this._PV1 = data._PV1;
this.bones = new Array();
for (var _i2 = 0; _i2 < data.bones.length; _i2++) this.bones.push(skeleton._Nb(data.bones[_i2].name));
this.target = skeleton._Nb(data.target.name)
}
_F_1.prototype.apply = function () {
this._Ba()
};
_F_1.prototype._Ba = function () {
if (this.data._VY1) {
if (this.data._H12) this._S22();
else this._T22()
} else {
if (this.data._H12) this._U22();
else this._V22()
}
};
_F_1.prototype._V22 = function () {
var rotateMix = this.rotateMix,
_OV1 = this._OV1,
scaleMix = this.scaleMix,
_PV1 = this._PV1;
var target = this.target;
var _pZ1 = target._a9,
_W22 = target._99,
_X22 = target._j2,
_Y22 = target._Xn;
var _Z22 = _pZ1 * _Y22 - _W22 * _X22 > 0 ? spine._cU1._QZ1 : -spine._cU1._QZ1;
var _OZ1 = this.data._OZ1 * _Z22;
var _K12 = this.data._K12 * _Z22;
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) {
var bone = bones[_i2];
var _2q1 = !1;
if (rotateMix != 0) {
var _a9 = bone._a9,
_99 = bone._99,
_j2 = bone._j2,
_Xn = bone._Xn;
var _79 = Math.atan2(_X22, _pZ1) - Math.atan2(_j2, _a9) + _OZ1;
if (_79 > spine._cU1.PI) _79 -= spine._cU1._VZ1;
else if (_79 < -spine._cU1.PI) _79 += spine._cU1._VZ1;
_79 *= rotateMix;
var cos = Math.cos(_79),
sin = Math.sin(_79);
bone._a9 = cos * _a9 - sin * _j2;
bone._99 = cos * _99 - sin * _Xn;
bone._j2 = sin * _a9 + cos * _j2;
bone._Xn = sin * _99 + cos * _Xn;
_2q1 = !0
}
if (_OV1 != 0) {
var _yE = this._yE;
target._UY1(_yE.set(this.data._R9, this.data._S9));
bone._Sb += (_yE.x - bone._Sb) * _OV1;
bone._Tb += (_yE.y - bone._Tb) * _OV1;
_2q1 = !0
}
if (scaleMix > 0) {
var _wy = Math.sqrt(bone._a9 * bone._a9 + bone._j2 * bone._j2);
var __22 = Math.sqrt(_pZ1 * _pZ1 + _X22 * _X22);
if (_wy > 0.00001) _wy = (_wy + (__22 - _wy + this.data._I12) * scaleMix) / _wy;
bone._a9 *= _wy;
bone._j2 *= _wy;
_wy = Math.sqrt(bone._99 * bone._99 + bone._Xn * bone._Xn);
__22 = Math.sqrt(_W22 * _W22 + _Y22 * _Y22);
if (_wy > 0.00001) _wy = (_wy + (__22 - _wy + this.data._J12) * scaleMix) / _wy;
bone._99 *= _wy;
bone._Xn *= _wy;
_2q1 = !0
}
if (_PV1 > 0) {
var _99 = bone._99,
_Xn = bone._Xn;
var _pm1 = Math.atan2(_Xn, _99);
var _79 = Math.atan2(_Y22, _W22) - Math.atan2(_X22, _pZ1) - (_pm1 - Math.atan2(bone._j2, bone._a9));
if (_79 > spine._cU1.PI) _79 -= spine._cU1._VZ1;
else if (_79 < -spine._cU1.PI) _79 += spine._cU1._VZ1;
_79 = _pm1 + (_79 + _K12) * _PV1;
var _wy = Math.sqrt(_99 * _99 + _Xn * _Xn);
bone._99 = Math.cos(_79) * _wy;
bone._Xn = Math.sin(_79) * _wy;
_2q1 = !0;
}
if (_2q1) bone._qY1 = !1
}
};
_F_1.prototype._U22 = function () {
var rotateMix = this.rotateMix,
_OV1 = this._OV1,
scaleMix = this.scaleMix,
_PV1 = this._PV1;
var target = this.target;
var _pZ1 = target._a9,
_W22 = target._99,
_X22 = target._j2,
_Y22 = target._Xn;
var _Z22 = _pZ1 * _Y22 - _W22 * _X22 > 0 ? spine._cU1._QZ1 : -spine._cU1._QZ1;
var _OZ1 = this.data._OZ1 * _Z22,
_K12 = this.data._K12 * _Z22;
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) {
var bone = bones[_i2];
var _2q1 = !1;
if (rotateMix != 0) {
var _a9 = bone._a9,
_99 = bone._99,
_j2 = bone._j2,
_Xn = bone._Xn;
var _79 = Math.atan2(_X22, _pZ1) + _OZ1;
if (_79 > spine._cU1.PI) _79 -= spine._cU1._VZ1;
else if (_79 < -spine._cU1.PI) _79 += spine._cU1._VZ1;
_79 *= rotateMix;
var cos = Math.cos(_79),
sin = Math.sin(_79);
bone._a9 = cos * _a9 - sin * _j2;
bone._99 = cos * _99 - sin * _Xn;
bone._j2 = sin * _a9 + cos * _j2;
bone._Xn = sin * _99 + cos * _Xn;
_2q1 = !0
}
if (_OV1 != 0) {
var _yE = this._yE;
target._UY1(_yE.set(this.data._R9, this.data._S9));
bone._Sb += _yE.x * _OV1;
bone._Tb += _yE.y * _OV1;
_2q1 = !0
}
if (scaleMix > 0) {
var _wy = (Math.sqrt(_pZ1 * _pZ1 + _X22 * _X22) - 1 + this.data._I12) * scaleMix + 1;
bone._a9 *= _wy;
bone._j2 *= _wy;
_wy = (Math.sqrt(_W22 * _W22 + _Y22 * _Y22) - 1 + this.data._J12) * scaleMix + 1;
bone._99 *= _wy;
bone._Xn *= _wy;
_2q1 = !0
}
if (_PV1 > 0) {
var _79 = Math.atan2(_Y22, _W22) - Math.atan2(_X22, _pZ1);
if (_79 > spine._cU1.PI) _79 -= spine._cU1._VZ1;
else if (_79 < -spine._cU1.PI) _79 += spine._cU1._VZ1;
var _99 = bone._99,
_Xn = bone._Xn;
_79 = Math.atan2(_Xn, _99) + (_79 - spine._cU1.PI / 2 + _K12) * _PV1;
var _wy = Math.sqrt(_99 * _99 + _Xn * _Xn);
bone._99 = Math.cos(_79) * _wy;
bone._Xn = Math.sin(_79) * _wy;
_2q1 = !0
}
if (_2q1) bone._qY1 = !1
}
};
_F_1.prototype._T22 = function () {
var rotateMix = this.rotateMix,
_OV1 = this._OV1,
scaleMix = this.scaleMix,
_PV1 = this._PV1;
var target = this.target;
if (!target._qY1) target._JY1();
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) {
var bone = bones[_i2];
if (!bone._qY1) bone._JY1();
var rotation = bone._Yb;
if (rotateMix != 0) {
var _79 = target._Yb - rotation + this.data._OZ1;
_79 -= (16384 - ((16384.499999999996 - _79 / 360) | 0)) * 360;
rotation += _79 * rotateMix
}
var x = bone._5M,
y = bone._6M;
if (_OV1 != 0) {
x += (target._5M - x + this.data._R9) * _OV1;
y += (target._6M - y + this.data._S9) * _OV1
}
var scaleX = bone._mY1,
scaleY = bone._nY1;
if (scaleMix > 0) {
if (scaleX > 0.00001) scaleX = (scaleX + (target._mY1 - scaleX + this.data._I12) * scaleMix) / scaleX;
if (scaleY > 0.00001) scaleY = (scaleY + (target._nY1 - scaleY + this.data._J12) * scaleMix) / scaleY
}
var shearY = bone._pY1;
if (_PV1 > 0) {
var _79 = target._pY1 - shearY + this.data._K12;
_79 -= (16384 - ((16384.499999999996 - _79 / 360) | 0)) * 360;
bone.shearY += _79 * _PV1
}
bone._tY1(x, y, rotation, scaleX, scaleY, bone._oY1, shearY)
}
};
_F_1.prototype._S22 = function () {
var rotateMix = this.rotateMix,
_OV1 = this._OV1,
scaleMix = this.scaleMix,
_PV1 = this._PV1;
var target = this.target;
if (!target._qY1) target._JY1();
var bones = this.bones;
for (var _i2 = 0, _3b = bones.length; _i2 < _3b; _i2++) {
var bone = bones[_i2];
if (!bone._qY1) bone._JY1();
var rotation = bone._Yb;
if (rotateMix != 0) rotation += (target._Yb + this.data._OZ1) * rotateMix;
var x = bone._5M,
y = bone._6M;
if (_OV1 != 0) {
x += (target._5M + this.data._R9) * _OV1;
y += (target._6M + this.data._S9) * _OV1
}
var scaleX = bone._mY1,
scaleY = bone._nY1;
if (scaleMix > 0) {
if (scaleX > 0.00001) scaleX *= ((target._mY1 - 1 + this.data._I12) * scaleMix) + 1;
if (scaleY > 0.00001) scaleY *= ((target._nY1 - 1 + this.data._J12) * scaleMix) + 1;
}
var shearY = bone._pY1;
if (_PV1 > 0) shearY += (target._pY1 + this.data._K12) * _PV1;
bone._tY1(x, y, rotation, scaleX, scaleY, bone._oY1, shearY)
}
};
_F_1.prototype._3Z1 = function () {
return this.data._4Z1
};
return _F_1
}());
spine._F_1 = _F_1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _G12 = (function () {
function _G12(name) {
this._4Z1 = 0;
this.bones = new Array();
this.rotateMix = 0;
this._OV1 = 0;
this.scaleMix = 0;
this._PV1 = 0;
this._OZ1 = 0;
this._R9 = 0;
this._S9 = 0;
this._I12 = 0;
this._J12 = 0;
this._K12 = 0;
this._H12 = !1;
this._VY1 = !1;
if (name == null) throw new Error("name cannot be null.");
this.name = name
}
return _G12
}());
spine._G12 = _G12
})(spine || (spine = {}));
var spine;
(function (spine) {
var _B02 = (function () {
function _B02() {
this._032 = new Array();
this._132 = new Array();
this._232 = new Array();
this._332 = new Array();
this.triangles = new Array();
this._b02 = new spine._cW1(function () {
return new Array()
});
this._432 = new spine._cW1(function () {
return new Array()
})
}
_B02.prototype._J02 = function (__U1) {
var vertices = __U1;
var vertexCount = __U1.length >> 1;
var _Gd = this._232;
_Gd.length = 0;
for (var _i2 = 0; _i2 < vertexCount; _i2++) _Gd[_i2] = _i2;
var _532 = this._332;
_532.length = 0;
for (var _i2 = 0,
_3b = vertexCount; _i2 < _3b; ++_i2) _532[_i2] = _B02._532(_i2, vertexCount, vertices, _Gd);
var triangles = this.triangles;
triangles.length = 0;
while (vertexCount > 3) {
var _632 = vertexCount - 1,
_i2 = 0,
_3m = 1;
while (!0) {
_nX1: if (!_532[_i2]) {
var __n = _Gd[_632] << 1,
_y61 = _Gd[_i2] << 1,
_x81 = _Gd[_3m] << 1;
var _h12 = vertices[__n],
_i12 = vertices[__n + 1];
var _j12 = vertices[_y61],
_k12 = vertices[_y61 + 1];
var _732 = vertices[_x81],
_832 = vertices[_x81 + 1];
for (var _Gz = (_3m + 1) % vertexCount; _Gz != _632; _Gz = (_Gz + 1) % vertexCount) {
if (!_532[_Gz]) continue;
var _O9 = _Gd[_Gz] << 1;
var _a81 = vertices[_O9],
_b81 = vertices[_O9 + 1];
if (_B02._932(_732, _832, _h12, _i12, _a81, _b81)) {
if (_B02._932(_h12, _i12, _j12, _k12, _a81, _b81)) {
if (_B02._932(_j12, _k12, _732, _832, _a81, _b81)) break _nX1
}
}
}
break
}if (_3m == 0) {
do {
if (!_532[_i2]) break;
_i2--
} while (_i2 > 0);
break
}
_632 = _i2;_i2 = _3m;_3m = (_3m + 1) % vertexCount
}
triangles.push(_Gd[(vertexCount + _i2 - 1) % vertexCount]);
triangles.push(_Gd[_i2]);
triangles.push(_Gd[(_i2 + 1) % vertexCount]);
_Gd.splice(_i2, 1);
_532.splice(_i2, 1);
vertexCount--;
var _a32 = (vertexCount + _i2 - 1) % vertexCount;
var _b32 = _i2 == vertexCount ? 0 : _i2;
_532[_a32] = _B02._532(_a32, vertexCount, vertices, _Gd);
_532[_b32] = _B02._532(_b32, vertexCount, vertices, _Gd)
}
if (vertexCount == 3) {
triangles.push(_Gd[2]);
triangles.push(_Gd[0]);
triangles.push(_Gd[1])
}
return triangles
};
_B02.prototype._I02 = function (__U1, triangles) {
var vertices = __U1;
var _032 = this._032;
this._b02._e02(_032);
_032.length = 0;
var _132 = this._132;
this._432._e02(_132);
_132.length = 0;
var _c32 = this._432._hX1();
_c32.length = 0;
var _Sa = this._b02._hX1();
_Sa.length = 0;
var _d32 = -1,
_e32 = 0;
for (var _i2 = 0, _3b = triangles.length; _i2 < _3b; _i2 += 3) {
var _Jb1 = triangles[_i2] << 1,
_Kb1 = triangles[_i2 + 1] << 1,
_f32 = triangles[_i2 + 2] << 1;
var _6b = vertices[_Jb1],
_7b = vertices[_Jb1 + 1];
var _8b = vertices[_Kb1],
_9b = vertices[_Kb1 + 1];
var _qf = vertices[_f32],
_rf = vertices[_f32 + 1];
var _g32 = !1;
if (_d32 == _Jb1) {
var _cz = _Sa.length - 4;
var _h32 = _B02._i32(_Sa[_cz], _Sa[_cz + 1], _Sa[_cz + 2], _Sa[_cz + 3], _qf, _rf);
var _j32 = _B02._i32(_qf, _rf, _Sa[0], _Sa[1], _Sa[2], _Sa[3]);
if (_h32 == _e32 && _j32 == _e32) {
_Sa.push(_qf);
_Sa.push(_rf);
_c32.push(_f32);
_g32 = !0
}
}
if (!_g32) {
if (_Sa.length > 0) {
_032.push(_Sa);
_132.push(_c32)
} else {
this._b02._AX1(_Sa);
this._432._AX1(_c32)
}
_Sa = this._b02._hX1();
_Sa.length = 0;
_Sa.push(_6b);
_Sa.push(_7b);
_Sa.push(_8b);
_Sa.push(_9b);
_Sa.push(_qf);
_Sa.push(_rf);
_c32 = this._432._hX1();
_c32.length = 0;
_c32.push(_Jb1);
_c32.push(_Kb1);
_c32.push(_f32);
_e32 = _B02._i32(_6b, _7b, _8b, _9b, _qf, _rf);
_d32 = _Jb1
}
}
if (_Sa.length > 0) {
_032.push(_Sa);
_132.push(_c32)
}
for (var _i2 = 0, _3b = _032.length; _i2 < _3b; _i2++) {
_c32 = _132[_i2];
if (_c32.length == 0) continue;
var _to1 = _c32[0];
var lastIndex = _c32[_c32.length - 1];
_Sa = _032[_i2];
var _cz = _Sa.length - 4;
var _k32 = _Sa[_cz],
_l32 = _Sa[_cz + 1];
var _dU1 = _Sa[_cz + 2],
_eU1 = _Sa[_cz + 3];
var _m32 = _Sa[0],
_n32 = _Sa[1];
var _o32 = _Sa[2],
_p32 = _Sa[3];
var _i32 = _B02._i32(_k32, _l32, _dU1, _eU1, _m32, _n32);
for (var _Gz = 0; _Gz < _3b; _Gz++) {
if (_Gz == _i2) continue;
var _q32 = _132[_Gz];
if (_q32.length != 3) continue;
var _r32 = _q32[0];
var _s32 = _q32[1];
var _t32 = _q32[2];
var _u32 = _032[_Gz];
var _qf = _u32[_u32.length - 2],
_rf = _u32[_u32.length - 1];
if (_r32 != _to1 || _s32 != lastIndex) continue;
var _h32 = _B02._i32(_k32,
_l32, _dU1, _eU1, _qf, _rf);
var _j32 = _B02._i32(_qf, _rf, _m32, _n32, _o32, _p32);
if (_h32 == _i32 && _j32 == _i32) {
_u32.length = 0;
_q32.length = 0;
_Sa.push(_qf);
_Sa.push(_rf);
_c32.push(_t32);
_k32 = _dU1;
_l32 = _eU1;
_dU1 = _qf;
_eU1 = _rf;
_Gz = 0
}
}
}
for (var _i2 = _032.length - 1; _i2 >= 0; _i2--) {
_Sa = _032[_i2];
if (_Sa.length == 0) {
_032.splice(_i2, 1);
this._b02._AX1(_Sa);
_c32 = _132[_i2];
_132.splice(_i2, 1);
this._432._AX1(_c32)
}
}
return _032
};
_B02._532 = function (index, vertexCount, vertices, _Gd) {
var _632 = _Gd[(vertexCount + index - 1) % vertexCount] << 1;
var current = _Gd[index] << 1;
var _3m = _Gd[(index + 1) % vertexCount] << 1;
return !this._932(vertices[_632], vertices[_632 + 1], vertices[current], vertices[current + 1], vertices[_3m], vertices[_3m + 1])
};
_B02._932 = function (_h12, _i12, _j12, _k12, _732, _832) {
return _h12 * (_832 - _k12) + _j12 * (_i12 - _832) + _732 * (_k12 - _i12) >= 0
};
_B02._i32 = function (_h12, _i12, _j12, _k12, _732, _832) {
var _Ln = _j12 - _h12,
_Mn = _k12 - _i12;
return _732 * _Mn - _832 * _Ln + _Ln * _i12 - _h12 * _Mn >= 0 ? 1 : -1
};
return _B02
}());
spine._B02 = _B02
})(spine || (spine = {}));
var spine;
(function (spine) {
var _8W1 = (function () {
function _8W1() {
this._lz1 = new Array();
}
_8W1.prototype.add = function (value) {
var _v32 = this._v32(value);
this._lz1[value | 0] = value | 0;
return !_v32
};
_8W1.prototype._v32 = function (value) {
return this._lz1[value | 0] != undefined
};
_8W1.prototype.remove = function (value) {
this._lz1[value | 0] = undefined
};
_8W1.prototype.clear = function () {
this._lz1.length = 0
};
return _8W1
}());
spine._8W1 = _8W1;
var _b9 = (function () {
function _b9(_79, _89, _99, _a9) {
if (_79 === void 0) {
_79 = 0
}
if (_89 === void 0) {
_89 = 0
}
if (_99 === void 0) {
_99 = 0
}
if (_a9 === void 0) {
_a9 = 0
}
this._79 = _79;
this._89 = _89;
this._99 = _99;
this._a9 = _a9
}
_b9.prototype.set = function (_79, _89, _99, _a9) {
this._79 = _79;
this._89 = _89;
this._99 = _99;
this._a9 = _a9;
this._oN();
return this
};
_b9.prototype._7a = function (_j2) {
this._79 = _j2._79;
this._89 = _j2._89;
this._99 = _j2._99;
this._a9 = _j2._a9;
return this
};
_b9.prototype._C12 = function (_w32) {
_w32 = _w32.charAt(0) == '#' ? _w32.substr(1) : _w32;
this._79 = parseInt(_w32.substr(0, 2), 16) / 255.0;
this._89 = parseInt(_w32.substr(2, 2), 16) / 255.0;
this._99 = parseInt(_w32.substr(4, 2), 16) / 255.0;
this._a9 = (_w32.length != 8 ? 255 : parseInt(_w32.substr(6,
2), 16)) / 255.0;
return this
};
_b9.prototype.add = function (_79, _89, _99, _a9) {
this._79 += _79;
this._89 += _89;
this._99 += _99;
this._a9 += _a9;
this._oN();
return this
};
_b9.prototype._oN = function () {
if (this._79 < 0) this._79 = 0;
else if (this._79 > 1) this._79 = 1;
if (this._89 < 0) this._89 = 0;
else if (this._89 > 1) this._89 = 1;
if (this._99 < 0) this._99 = 0;
else if (this._99 > 1) this._99 = 1;
if (this._a9 < 0) this._a9 = 0;
else if (this._a9 > 1) this._a9 = 1;
return this
};
_b9._x32 = new _b9(1, 1, 1, 1);
_b9._y32 = new _b9(1, 0, 0, 1);
_b9._z32 = new _b9(0, 1, 0, 1);
_b9._A32 = new _b9(0, 0,
1, 1);
_b9._B32 = new _b9(1, 0, 1, 1);
return _b9
}());
spine._b9 = _b9;
var _cU1 = (function () {
function _cU1() {}
_cU1._oN = function (value, min, max) {
if (value < min) return min;
if (value > max) return max;
return value
};
_cU1._vY1 = function (_lU1) {
return Math.cos(_lU1 * _cU1._QZ1)
};
_cU1._wY1 = function (_lU1) {
return Math.sin(_lU1 * _cU1._QZ1)
};
_cU1._xU1 = function (value) {
return value > 0 ? 1 : value < 0 ? -1 : 0
};
_cU1._yL1 = function (x) {
return x > 0 ? Math.floor(x) : Math.ceil(x)
};
_cU1._C32 = function (x) {
var y = Math.pow(Math.abs(x), 1 / 3);
return x < 0 ? -y : y
};
_cU1._D32 = function (min,
max) {
return _cU1._E32(min, max, (min + max) * 0.5)
};
_cU1._E32 = function (min, max, _rq) {
var _N9 = Math.random();
var _Xn = max - min;
if (_N9 <= (_rq - min) / _Xn) return min + Math.sqrt(_N9 * _Xn * (_rq - min));
return max - Math.sqrt((1 - _N9) * _Xn * (max - _rq))
};
_cU1.PI = 3.1415927;
_cU1._VZ1 = _cU1.PI * 2;
_cU1._F32 = 180 / _cU1.PI;
_cU1._FY1 = _cU1._F32;
_cU1._G32 = _cU1.PI / 180;
_cU1._QZ1 = _cU1._G32;
return _cU1
}());
spine._cU1 = _cU1;
var _H32 = (function () {
function _H32() {}
_H32.prototype.apply = function (start, end, _a9) {
return start + (end - start) * this._I32(_a9)
};
return _H32
}
());
spine._H32 = _H32;
var _J32 = (function (_gU1) {
_BT1(_J32, _gU1);
function _J32(_7N) {
var _hU1 = _gU1.call(this) || this;
_hU1._7N = 2;
_hU1._7N = _7N;
return _hU1
}
_J32.prototype._I32 = function (_a9) {
if (_a9 <= 0.5) return Math.pow(_a9 * 2, this._7N) / 2;
return Math.pow((_a9 - 1) * 2, this._7N) / (this._7N % 2 == 0 ? -2 : 2) + 1
};
return _J32
}(_H32));
spine._J32 = _J32;
var _K32 = (function (_gU1) {
_BT1(_K32, _gU1);
function _K32(_7N) {
return _gU1.call(this, _7N) || this
}
_K32.prototype._I32 = function (_a9) {
return Math.pow(_a9 - 1, this._7N) * (this._7N % 2 == 0 ? -1 : 1) + 1;
};
return _K32
}
(_J32));
spine._K32 = _K32;
var _PT1 = (function () {
function _PT1() {}
_PT1._9V1 = function (source, _L32, _fe, _M32, _N32) {
for (var _i2 = _L32, _nb = _M32; _i2 < _L32 + _N32; _i2++, _nb++) {
_fe[_nb] = source[_i2]
}
};
_PT1._3V1 = function (_lz1, size, value) {
if (value === void 0) {
value = 0
}
var _O32 = _lz1.length;
if (_O32 == size) return _lz1;
_lz1.length = size;
if (_O32 < size) {
for (var _i2 = _O32; _i2 < size; _i2++) _lz1[_i2] = value
}
return _lz1
};
_PT1._gX1 = function (_lz1, size, value) {
if (value === void 0) {
value = 0
}
if (_lz1.length >= size) return _lz1;
return _PT1._3V1(_lz1, size, value)
};
_PT1._722 = function (size, _v22) {
var _lz1 = new Array(size);
for (var _i2 = 0; _i2 < size; _i2++) _lz1[_i2] = _v22;
return _lz1
};
_PT1._QT1 = function (size) {
if (_PT1._P32) {
return new Float32Array(size)
} else {
var _lz1 = new Array(size);
for (var _i2 = 0; _i2 < _lz1.length; _i2++) _lz1[_i2] = 0;
return _lz1
}
};
_PT1._Q32 = function (size) {
if (_PT1._P32) {
return new Int16Array(size)
} else {
var _lz1 = new Array(size);
for (var _i2 = 0; _i2 < _lz1.length; _i2++) _lz1[_i2] = 0;
return _lz1
}
};
_PT1._922 = function (_lz1) {
return _PT1._P32 ? new Float32Array(_lz1) : _lz1
};
_PT1._u22 = function (value) {
return _PT1._P32 ? Math._R32(value) : value
};
_PT1._HW1 = function (alpha, _DI) {};
_PT1._P32 = typeof (Float32Array) !== "undefined";
return _PT1
}());
spine._PT1 = _PT1;
var _S32 = (function () {
function _S32() {}
_S32._T32 = function (skeleton) {
for (var _i2 = 0; _i2 < skeleton.bones.length; _i2++) {
var bone = skeleton.bones[_i2];
console.log(bone.data.name + ", " + bone._a9 + ", " + bone._99 + ", " + bone._j2 + ", " + bone._Xn + ", " + bone._Sb + ", " + bone._Tb)
}
};
return _S32
}());
spine._S32 = _S32;
var _cW1 = (function () {
function _cW1(_U32) {
this._V32 = new Array();
this._U32 = _U32;
}
_cW1.prototype._hX1 = function () {
return this._V32.length > 0 ? this._V32.pop() : this._U32()
};
_cW1.prototype._AX1 = function (_4m) {
if (_4m._M31) _4m._M31();
this._V32.push(_4m)
};
_cW1.prototype._e02 = function (_V32) {
for (var _i2 = 0; _i2 < _V32.length; _i2++) {
if (_V32[_i2]._M31) _V32[_i2]._M31();
this._V32[_i2] = _V32[_i2]
}
};
_cW1.prototype.clear = function () {
this._V32.length = 0
};
return _cW1
}());
spine._cW1 = _cW1;
var _R22 = (function () {
function _R22(x, y) {
if (x === void 0) {
x = 0
}
if (y === void 0) {
y = 0
}
this.x = x;
this.y = y
}
_R22.prototype.set = function (x,
y) {
this.x = x;
this.y = y;
return this
};
_R22.prototype.length = function () {
var x = this.x;
var y = this.y;
return Math.sqrt(x * x + y * y)
};
_R22.prototype._W32 = function () {
var _0y = this.length();
if (_0y != 0) {
this.x /= _0y;
this.y /= _0y
}
return this
};
return _R22
}());
spine._R22 = _R22;
var _X32 = (function () {
function _X32() {
this._Y32 = 0.064;
this._Z32 = 0;
this._CB1 = 0;
this._J31 = 0;
this._GT1 = Date.now() / 1000;
this._ua = 0;
this._rU1 = 0
}
_X32.prototype._Ba = function () {
var now = Date.now() / 1000;
this._CB1 = now - this._GT1;
this._rU1 += this._CB1;
this._J31 += this._CB1;
if (this._CB1 > this._Y32) this._CB1 = this._Y32;
this._GT1 = now;
this._ua++;
if (this._rU1 > 1) {
this._Z32 = this._ua / this._rU1;
this._rU1 = 0;
this._ua = 0
}
};
return _X32
}());
spine._X32 = _X32;
var __32 = (function () {
function __32(_042) {
if (_042 === void 0) {
_042 = 32
}
this._142 = 0;
this._Ti = 0;
this._bN = 0;
this._242 = !0;
this._IT1 = new Array(_042)
}
__32.prototype._342 = function () {
return this._142 >= this._IT1.length
};
__32.prototype._442 = function (value) {
if (this._142 < this._IT1.length) this._142++;
this._IT1[this._Ti++] = value;
if (this._Ti > this._IT1.length - 1) this._Ti = 0;
this._242 = !0
};
__32.prototype._542 = function () {
if (this._342()) {
if (this._242) {
var _bN = 0;
for (var _i2 = 0; _i2 < this._IT1.length; _i2++) {
_bN += this._IT1[_i2]
}
this._bN = _bN / this._IT1.length;
this._242 = !1
}
return this._bN
} else {
return 0
}
};
return __32
}());
spine.__32 = __32
})(spine || (spine = {}));
(function () {
if (!Math._R32) {
Math._R32 = (function (_lz1) {
return function (x) {
return _lz1[0] = x, _lz1[0]
}
})(new Float32Array(1))
}
})();
var spine;
(function (spine) {
var _642 = (function () {
function _642(name) {
if (name == null) throw new Error("name cannot be null.");
this.name = name
}
return _642
}());
spine._642 = _642;
var _YU1 = (function (_gU1) {
_BT1(_YU1, _gU1);
function _YU1(name) {
var _hU1 = _gU1.call(this, name) || this;
_hU1.id = (_YU1._742++ & 65535) << 11;
_hU1._Td = 0;
return _hU1
}
_YU1.prototype._Nd = function (slot, start, _Jc, _842, offset, _Oe) {
_Jc = offset + (_Jc >> 1) * _Oe;
var skeleton = slot.bone.skeleton;
var _942 = slot._0V1;
var vertices = this.vertices;
var bones = this.bones;
if (bones == null) {
if (_942.length > 0) vertices = _942;
var bone = slot.bone;
var x = bone._Sb;
var y = bone._Tb;
var _a9 = bone._a9,
_99 = bone._99,
_j2 = bone._j2,
_Xn = bone._Xn;
for (var _a42 = start, _k2 = offset; _k2 < _Jc; _a42 += 2, _k2 += _Oe) {
var _a81 = vertices[_a42],
_b81 = vertices[_a42 + 1];
_842[_k2] = _a81 * _a9 + _b81 * _99 + x;
_842[_k2 + 1] = _a81 * _j2 + _b81 * _Xn + y
}
return
}
var _O9 = 0,
_b42 = 0;
for (var _i2 = 0; _i2 < start; _i2 += 2) {
var _3b = bones[_O9];
_O9 += _3b + 1;
_b42 += _3b
}
var _c42 = skeleton.bones;
if (_942.length == 0) {
for (var _k2 = offset, _99 = _b42 * 3; _k2 < _Jc; _k2 += _Oe) {
var _d42 = 0,
_e42 = 0;
var _3b = bones[_O9++];
_3b += _O9;
for (; _O9 < _3b; _O9++, _99 += 3) {
var bone = _c42[bones[_O9]];
var _a81 = vertices[_99],
_b81 = vertices[_99 + 1],
_bn1 = vertices[_99 + 2];
_d42 += (_a81 * bone._a9 + _b81 * bone._99 + bone._Sb) * _bn1;
_e42 += (_a81 * bone._j2 + _b81 * bone._Xn + bone._Tb) * _bn1
}
_842[_k2] = _d42;
_842[_k2 + 1] = _e42
}
} else {
var deform = _942;
for (var _k2 = offset, _99 = _b42 * 3, _7z = _b42 << 1; _k2 < _Jc; _k2 += _Oe) {
var _d42 = 0,
_e42 = 0;
var _3b = bones[_O9++];
_3b += _O9;
for (; _O9 < _3b; _O9++, _99 += 3, _7z += 2) {
var bone = _c42[bones[_O9]];
var _a81 = vertices[_99] + deform[_7z],
_b81 = vertices[_99 + 1] + deform[_7z + 1],
_bn1 = vertices[_99 + 2];
_d42 += (_a81 * bone._a9 + _b81 * bone._99 + bone._Sb) * _bn1;
_e42 += (_a81 * bone._j2 + _b81 * bone._Xn + bone._Tb) * _bn1
}
_842[_k2] = _d42;
_842[_k2 + 1] = _e42
}
}
};
_YU1.prototype._ZU1 = function (_f42) {
return this == _f42
};
_YU1._742 = 0;
return _YU1
}(_642));
spine._YU1 = _YU1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _g42;
(function (_g42) {
_g42[_g42["Region"] = 0] = "Region";
_g42[_g42["BoundingBox"] = 1] = "BoundingBox";
_g42[_g42["Mesh"] = 2] = "Mesh";
_g42[_g42["LinkedMesh"] = 3] = "LinkedMesh";
_g42[_g42["Path"] = 4] = "Path";
_g42[_g42["Point"] = 5] = "Point"
})(_g42 = spine._g42 || (spine._g42 = {}))
})(spine || (spine = {}));
var spine;
(function (spine) {
var _td = (function (_gU1) {
_BT1(_td, _gU1);
function _td(name) {
var _hU1 = _gU1.call(this, name) || this;
_hU1.color = new spine._b9(1, 1, 1, 1);
return _hU1
}
return _td
}(spine._YU1));
spine._td = _td
})(spine || (spine = {}));
var spine;
(function (spine) {
var _Ud = (function (_gU1) {
_BT1(_Ud, _gU1);
function _Ud(name) {
var _hU1 = _gU1.call(this, name) || this;
_hU1.color = new spine._b9(0.2275, 0.2275, 0.8078, 1);
return _hU1
}
return _Ud
}(spine._YU1));
spine._Ud = _Ud
})(spine || (spine = {}));
var spine;
(function (spine) {
var _rd = (function (_gU1) {
_BT1(_rd, _gU1);
function _rd(name) {
var _hU1 = _gU1.call(this,
name) || this;
_hU1.color = new spine._b9(1, 1, 1, 1);
_hU1._422 = !1;
_hU1._h42 = new spine._b9(0, 0, 0, 0);
return _hU1
}
_rd.prototype._W12 = function () {
var _N9 = 0,
_O9 = 0,
width = 0,
height = 0;
if (this._L9 == null) {
_N9 = _O9 = 0;
width = height = 1
} else {
_N9 = this._L9._N9;
_O9 = this._L9._O9;
width = this._L9._P9 - _N9;
height = this._L9._Q9 - _O9
}
var _522 = this._522;
if (this.uvs == null || this.uvs.length != _522.length) this.uvs = spine._PT1._QT1(_522.length);
var uvs = this.uvs;
if (this._L9.rotate) {
for (var _i2 = 0, _3b = uvs.length; _i2 < _3b; _i2 += 2) {
uvs[_i2] = _N9 + _522[_i2 + 1] * width;
uvs[_i2 + 1] = _O9 + height - _522[_i2] * height
}
} else {
for (var _i2 = 0, _3b = uvs.length; _i2 < _3b; _i2 += 2) {
uvs[_i2] = _N9 + _522[_i2] * width;
uvs[_i2 + 1] = _O9 + _522[_i2 + 1] * height
}
}
};
_rd.prototype._ZU1 = function (_f42) {
return this == _f42 || (this._422 && this._i42 == _f42)
};
_rd.prototype._j42 = function () {
return this._i42
};
_rd.prototype._V12 = function (_i42) {
this._i42 = _i42;
if (_i42 != null) {
this.bones = _i42.bones;
this.vertices = _i42.vertices;
this._Td = _i42._Td;
this._522 = _i42._522;
this.triangles = _i42.triangles;
this._622 = _i42._622;
this._Td = _i42._Td
}
};
return _rd
}(spine._YU1));
spine._rd = _rd
})(spine || (spine = {}));
var spine;
(function (spine) {
var _hY1 = (function (_gU1) {
_BT1(_hY1, _gU1);
function _hY1(name) {
var _hU1 = _gU1.call(this, name) || this;
_hU1._Do = !1;
_hU1._0_1 = !1;
_hU1.color = new spine._b9(1, 1, 1, 1);
return _hU1
}
return _hY1
}(spine._YU1));
spine._hY1 = _hY1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _jY1 = (function (_gU1) {
_BT1(_jY1, _gU1);
function _jY1(name) {
var _hU1 = _gU1.call(this, name) || this;
_hU1.color = new spine._b9(0.38, 0.94, 0, 1);
return _hU1
}
_jY1.prototype._k42 = function (bone,
_Sa1) {
_Sa1.x = this.x * bone._a9 + this.y * bone._99 + bone._Sb;
_Sa1.y = this.x * bone._j2 + this.y * bone._Xn + bone._Tb;
return _Sa1
};
_jY1.prototype._l42 = function (bone) {
var cos = spine._cU1._vY1(this.rotation),
sin = spine._cU1._wY1(this.rotation);
var x = cos * bone._a9 + sin * bone._99;
var y = cos * bone._j2 + sin * bone._Xn;
return Math.atan2(y, x) * spine._cU1._FY1
};
return _jY1
}(spine._YU1));
spine._jY1 = _jY1
})(spine || (spine = {}));
var spine;
(function (spine) {
var _pd = (function (_gU1) {
_BT1(_pd, _gU1);
function _pd(name) {
var _hU1 = _gU1.call(this, name) || this;
_hU1.x = 0;
_hU1.y = 0;
_hU1.scaleX = 1;
_hU1.scaleY = 1;
_hU1.rotation = 0;
_hU1.width = 0;
_hU1.height = 0;
_hU1.color = new spine._b9(1, 1, 1, 1);
_hU1.offset = spine._PT1._QT1(8);
_hU1.uvs = spine._PT1._QT1(8);
_hU1._h42 = new spine._b9(1, 1, 1, 1);
return _hU1
}
_pd.prototype._8a = function () {
var _m42 = this.width / this._L9._T9 * this.scaleX;
var _n42 = this.height / this._L9._U9 * this.scaleY;
var _o42 = -this.width / 2 * this.scaleX + this._L9._R9 * _m42;
var _p42 = -this.height / 2 * this.scaleY + this._L9._S9 * _n42;
var _q42 = _o42 + this._L9.width * _m42;
var _r42 = _p42 + this._L9.height * _n42;
var _s42 = this.rotation * Math.PI / 180;
var cos = Math.cos(_s42);
var sin = Math.sin(_s42);
var _t42 = _o42 * cos + this.x;
var _u42 = _o42 * sin;
var _v42 = _p42 * cos + this.y;
var _w42 = _p42 * sin;
var _x42 = _q42 * cos + this.x;
var _y42 = _q42 * sin;
var _z42 = _r42 * cos + this.y;
var _A42 = _r42 * sin;
var offset = this.offset;
offset[_pd._wf] = _t42 - _w42;
offset[_pd._xf] = _v42 + _u42;
offset[_pd._2f] = _t42 - _A42;
offset[_pd._3f] = _z42 + _u42;
offset[_pd._4f] = _x42 - _A42;
offset[_pd._5f] = _z42 + _y42;
offset[_pd._6f] = _x42 - _w42;
offset[_pd._7f] = _v42 + _y42
};
_pd.prototype._dY1 = function (_L9) {
this._L9 = _L9;
var uvs = this.uvs;
if (_L9.rotate) {
uvs[2] = _L9._N9;
uvs[3] = _L9._Q9;
uvs[4] = _L9._N9;
uvs[5] = _L9._O9;
uvs[6] = _L9._P9;
uvs[7] = _L9._O9;
uvs[0] = _L9._P9;
uvs[1] = _L9._Q9
} else {
uvs[0] = _L9._N9;
uvs[1] = _L9._Q9;
uvs[2] = _L9._N9;
uvs[3] = _L9._O9;
uvs[4] = _L9._P9;
uvs[5] = _L9._O9;
uvs[6] = _L9._P9;
uvs[7] = _L9._Q9
}
};
_pd.prototype._Nd = function (bone, _842, offset, _Oe) {
var _O02 = this.offset;
var x = bone._Sb,
y = bone._Tb;
var _a9 = bone._a9,
_99 = bone._99,
_j2 = bone._j2,
_Xn = bone._Xn;
var _R9 = 0,
_S9 = 0;
_R9 = _O02[_pd._wf];
_S9 = _O02[_pd._xf];
_842[offset] = _R9 * _a9 + _S9 * _99 + x;
_842[offset + 1] = _R9 * _j2 + _S9 * _Xn + y;
offset += _Oe;
_R9 = _O02[_pd._2f];
_S9 = _O02[_pd._3f];
_842[offset] = _R9 * _a9 + _S9 * _99 + x;
_842[offset + 1] = _R9 * _j2 + _S9 * _Xn + y;
offset += _Oe;
_R9 = _O02[_pd._4f];
_S9 = _O02[_pd._5f];
_842[offset] = _R9 * _a9 + _S9 * _99 + x;
_842[offset + 1] = _R9 * _j2 + _S9 * _Xn + y;
offset += _Oe;
_R9 = _O02[_pd._6f];
_S9 = _O02[_pd._7f];
_842[offset] = _R9 * _a9 + _S9 * _99 + x;
_842[offset + 1] = _R9 * _j2 + _S9 * _Xn + y
};
_pd._wf = 0;
_pd._xf = 1;
_pd._2f = 2;
_pd._3f = 3;
_pd._4f = 4;
_pd._5f = 5;
_pd._6f = 6;
_pd._7f = 7;
_pd._B42 = 0;
_pd._C42 = 1;
_pd._D42 = 2;
_pd._E42 = 3;
_pd._F42 = 4;
_pd._G42 = 5;
_pd._H42 = 6;
_pd._I42 = 7;
_pd._J42 = 8;
_pd._K42 = 9;
_pd._L42 = 10;
_pd._M42 = 11;
_pd._N42 = 12;
_pd._O42 = 13;
_pd._P42 = 14;
_pd._Q42 = 15;
_pd._R42 = 16;
_pd._S42 = 17;
_pd._T42 = 18;
_pd._U42 = 19;
_pd._V42 = 20;
_pd._W42 = 21;
_pd._X42 = 22;
_pd._Y42 = 23;
_pd._Z42 = 24;
_pd.__42 = 25;
_pd._052 = 26;
_pd._152 = 27;
_pd._252 = 28;
_pd._352 = 29;
_pd._452 = 30;
_pd._552 = 31;
return _pd
}(spine._642));
spine._pd = _pd
})(spine || (spine = {}));
var spine;
(function (spine) {
var _652 = (function () {
function _652(_752, _852) {
this._752 = 0;
this._852 = 0;
this._752 = _752;
this._852 = _852
}
_652.prototype._952 = function (skeleton) {};
_652.prototype.transform = function (position, _7h, _IU1, _JU1) {
position.x += spine._cU1._D32(-this._752, this._852);
position.y += spine._cU1._D32(-this._752, this._852)
};
_652.prototype.end = function () {};
return _652
}());
spine._652 = _652
})(spine || (spine = {}));
var spine;
(function (spine) {
var _a52 = (function () {
function _a52(_v61) {
this._b52 = 0;
this._c52 = 0;
this._v61 = 0;
this.angle = 0;
this._Sb = 0;
this._Tb = 0;
this._v61 = _v61
}
_a52.prototype._952 = function (skeleton) {
this._Sb = skeleton.x + this._b52;
this._Tb = skeleton.y + this._c52
};
_a52.prototype.transform = function (position, _7h, _IU1, _JU1) {
var _d52 = this.angle * spine._cU1._G32;
var x = position.x - this._Sb;
var y = position.y - this._Tb;
var _zn = Math.sqrt(x * x + y * y);
if (_zn < this._v61) {
var _e52 = _a52._f52.apply(0, _d52, (this._v61 - _zn) / this._v61);
var cos = Math.cos(_e52);
var sin = Math.sin(_e52);
position.x = cos * x - sin * y + this._Sb;
position.y = sin * x + cos * y + this._Tb
}
};
_a52.prototype.end = function () {};
_a52._f52 = new spine._K32(2);
return _a52
}());
spine._a52 = _a52
})(spine || (spine = {}));
var _g52 = 0,
_h52 = 1,
_i52 = 2,
_j52 = 3,
_k52 = 4,
_l52 = 5,
_m52 = 6,
_n52 = 7,
_o52 = 8,
_p52 = 9;
var _q52 = 0,
_r52 = 1,
_s52 = 2,
_t52 = 3; /*@constructor */
function _u52(_Dh, _el) {
this.type = _Dh;
this.id = _el;
this._v9 = null;
this._v52 = -1
};
_u52.prototype._w52 = function (_BK1, _x52, _y52, _z52, _A52) {
var _B52 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var width = _x52.getInt32(_y52, _z52);
_y52 += 4;
var height = _x52.getInt32(_y52, _z52);
_y52 += 4;
this._v52 = _x52.getInt32(_y52, _z52);
_y52 += 4;
return _y52
};;
_u52.prototype._C52 = function (_TM, _OD) {
var _99 = new ArrayBuffer(4);
var _a9 = new Uint32Array(_99);
var _j2 = new Uint8Array(_99);
_a9[0] = 0xdeadbeef;
if (_j2[0] == 0xef) {
return (((_TM & 0xff) << 8) | (_OD & 0xff))
}
if (_j2[0] == 0xde) {
return (((_OD & 0xff) << 8) | (_TM & 0xff))
}
};;
_u52.prototype._D52 = function (_E52) {
try {
do {
if (_E52[1] == 0xd9) {
_E52 = _E52.subarray(2)
} else if (_E52[1] == 0xd8) {
if ((_E52[6] === 0x4a) && (_E52[7] === 0x46) && (_E52[8] === 0x49) && (_E52[9] === 0x46)) {
var _k2 = this._C52(_E52[14], _E52[15]);
var _l2 = this._C52(_E52[16], _E52[17]);
var _F52 = {
width: _k2,
height: _l2,
body: _E52
};
return _F52
}
_E52 = _E52.subarray(4 + this._C52(_E52[4], _E52[5]))
} else {
_E52 = _E52.subarray(2 + this._C52(_E52[2], _E52[3]))
}
} while ((_E52.byteLength >= 0) && (_E52[0] == 0xff));
} catch (e) {
debug(e.message)
}
var _F52 = {
width: _k2,
height: _l2,
body: _E52
};
return _F52
};;;
_u52.prototype._G52 = function (_Fc, _Gc, _E52, _H52, _pG, _I52) {
var _J52 = new Uint16Array(_E52);
var _K52 = "";
for (var _i2 = 0, _gb = _J52.length; _i2 < _gb; _i2++) {
_K52 += String.fromCharCode(_J52[_i2]);
}
var _L52 = window.btoa(_K52);
var _M52 = "data:image/" + _H52 + ";base64," + _L52;
var img = new Image();
img.onload = function () {
var _s9 = {
_A9: img
};
_Fe(_s9);
if (_pG) {
_pG(_s9)
}
};
img.onerror = function (e) {
debug(e);
if (_I52) {
_I52(e)
}
};
img.src = _jW(null, null, _M52);
return img
};;
function _oF1(_SY, _Bd) {
var _ch = _xc._oF1(_SY._A9._Ee, _Bd);
_SY._A9._Ee = _ch;
_SY._A9._eh = _ch._QE1;
_SY._A9._fh = _ch._RE1;
return _SY._A9
}
var _N52 = 0,
_O52 = 1,
_P52 = 2;
var _Q52 = 0,
_R52 = 1,
_S52 = 2,
_T52 = 3;
var _U52 = 0,
_V52 = 1;
var _W52 = {
_w41: 0,
_x41: 0,
version: 1
}; /*@constructor */
function _X52(_Dh, _el) {
this.type = _Dh;
this.id = _el
};
_X52.prototype._Y52 = function (_x52, _y52, _z52, _Z52) {
this._La = _x52.getFloat32(_y52, _z52);
_y52 += 4;
this._Ma = _x52.getFloat32(_y52,
_z52);
_y52 += 4;
this._Na = _x52.getFloat32(_y52, _z52);
_y52 += 4;
this._Oa = _x52.getFloat32(_y52, _z52);
_y52 += 4;
var __52 = _x52.getInt32(_y52, _z52);
_y52 += 4;
this._062 = [];
for (var _i2 = 0; _i2 < __52; _i2++) {
var _162 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var _262 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var _362 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var _462 = {
_162: _162,
_262: _262,
_362: _362
};
_462._562 = (_162 > 0) ? [] : null;
_462._662 = (_262 > 0) ? [] : null;
_462._762 = (_362 > 0) ? [] : null;
_y52 = this._862(_462, _x52, _y52, _z52, _Z52);
_y52 = this._962(_462, _x52, _y52,
_z52);
_y52 = this._a62(_462, _x52, _y52, _z52);
this._062.push(_462)
}
return _y52
};;
_X52.prototype._862 = function (_b62, _x52, _y52, _z52, _Z52) {
_b62._562 = [];
for (var _i2 = 0; _i2 < _b62._162; _i2++) {
var _c62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var _d62 = null;
switch (_c62) {
case _R52: {
_d62 = {
type: _R52
};
var _eo = _x52.getUint8(_y52, _z52);
_y52++;
var _fo = _x52.getUint8(_y52, _z52);
_y52++;
var _go = _x52.getUint8(_y52, _z52);
_y52++;
var alpha = _x52.getUint8(_y52, _z52);
_y52++;
_d62._f9 = (_eo | (_fo << 8) | (_go << 16) | (alpha << 24))
}
break;
case _S52: {
_d62 = {
type: _S52
};
_d62._e62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_d62._v52 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var _f62 = [];
for (var _5b = 0; _5b < 9; _5b++) {
_f62[_5b] = _x52.getFloat32(_y52, _z52);
_y52 += 4
}
_d62._f62 = new _Zt();
_d62._f62._5b[_xv] = _f62[0];
_d62._f62._5b[_yv] = _f62[1];
_d62._f62._5b[_Av] = _f62[2];
_d62._f62._5b[_Bv] = _f62[3];
_d62._f62._5b[_qu] = _f62[4];
_d62._f62._5b[_Dv] = _f62[5];
_d62._g62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_d62._h62 = [];
for (var _5b = 0; _5b < _d62._g62; _5b++) {
var _Ms1 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var _eo = _x52.getUint8(_y52,
_z52);
_y52++;
var _fo = _x52.getUint8(_y52, _z52);
_y52++;
var _go = _x52.getUint8(_y52, _z52);
_y52++;
var alpha = _x52.getUint8(_y52, _z52);
_y52++;
_d62._h62.push({
_Ms1: _Ms1,
_f9: (_eo | (_fo << 8) | (_go << 16) | (alpha << 24))
})
}
_d62._Xg = null
}
break;
case _T52: {
_d62 = {
type: _T52
};
_d62._i62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_d62._j62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_d62._k62 = -1;
for (var index = 0; index < _Z52.length; index++) {
if (_Z52[index].id === _d62._j62) {
_d62._k62 = index;
break
}
}
var _f62 = [];
for (var _5b = 0; _5b < 9; _5b++) {
_f62[_5b] = _x52.getFloat32(_y52,
_z52);
_y52 += 4
}
_d62._f62 = new _Zt();
_d62._f62._5b[_xv] = _f62[0];
_d62._f62._5b[_yv] = _f62[1];
_d62._f62._5b[_Av] = _f62[2];
_d62._f62._5b[_Bv] = _f62[3];
_d62._f62._5b[_qu] = _f62[4];
_d62._f62._5b[_Dv] = _f62[5]
}
break
}
_b62._562.push(_d62)
}
return _y52
};;;
function _l62(_7l, _8l, _lF1) {
var _pY = document.createElement(_Cy);
var _qY = _pY.getContext('2d');
_rY(_qY);
var _ch = _xc._mF1(_pY, _lF1, _7l, _8l);
var _s9 = new _5n();
_s9.x = 0;
_s9.y = 0;
_s9._k2 = _ch._QE1;
_s9._l2 = _ch._RE1;
_s9._H3 = 0;
_s9._I3 = 0;
_s9._J3 = _s9._k2;
_s9._K3 = _s9._l2;
_s9._L3 = _7l;
_s9._M3 = _8l;
_s9._N3 = _uY(_pY);
_s9._A9 = _w9[_s9._N3];
_s9._A9._Ee = _ch;
_s9._A9._eh = _pY.width;
_s9._A9._fh = _pY.height;
return _s9
}
_X52.prototype._m62 = function (_n62, _o62) {
if (_n62._g62 <= 0) {
return 0
}
_o62 = (_o62 < 0) ? 0 : (_o62 > 255) ? 255 : _o62;
if (_o62 < _n62._h62[0]._Ms1) {
return _n62._h62[0]._f9
}
for (var _i2 = 1; _i2 < _n62._g62; _i2++) {
var _p62 = _n62._h62[_i2];
if (_p62._Ms1 >= _o62) {
var _q62 = _n62._h62[_i2 - 1];
var _r62 = 0;
if (_p62._Ms1 != _q62._Ms1) {
_r62 = ((_o62 - _q62._Ms1) << 8) / (_p62._Ms1 - _q62._Ms1)
}
var _s62 = 256 - _r62;
var _f9 = _p62._f9;
var _t62 = _q62._f9;
var _u62 = [];
_u62[0] = ((_f9 & 0xff) * _r62) >> 8;
_u62[1] = (((_f9 >> 8) & 0xff) * _r62) >> 8;
_u62[2] = (((_f9 >> 16) & 0xff) * _r62) >> 8;
_u62[3] = (((_f9 >> 24) & 0xff) * _r62) >> 8;
_u62[0] += ((_t62 & 0xff) * _s62) >> 8;
_u62[1] += (((_t62 >> 8) & 0xff) * _s62) >> 8;
_u62[2] += (((_t62 >> 16) & 0xff) * _s62) >> 8;
_u62[3] += (((_t62 >> 24) & 0xff) * _s62) >> 8;
var _v62 = _u62[0] | (_u62[1] << 8) | (_u62[2] << 16) | (_u62[3] << 24);
return _v62
}
}
return _n62._h62[_n62._g62 - 1]._f9
};;
_X52.prototype._962 = function (_b62, _x52, _y52, _z52) {
_b62._662 = [];
for (var _i2 = 0; _i2 < _b62._262; _i2++) {
var _eo = _x52.getUint8(_y52,
_z52);
_y52++;
var _fo = _x52.getUint8(_y52, _z52);
_y52++;
var _go = _x52.getUint8(_y52, _z52);
_y52++;
var alpha = _x52.getUint8(_y52, _z52);
_y52++;
_b62._662.push({
_f9: (_eo | (_fo << 8) | (_go << 16) | (alpha << 24))
})
}
return _y52
};;
_X52.prototype._a62 = function (_b62, _x52, _y52, _z52) {
var _i2, _5b;
_b62._762 = [];
for (_i2 = 0; _i2 < _b62._362; _i2++) {
var _w62 = {};
_b62._762.push(_w62);
_w62._x62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._y62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._z62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._A62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._B62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._C62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._D62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._E62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
if (_W52.version >= 2) {
_w62._F62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._G62 = _x52.getInt32(_y52, _z52);
_y52 += 4
}
if (_W52.version >= 3) {
_w62._H62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_w62._I62 = _x52.getInt32(_y52, _z52);
_y52 += 4
}
_w62._J62 = (_w62._A62 > 0) ? [] : null;
_w62._K62 = (_w62._B62 > 0) ? [] : null;
_w62._L62 = (_w62._C62 > 0) ? [] : null;
_w62._M62 = (_w62._D62 > 0) ? [] : null;
_w62._N62 = (_w62._E62 > 0) ? [] : null;
_w62._O62 = (_w62._F62) ? [] : null;
_w62._P62 = (_w62._G62) ? [] : null;
_w62._Q62 = (_w62._H62) ? [] : null;
_w62._R62 = (_w62._I62) ? [] : null;
for (_5b = 0; _5b < _w62._A62 * 2; _5b++) {
_w62._J62[_5b] = _x52.getFloat32(_y52, _z52);
_y52 += 4
}
for (_5b = 0; _5b < _w62._B62 * 2; _5b++) {
_w62._S62[_5b] = _x52.getInt32(_y52, _z52);
_y52 += 4
}
for (_5b = 0; _5b < _w62._C62 * 3; _5b++) {
_w62._L62[_5b] = _x52.getUint32(_y52, _z52);
_y52 += 4
}
for (_5b = 0; _5b < _w62._D62 * 2; _5b++) {
_w62._M62[_5b] = _x52.getFloat32(_y52, _z52);
_y52 += 4
}
for (_5b = 0; _5b < _w62._E62 * 3; _5b++) {
_w62._N62[_5b] = _x52.getUint32(_y52, _z52);
_y52 += 4
}
if (_W52.version >= 2) {
for (_5b = 0; _5b < _w62._F62 * 2; _5b++) {
_w62._O62[_5b] = _x52.getInt32(_y52, _z52);
_y52 += 4
}
for (_5b = 0; _5b < _w62._G62 * 2; _5b++) {
_w62._P62[_5b] = _x52.getFloat32(_y52, _z52);
_y52 += 4
}
}
if (_W52.version >= 3) {
for (_5b = 0; _5b < _w62._H62 * 2; _5b++) {
_w62._Q62[_5b] = _x52.getInt32(_y52, _z52);
_y52 += 4
}
for (_5b = 0; _5b < _w62._I62 * 2; _5b++) {
_w62._R62[_5b] = _x52.getFloat32(_y52, _z52);
_y52 += 4
}
}
}
return _y52
};;
var _T62 = 1.0 / 20.0; /*@constructor */
function _U62() {
this._V62 = 0;
this._W62 = 0;
this._La = 0;
this._Ma = 0;
this._Na = 0;
this._Oa = 0;
this._X62 = null
};
_U62.prototype._Y62 = function (_x52, _y52, _z52) {
this._V62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
this._W62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
this._La = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
this._Ma = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
this._Na = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
this._Oa = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
var _Z62, __62, _072;
_Z62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
__62 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_072 = _x52.getInt32(_y52,
_z52);
_y52 += 4;
this._X62 = {
_Z62: _Z62,
__62: __62,
_072: _072
};
this._172 = [];
for (var _i2 = 0; _i2 < this._W62; _i2++) {
var _272 = {};
this._172.push(_272);
_272._372 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_272._La = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
_272._Ma = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
_272._Na = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
_272._Oa = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
_272._472 = [];
for (var _nb = 0; _nb < _272._372; _nb++) {
var _mz = {};
_272._472.push(_mz);
_mz._HH = _x52.getInt32(_y52, _z52);
_y52 += 4;
_mz.index = _x52.getInt32(_y52,
_z52);
_y52 += 4;
_mz._r3 = _x52.getInt32(_y52, _z52);
_y52 += 4;
_mz._572 = _x52.getInt32(_y52, _z52);
_y52 += 4;
var _672 = [];
for (var __l = 0; __l < 4; __l++) {
_672[__l] = _x52.getInt32(_y52, _z52);
_y52 += 4
}
var _772 = [];
for (var __l = 0; __l < 4; __l++) {
_772[__l] = _x52.getInt32(_y52, _z52);
_y52 += 4
}
_mz._872 = [];
_mz._972 = [];
_mz._a72 = [];
_mz._872[0] = _672[2];
_mz._972[0] = _772[2];
_mz._a72[0] = 0;
_mz._872[1] = _672[1];
_mz._972[1] = _772[1];
_mz._a72[1] = _772[1];
_mz._872[2] = _672[0];
_mz._972[2] = _772[0];
_mz._a72[2] = _772[0];
_mz._872[3] = _672[3];
_mz._972[3] = _772[3];
_mz._a72[3] = _772[3];
_mz._La = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
_mz._Ma = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
_mz._Na = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
_mz._Oa = _x52.getFloat32(_y52, _z52) * _T62;
_y52 += 4;
var _f62 = [];
for (var __l = 0; __l < 9; __l++) {
_f62[__l] = _x52.getFloat32(_y52, _z52);
_y52 += 4
}
_mz._f62 = new _Zt();
_mz._f62._5b[_xv] = _f62[0];
_mz._f62._5b[_yv] = _f62[1];
_mz._f62._5b[_Av] = _f62[2];
_mz._f62._5b[_Bv] = _f62[3];
_mz._f62._5b[_qu] = _f62[4];
_mz._f62._5b[_Dv] = _f62[5]
}
}
return _y52
};; /*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
(function () {
'use strict';
var _3b = void 0,
_k2 = !0,
_oZ1 = this;
function _yP(_7z, _Xn) {
var _j2 = _7z.split("."),
e = _oZ1;
!(_j2[0] in e) && e._b72 && e._b72("var " + _j2[0]);
for (var _99; _j2.length && (_99 = _j2.shift());) !_j2.length && _Xn !== _3b ? e[_99] = _Xn : e = e[_99] ? e[_99] : e[_99] = {}
};
var _061 = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array && "undefined" !== typeof DataView;
function _ir1(_7z, _Xn) {
this.index = "number" === typeof _Xn ? _Xn : 0;
this.e = 0;
this.buffer = _7z instanceof(_061 ? Uint8Array : Array) ? _7z : new(_061 ? Uint8Array : Array)(32768);
if (2 * this.buffer.length <= this.index) throw Error("invalid index");
this.buffer.length <= this.index && _c72(this)
}
function _c72(_7z) {
var _Xn = _7z.buffer,
_j2, e = _Xn.length,
_99 = new(_061 ? Uint8Array : Array)(e << 1);
if (_061) _99.set(_Xn);
else
for (_j2 = 0; _j2 < e; ++_j2) _99[_j2] = _Xn[_j2];
return _7z.buffer = _99
}
_ir1.prototype._99 = function (_7z, _Xn, _j2) {
var e = this.buffer,
_99 = this.index,
_a9 = this.e,
_89 = e[_99],
_5b;
_j2 && 1 < _Xn && (_7z = 8 < _Xn ? (_Iw1[_7z & 255] << 24 | _Iw1[_7z >>> 8 & 255] << 16 | _Iw1[_7z >>> 16 & 255] << 8 | _Iw1[_7z >>> 24 & 255]) >> 32 - _Xn : _Iw1[_7z] >> 8 - _Xn);
if (8 > _Xn + _a9) _89 = _89 << _Xn | _7z, _a9 += _Xn;
else
for (_5b = 0; _5b < _Xn; ++_5b) _89 = _89 << 1 | _7z >> _Xn - _5b - 1 & 1, 8 === ++_a9 && (_a9 = 0, e[_99++] = _Iw1[_89], _89 = 0, _99 === e.length && (e = _c72(this)));
e[_99] = _89;
this.buffer = e;
this.e = _a9;
this.index = _99
};
_ir1.prototype._Uz1 = function () {
var _7z = this.buffer,
_Xn = this.index,
_j2;
0 < this.e && (_7z[_Xn] <<= 8 - this.e, _7z[_Xn] = _Iw1[_7z[_Xn]], _Xn++);
_061 ? _j2 = _7z.subarray(0, _Xn) : (_7z.length = _Xn, _j2 = _7z);
return _j2
};
var _Tp1 = new(_061 ? Uint8Array : Array)(256),
_l51;
for (_l51 = 0; 256 > _l51; ++_l51) {
for (var _d72 = _l51,
_e72 = _d72, _f72 = 7, _d72 = _d72 >>> 1; _d72; _d72 >>>= 1) _e72 <<= 1, _e72 |= _d72 & 1, --_f72;
_Tp1[_l51] = (_e72 << _f72 & 255) >>> 0
}
var _Iw1 = _Tp1;
function _LY1(_7z) {
this.buffer = new(_061 ? Uint16Array : Array)(2 * _7z);
this.length = 0
}
_LY1.prototype._g72 = function (_7z) {
return 2 * ((_7z - 2) / 4 | 0)
};
_LY1.prototype.push = function (_7z, _Xn) {
var _j2, e, _99 = this.buffer,
_a9;
_j2 = this.length;
_99[this.length++] = _Xn;
for (_99[this.length++] = _7z; 0 < _j2;)
if (e = this._g72(_j2), _99[_j2] > _99[e]) _a9 = _99[_j2], _99[_j2] = _99[e], _99[e] = _a9, _a9 = _99[_j2 + 1], _99[_j2 + 1] = _99[e + 1],
_99[e + 1] = _a9, _j2 = e;
else break;
return this.length
};
_LY1.prototype.pop = function () {
var _7z, _Xn, _j2 = this.buffer,
e, _99, _a9;
_Xn = _j2[0];
_7z = _j2[1];
this.length -= 2;
_j2[0] = _j2[this.length];
_j2[1] = _j2[this.length + 1];
for (_a9 = 0;;) {
_99 = 2 * _a9 + 2;
if (_99 >= this.length) break;
_99 + 2 < this.length && _j2[_99 + 2] > _j2[_99] && (_99 += 2);
if (_j2[_99] > _j2[_a9]) e = _j2[_a9], _j2[_a9] = _j2[_99], _j2[_99] = e, e = _j2[_a9 + 1], _j2[_a9 + 1] = _j2[_99 + 1], _j2[_99 + 1] = e;
else break;
_a9 = _99
}
return ({
index: _7z,
value: _Xn,
length: this.length
})
};
function _Vn1(_7z, _Xn) {
this._Xn = _AY1;
this._i2 = 0;
this._aC = _061 && _7z instanceof Array ? new Uint8Array(_7z) : _7z;
this._j2 = 0;
_Xn && (_Xn._h72 && (this._i2 = _Xn._h72), "number" === typeof _Xn._i72 && (this._Xn = _Xn._i72), _Xn.outputBuffer && (this._a9 = _061 && _Xn.outputBuffer instanceof Array ? new Uint8Array(_Xn.outputBuffer) : _Xn.outputBuffer), "number" === typeof _Xn._j72 && (this._j2 = _Xn._j72));
this._a9 || (this._a9 = new(_061 ? Uint8Array : Array)(32768))
}
var _AY1 = 2,
_k72 = {
__Z1: 0,
_l2: 1,
_89: _AY1,
_3b: 3
},
_Y51 = [],
_l72;
for (_l72 = 0; 288 > _l72; _l72++) switch (_k2) {
case 143 >= _l72:
_Y51.push([_l72 + 48,
8
]);
break;
case 255 >= _l72:
_Y51.push([_l72 - 144 + 400, 9]);
break;
case 279 >= _l72:
_Y51.push([_l72 - 256 + 0, 7]);
break;
case 287 >= _l72:
_Y51.push([_l72 - 280 + 192, 8]);
break;
default:
throw "invalid literal: " + _l72
}
_Vn1.prototype._7z = function () {
var _7z, _Xn, _j2, e, _99 = this._aC;
switch (this._Xn) {
case 0:
_j2 = 0;
for (e = _99.length; _j2 < e;) {
_Xn = _061 ? _99.subarray(_j2, _j2 + 65535) : _99.slice(_j2, _j2 + 65535);
_j2 += _Xn.length;
var _a9 = _Xn,
_89 = _j2 === e,
_5b = _3b,
__l = _3b,
_gE = _3b,
_jb = _3b,
_N9 = _3b,
_gb = this._a9,
_l2 = this._j2;
if (_061) {
for (_gb = new Uint8Array(this._a9.buffer); _gb.length <= _l2 + _a9.length + 5;) _gb = new Uint8Array(_gb.length << 1);
_gb.set(this._a9)
}
_5b = _89 ? 1 : 0;
_gb[_l2++] = _5b | 0;
__l = _a9.length;
_gE = ~__l + 65536 & 65535;
_gb[_l2++] = __l & 255;
_gb[_l2++] = __l >>> 8 & 255;
_gb[_l2++] = _gE & 255;
_gb[_l2++] = _gE >>> 8 & 255;
if (_061) _gb.set(_a9, _l2), _l2 += _a9.length, _gb = _gb.subarray(0, _l2);
else {
_jb = 0;
for (_N9 = _a9.length; _jb < _N9; ++_jb) _gb[_l2++] = _a9[_jb];
_gb.length = _l2
}
this._j2 = _l2;
this._a9 = _gb
}
break;
case 1:
var _qC = new _ir1(_061 ? new Uint8Array(this._a9.buffer) : this._a9, this._j2);
_qC._99(1, 1, _k2);
_qC._99(1,
2, _k2);
var _wy = _xo1(this, _99),
x, _m72, _2g;
x = 0;
for (_m72 = _wy.length; x < _m72; x++)
if (_2g = _wy[x], _ir1.prototype._99.apply(_qC, _Y51[_2g]), 256 < _2g) _qC._99(_wy[++x], _wy[++x], _k2), _qC._99(_wy[++x], 5), _qC._99(_wy[++x], _wy[++x], _k2);
else if (256 === _2g) break;
this._a9 = _qC._Uz1();
this._j2 = this._a9.length;
break;
case _AY1:
var _651 = new _ir1(_061 ? new Uint8Array(this._a9.buffer) : this._a9, this._j2),
_pZ1, _n72, _o72, _Wc1, _Vc1, _p72 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
_Pu, _f12, _Qu, _q72, _r72, _s72 = Array(19),
_t72, _AU1,
_u72, y, _yp;
_pZ1 = _AY1;
_651._99(1, 1, _k2);
_651._99(_pZ1, 2, _k2);
_n72 = _xo1(this, _99);
_Pu = _Tn1(this._5b, 15);
_f12 = _v72(_Pu);
_Qu = _Tn1(this._gb, 7);
_q72 = _v72(_Qu);
for (_o72 = 286; 257 < _o72 && 0 === _Pu[_o72 - 1]; _o72--);
for (_Wc1 = 30; 1 < _Wc1 && 0 === _Qu[_Wc1 - 1]; _Wc1--);
var _zp = _o72,
_Ap = _Wc1,
_6f1 = new(_061 ? Uint32Array : Array)(_zp + _Ap),
_79, _7f1, _O9, _Ru, _af1 = new(_061 ? Uint32Array : Array)(316),
_g81, _X31, _w72 = new(_061 ? Uint8Array : Array)(19);
for (_79 = _7f1 = 0; _79 < _zp; _79++) _6f1[_7f1++] = _Pu[_79];
for (_79 = 0; _79 < _Ap; _79++) _6f1[_7f1++] = _Qu[_79];
if (!_061) {
_79 = 0;
for (_Ru = _w72.length; _79 < _Ru; ++_79) _w72[_79] = 0
}
_79 = _g81 = 0;
for (_Ru = _6f1.length; _79 < _Ru; _79 += _7f1) {
for (_7f1 = 1; _79 + _7f1 < _Ru && _6f1[_79 + _7f1] === _6f1[_79]; ++_7f1);
_O9 = _7f1;
if (0 === _6f1[_79])
if (3 > _O9)
for (; 0 < _O9--;) _af1[_g81++] = 0, _w72[0]++;
else
for (; 0 < _O9;) _X31 = 138 > _O9 ? _O9 : 138, _X31 > _O9 - 3 && _X31 < _O9 && (_X31 = _O9 - 3), 10 >= _X31 ? (_af1[_g81++] = 17, _af1[_g81++] = _X31 - 3, _w72[17]++) : (_af1[_g81++] = 18, _af1[_g81++] = _X31 - 11, _w72[18]++), _O9 -= _X31;
else if (_af1[_g81++] = _6f1[_79], _w72[_6f1[_79]]++, _O9--, 3 > _O9)
for (; 0 < _O9--;) _af1[_g81++] = _6f1[_79], _w72[_6f1[_79]]++;
else
for (; 0 < _O9;) _X31 = 6 > _O9 ? _O9 : 6, _X31 > _O9 - 3 && _X31 < _O9 && (_X31 = _O9 - 3), _af1[_g81++] = 16, _af1[_g81++] = _X31 - 3, _w72[16]++, _O9 -= _X31
}
_7z = _061 ? _af1.subarray(0, _g81) : _af1.slice(0, _g81);
_r72 = _Tn1(_w72, 7);
for (y = 0; 19 > y; y++) _s72[y] = _r72[_p72[y]];
for (_Vc1 = 19; 4 < _Vc1 && 0 === _s72[_Vc1 - 1]; _Vc1--);
_t72 = _v72(_r72);
_651._99(_o72 - 257, 5, _k2);
_651._99(_Wc1 - 1, 5, _k2);
_651._99(_Vc1 - 4, 4, _k2);
for (y = 0; y < _Vc1; y++) _651._99(_s72[y], 3, _k2);
y = 0;
for (_yp = _7z.length; y < _yp; y++)
if (_AU1 = _7z[y],
_651._99(_t72[_AU1], _r72[_AU1], _k2), 16 <= _AU1) {
y++;
switch (_AU1) {
case 16:
_u72 = 2;
break;
case 17:
_u72 = 3;
break;
case 18:
_u72 = 7;
break;
default:
throw "invalid code: " + _AU1
}
_651._99(_7z[y], _u72, _k2)
} var _x72 = [_f12, _Pu],
_y72 = [_q72, _Qu],
_T61, _z72, $, _t41, _A72, _B72, _C72, _D72;
_A72 = _x72[0];
_B72 = _x72[1];
_C72 = _y72[0];
_D72 = _y72[1];
_T61 = 0;
for (_z72 = _n72.length; _T61 < _z72; ++_T61)
if ($ = _n72[_T61], _651._99(_A72[$], _B72[$], _k2), 256 < $) _651._99(_n72[++_T61], _n72[++_T61], _k2), _t41 = _n72[++_T61], _651._99(_C72[_t41], _D72[_t41], _k2), _651._99(_n72[++_T61],
_n72[++_T61], _k2);
else if (256 === $) break;
this._a9 = _651._Uz1();
this._j2 = this._a9.length;
break;
default:
throw "invalid compression type"
}
return this._a9
};
function _OY1(_7z, _Xn) {
this.length = _7z;
this.__l = _Xn
}
var _E72 = function () {
function _7z(_99) {
switch (_k2) {
case 3 === _99:
return [257, _99 - 3, 0];
case 4 === _99:
return [258, _99 - 4, 0];
case 5 === _99:
return [259, _99 - 5, 0];
case 6 === _99:
return [260, _99 - 6, 0];
case 7 === _99:
return [261, _99 - 7, 0];
case 8 === _99:
return [262, _99 - 8, 0];
case 9 === _99:
return [263, _99 - 9, 0];
case 10 === _99:
return [264, _99 - 10,
0
];
case 12 >= _99:
return [265, _99 - 11, 1];
case 14 >= _99:
return [266, _99 - 13, 1];
case 16 >= _99:
return [267, _99 - 15, 1];
case 18 >= _99:
return [268, _99 - 17, 1];
case 22 >= _99:
return [269, _99 - 19, 2];
case 26 >= _99:
return [270, _99 - 23, 2];
case 30 >= _99:
return [271, _99 - 27, 2];
case 34 >= _99:
return [272, _99 - 31, 2];
case 42 >= _99:
return [273, _99 - 35, 3];
case 50 >= _99:
return [274, _99 - 43, 3];
case 58 >= _99:
return [275, _99 - 51, 3];
case 66 >= _99:
return [276, _99 - 59, 3];
case 82 >= _99:
return [277, _99 - 67, 4];
case 98 >= _99:
return [278, _99 - 83, 4];
case 114 >= _99:
return [279, _99 - 99, 4];
case 130 >= _99:
return [280,
_99 - 115, 4
];
case 162 >= _99:
return [281, _99 - 131, 5];
case 194 >= _99:
return [282, _99 - 163, 5];
case 226 >= _99:
return [283, _99 - 195, 5];
case 257 >= _99:
return [284, _99 - 227, 5];
case 258 === _99:
return [285, _99 - 258, 0];
default:
throw "invalid length: " + _99
}
}
var _Xn = [],
_j2, e;
for (_j2 = 3; 258 >= _j2; _j2++) e = _7z(_j2), _Xn[_j2] = e[2] << 24 | e[1] << 16 | e[0];
return _Xn
}(),
_F72 = _061 ? new Uint32Array(_E72) : _E72;
function _xo1(_7z, _Xn) {
function _j2(_99, _j2) {
var _a9 = _99.__l,
_Xn = [],
e = 0,
_7z;
_7z = _F72[_99.length];
_Xn[e++] = _7z & 65535;
_Xn[e++] = _7z >> 16 & 255;
_Xn[e++] = _7z >> 24;
var _89;
switch (_k2) {
case 1 === _a9:
_89 = [0, _a9 - 1, 0];
break;
case 2 === _a9:
_89 = [1, _a9 - 2, 0];
break;
case 3 === _a9:
_89 = [2, _a9 - 3, 0];
break;
case 4 === _a9:
_89 = [3, _a9 - 4, 0];
break;
case 6 >= _a9:
_89 = [4, _a9 - 5, 1];
break;
case 8 >= _a9:
_89 = [5, _a9 - 7, 1];
break;
case 12 >= _a9:
_89 = [6, _a9 - 9, 2];
break;
case 16 >= _a9:
_89 = [7, _a9 - 13, 2];
break;
case 24 >= _a9:
_89 = [8, _a9 - 17, 3];
break;
case 32 >= _a9:
_89 = [9, _a9 - 25, 3];
break;
case 48 >= _a9:
_89 = [10, _a9 - 33, 4];
break;
case 64 >= _a9:
_89 = [11, _a9 - 49, 4];
break;
case 96 >= _a9:
_89 = [12, _a9 - 65, 5];
break;
case 128 >= _a9:
_89 = [13, _a9 - 97, 5];
break;
case 192 >= _a9:
_89 = [14, _a9 - 129, 6];
break;
case 256 >= _a9:
_89 = [15, _a9 - 193, 6];
break;
case 384 >= _a9:
_89 = [16, _a9 - 257, 7];
break;
case 512 >= _a9:
_89 = [17, _a9 - 385, 7];
break;
case 768 >= _a9:
_89 = [18, _a9 - 513, 8];
break;
case 1024 >= _a9:
_89 = [19, _a9 - 769, 8];
break;
case 1536 >= _a9:
_89 = [20, _a9 - 1025, 9];
break;
case 2048 >= _a9:
_89 = [21, _a9 - 1537, 9];
break;
case 3072 >= _a9:
_89 = [22, _a9 - 2049, 10];
break;
case 4096 >= _a9:
_89 = [23, _a9 - 3073, 10];
break;
case 6144 >= _a9:
_89 = [24, _a9 - 4097, 11];
break;
case 8192 >= _a9:
_89 = [25, _a9 - 6145, 11];
break;
case 12288 >= _a9:
_89 = [26, _a9 - 8193,
12
];
break;
case 16384 >= _a9:
_89 = [27, _a9 - 12289, 12];
break;
case 24576 >= _a9:
_89 = [28, _a9 - 16385, 13];
break;
case 32768 >= _a9:
_89 = [29, _a9 - 24577, 13];
break;
default:
throw "invalid distance"
}
_7z = _89;
_Xn[e++] = _7z[0];
_Xn[e++] = _7z[1];
_Xn[e++] = _7z[2];
var __l, _5b;
__l = 0;
for (_5b = _Xn.length; __l < _5b; ++__l) _gb[_l2++] = _Xn[__l];
_wy[_Xn[0]]++;
x[_Xn[3]]++;
_qC = _99.length + _j2 - 1;
_N9 = null
}
var e, _99, _a9, _89, _5b, __l = {},
_gE, _jb, _N9, _gb = _061 ? new Uint16Array(2 * _Xn.length) : [],
_l2 = 0,
_qC = 0,
_wy = new(_061 ? Uint32Array : Array)(286),
x = new(_061 ? Uint32Array : Array)(30),
_m72 = _7z._i2,
_2g;
if (!_061) {
for (_a9 = 0; 285 >= _a9;) _wy[_a9++] = 0;
for (_a9 = 0; 29 >= _a9;) x[_a9++] = 0
}
_wy[256] = 1;
e = 0;
for (_99 = _Xn.length; e < _99; ++e) {
_a9 = _5b = 0;
for (_89 = 3; _a9 < _89 && e + _a9 !== _99; ++_a9) _5b = _5b << 8 | _Xn[e + _a9];
__l[_5b] === _3b && (__l[_5b] = []);
_gE = __l[_5b];
if (!(0 < _qC--)) {
for (; 0 < _gE.length && 32768 < e - _gE[0];) _gE.shift();
if (e + 3 >= _99) {
_N9 && _j2(_N9, -1);
_a9 = 0;
for (_89 = _99 - e; _a9 < _89; ++_a9) _2g = _Xn[e + _a9], _gb[_l2++] = _2g, ++_wy[_2g];
break
}
0 < _gE.length ? (_jb = _G72(_Xn, e, _gE), _N9 ? _N9.length < _jb.length ? (_2g = _Xn[e - 1], _gb[_l2++] = _2g,
++_wy[_2g], _j2(_jb, 0)) : _j2(_N9, -1) : _jb.length < _m72 ? _N9 = _jb : _j2(_jb, 0)) : _N9 ? _j2(_N9, -1) : (_2g = _Xn[e], _gb[_l2++] = _2g, ++_wy[_2g])
}
_gE.push(e)
}
_gb[_l2++] = 256;
_wy[256]++;
_7z._5b = _wy;
_7z._gb = x;
return _061 ? _gb.subarray(0, _l2) : _gb
}
function _G72(_7z, _Xn, _j2) {
var e, _99, _a9 = 0,
_89, _5b, __l, _gE, _jb = _7z.length;
_5b = 0;
_gE = _j2.length;
_a9: for (; _5b < _gE; _5b++) {
e = _j2[_gE - _5b - 1];
_89 = 3;
if (3 < _a9) {
for (__l = _a9; 3 < __l; __l--)
if (_7z[e + __l - 1] !== _7z[_Xn + __l - 1]) continue _a9;
_89 = _a9
}
for (; 258 > _89 && _Xn + _89 < _jb && _7z[e + _89] === _7z[_Xn + _89];) ++_89;
_89 > _a9 && (_99 = e, _a9 = _89);
if (258 === _89) break
}
return new _OY1(_a9, _Xn - _99)
}
function _Tn1(_7z, _Xn) {
var _j2 = _7z.length,
e = new _LY1(572),
_99 = new(_061 ? Uint8Array : Array)(_j2),
_a9, _89, _5b, __l, _gE;
if (!_061)
for (__l = 0; __l < _j2; __l++) _99[__l] = 0;
for (__l = 0; __l < _j2; ++__l) 0 < _7z[__l] && e.push(__l, _7z[__l]);
_a9 = Array(e.length / 2);
_89 = new(_061 ? Uint32Array : Array)(e.length / 2);
if (1 === _a9.length) return _99[e.pop().index] = 1, _99;
__l = 0;
for (_gE = e.length / 2; __l < _gE; ++__l) _a9[__l] = e.pop(), _89[__l] = _a9[__l].value;
_5b = _H72(_89, _89.length,
_Xn);
__l = 0;
for (_gE = _a9.length; __l < _gE; ++__l) _99[_a9[__l].index] = _5b[__l];
return _99
}
function _H72(_7z, _Xn, _j2) {
function e(_a9) {
var _99 = __l[_a9][_gE[_a9]];
_99 === _Xn ? (e(_a9 + 1), e(_a9 + 1)) : --_89[_99];
++_gE[_a9]
}
var _99 = new(_061 ? Uint16Array : Array)(_j2),
_a9 = new(_061 ? Uint8Array : Array)(_j2),
_89 = new(_061 ? Uint8Array : Array)(_Xn),
_5b = Array(_j2),
__l = Array(_j2),
_gE = Array(_j2),
_jb = (1 << _j2) - _Xn,
_N9 = 1 << _j2 - 1,
_gb, _l2, _qC, _wy, x;
_99[_j2 - 1] = _Xn;
for (_l2 = 0; _l2 < _j2; ++_l2) _jb < _N9 ? _a9[_l2] = 0 : (_a9[_l2] = 1, _jb -= _N9), _jb <<= 1, _99[_j2 - 2 - _l2] = (_99[_j2 - 1 - _l2] / 2 | 0) + _Xn;
_99[0] = _a9[0];
_5b[0] = Array(_99[0]);
__l[0] = Array(_99[0]);
for (_l2 = 1; _l2 < _j2; ++_l2) _99[_l2] > 2 * _99[_l2 - 1] + _a9[_l2] && (_99[_l2] = 2 * _99[_l2 - 1] + _a9[_l2]), _5b[_l2] = Array(_99[_l2]), __l[_l2] = Array(_99[_l2]);
for (_gb = 0; _gb < _Xn; ++_gb) _89[_gb] = _j2;
for (_qC = 0; _qC < _99[_j2 - 1]; ++_qC) _5b[_j2 - 1][_qC] = _7z[_qC], __l[_j2 - 1][_qC] = _qC;
for (_gb = 0; _gb < _j2; ++_gb) _gE[_gb] = 0;
1 === _a9[_j2 - 1] && (--_89[0], ++_gE[_j2 - 1]);
for (_l2 = _j2 - 2; 0 <= _l2; --_l2) {
_wy = _gb = 0;
x = _gE[_l2 + 1];
for (_qC = 0; _qC < _99[_l2]; _qC++) _wy = _5b[_l2 + 1][x] + _5b[_l2 + 1][x + 1], _wy > _7z[_gb] ? (_5b[_l2][_qC] = _wy,
__l[_l2][_qC] = _Xn, x += 2) : (_5b[_l2][_qC] = _7z[_gb], __l[_l2][_qC] = _gb, ++_gb);
_gE[_l2] = 0;
1 === _a9[_l2] && e(_l2)
}
return _89
}
function _v72(_7z) {
var _Xn = new(_061 ? Uint16Array : Array)(_7z.length),
_j2 = [],
e = [],
_99 = 0,
_a9, _89, _5b, __l;
_a9 = 0;
for (_89 = _7z.length; _a9 < _89; _a9++) _j2[_7z[_a9]] = (_j2[_7z[_a9]] | 0) + 1;
_a9 = 1;
for (_89 = 16; _a9 <= _89; _a9++) e[_a9] = _99, _99 += _j2[_a9] | 0, _99 <<= 1;
_a9 = 0;
for (_89 = _7z.length; _a9 < _89; _a9++) {
_99 = e[_7z[_a9]];
e[_7z[_a9]] += 1;
_5b = _Xn[_a9] = 0;
for (__l = _7z[_a9]; _5b < __l; _5b++) _Xn[_a9] = _Xn[_a9] << 1 | _99 & 1, _99 >>>= 1
}
return _Xn
};
function _I72(_7z, _Xn) {
this._aC = _7z;
this._a9 = new(_061 ? Uint8Array : Array)(32768);
this._Xn = _J72._89;
var _j2 = {},
e;
if ((_Xn || !(_Xn = {})) && "number" === typeof _Xn._i72) this._Xn = _Xn._i72;
for (e in _Xn) _j2[e] = _Xn[e];
_j2.outputBuffer = this._a9;
this._nb = new _Vn1(this._aC, _j2)
}
var _J72 = _k72;
_I72.prototype._7z = function () {
var _7z, _Xn, _j2, e, _99, _a9, _89 = 0;
_a9 = this._a9;
switch (8) {
case 8:
_7z = Math.LOG2E * Math.log(32768) - 8;
break;
default:
throw Error("invalid compression method")
}
_Xn = _7z << 4 | 8;
_a9[_89++] = _Xn;
switch (8) {
case 8:
switch (this._Xn) {
case _J72.__Z1:
e = 0;
break;
case _J72._l2:
e = 1;
break;
case _J72._89:
e = 2;
break;
default:
throw Error("unsupported compression type")
}
break;
default:
throw Error("invalid compression method");
}
_j2 = e << 6 | 0;
_a9[_89++] = _j2 | 31 - (256 * _Xn + _j2) % 31;
var _5b = this._aC;
if ("string" === typeof _5b) {
var __l = _5b.split(""),
_gE, _jb;
_gE = 0;
for (_jb = __l.length; _gE < _jb; _gE++) __l[_gE] = (__l[_gE].charCodeAt(0) & 255) >>> 0;
_5b = __l
}
for (var _N9 = 1, _gb = 0, _l2 = _5b.length, _qC, _wy = 0; 0 < _l2;) {
_qC = 1024 < _l2 ? 1024 : _l2;
_l2 -= _qC;
do _N9 += _5b[_wy++], _gb += _N9; while (--_qC);
_N9 %= 65521;
_gb %= 65521
}
_99 = (_gb << 16 | _N9) >>> 0;
this._nb._j2 = _89;
_a9 = this._nb._7z();
_89 = _a9.length;
_061 && (_a9 = new Uint8Array(_a9.buffer), _a9.length <= _89 + 4 && (this._a9 = new Uint8Array(_a9.length + 4), this._a9.set(_a9), _a9 = this._a9), _a9 = _a9.subarray(0, _89 + 4));
_a9[_89++] = _99 >> 24 & 255;
_a9[_89++] = _99 >> 16 & 255;
_a9[_89++] = _99 >> 8 & 255;
_a9[_89++] = _99 & 255;
return _a9
};
_yP("Zlib.Deflate", _I72);
_yP("Zlib.Deflate.compress", function (_7z, _Xn) {
return (new _I72(_7z, _Xn))._7z()
});
_yP("Zlib.Deflate.prototype.compress", _I72.prototype._7z);
var _K72 = {
__Z1: _J72.__Z1,
FIXED: _J72._l2,
_L72: _J72._89
},
_M72, _N72, _O72, _P72;
if (Object._aY1) _M72 = Object._aY1(_K72);
else
for (_N72 in _M72 = [], _O72 = 0, _K72) _M72[_O72++] = _N72;
_O72 = 0;
for (_P72 = _M72.length; _O72 < _P72; ++_O72) _N72 = _M72[_O72], _yP("Zlib.Deflate.CompressionType." + _N72, _K72[_N72])
}).call(this); //@ sourceMappingURL=deflate.min.js.map
;
/** fingerprintJS 0.5.4 - Fast browser fingerprint library
* https://github.com/Valve/fingerprintjs
* Copyright (c) 2013 Valentin Vasilyev (valentin.vasilyev@outlook.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
;
(function (name, context, _Q72) {
if (typeof module !== 'undefined' && module._dz1) {
module._dz1 = _Q72()
} else if (typeof define === 'function' && define._R72) {
define(_Q72)
} else {
context[name] = _Q72()
}
})('Fingerprint', this, function () {
'use strict';
var Fingerprint = function (options) {
var _S72, _T72;
_S72 = Array.prototype._U72;
_T72 = Array.prototype.map;
this._V72 = function (_xn, _W72, context) {
if (_xn === null) {
return
}
if (_S72 && _xn._U72 === _S72) {
_xn._U72(_W72, context)
} else if (_xn.length === +_xn.length) {
for (var _i2 = 0, _gb = _xn.length; _i2 < _gb; _i2++) {
if (_W72.call(context, _xn[_i2], _i2, _xn) === {}) return
}
} else {
for (var key in _xn) {
if (_xn.hasOwnProperty(key)) {
if (_W72.call(context, _xn[key], key, _xn) === {}) return
}
}
}
};
this.map = function (_xn, _W72, context) {
var _X72 = [];
if (_xn == null) return _X72;
if (_T72 && _xn.map === _T72) return _xn.map(_W72, context);
this._V72(_xn, function (value, index, _vl) {
_X72[_X72.length] = _W72.call(context, value, index, _vl)
});
return _X72
};
if (typeof options == 'object') {
this._Y72 = options._Y72;
this._Z72 = options._Z72;
this.__72 = options.__72;
this.canvas = options.canvas;
this._082 = options._082
} else if (typeof options == 'function') {
this._Y72 = options
}
};
Fingerprint.prototype = {
get: function () {
var _aY1 = [];
_aY1.push(navigator.userAgent);
_aY1.push(navigator.language);
_aY1.push(screen.colorDepth);
if (this._Z72) {
var _182 = this._282();
if (typeof _182 !== 'undefined') {
_aY1.push(_182.join('x'))
}
}
_aY1.push(new Date().getTimezoneOffset());
_aY1.push(this.hasSessionStorage());
_aY1.push(this.hasLocalStorage());
_aY1.push(!!window.indexedDB);
if (document.body) {
_aY1.push(typeof (document.body.addBehavior));
} else {
_aY1.push(typeof undefined)
}
_aY1.push(typeof (window.openDatabase));
_aY1.push(navigator.cpuClass);
_aY1.push(navigator.platform);
_aY1.push(navigator.doNotTrack);
_aY1.push(this._382());
if (this.canvas && this._482()) {
_aY1.push(this._582())
}
if (this._Y72) {
return this._Y72(_aY1.join('###'), 31)
} else {
return this._682(_aY1.join('###'), 31)
}
},
/*
* JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
*
* @author Gary Court
* @see http://github.com/garycourt/murmurhash-js
* @author Austin Appleby
* @see http://sites.google.com/site/murmurhash/
*
* @param {string} key ASCII only
* @param {number} seed Positive integer only
* @return {number} 32-bit positive integer hash
*/
_682: function (key,
_xk1) {
var _782, _OM1, _YB, _882, _251, _351, _982, _i2;
_782 = key.length & 3;
_OM1 = key.length - _782;
_YB = _xk1;
_251 = 0xcc9e2d51;
_351 = 0x1b873593;
_i2 = 0;
while (_i2 < _OM1) {
_982 = ((key.charCodeAt(_i2) & 0xff)) | ((key.charCodeAt(++_i2) & 0xff) << 8) | ((key.charCodeAt(++_i2) & 0xff) << 16) | ((key.charCodeAt(++_i2) & 0xff) << 24);
++_i2;
_982 = ((((_982 & 0xffff) * _251) + ((((_982 >>> 16) * _251) & 0xffff) << 16))) & 0xffffffff;
_982 = (_982 << 15) | (_982 >>> 17);
_982 = ((((_982 & 0xffff) * _351) + ((((_982 >>> 16) * _351) & 0xffff) << 16))) & 0xffffffff;
_YB ^= _982;
_YB = (_YB << 13) | (_YB >>> 19);
_882 = ((((_YB & 0xffff) * 5) + ((((_YB >>> 16) * 5) & 0xffff) << 16))) & 0xffffffff;
_YB = (((_882 & 0xffff) + 0x6b64) + ((((_882 >>> 16) + 0xe654) & 0xffff) << 16))
}
_982 = 0;
switch (_782) {
case 3:
_982 ^= (key.charCodeAt(_i2 + 2) & 0xff) << 16;
case 2:
_982 ^= (key.charCodeAt(_i2 + 1) & 0xff) << 8;
case 1:
_982 ^= (key.charCodeAt(_i2) & 0xff);
_982 = (((_982 & 0xffff) * _251) + ((((_982 >>> 16) * _251) & 0xffff) << 16)) & 0xffffffff;
_982 = (_982 << 15) | (_982 >>> 17);
_982 = (((_982 & 0xffff) * _351) + ((((_982 >>> 16) * _351) & 0xffff) << 16)) & 0xffffffff;
_YB ^= _982
}
_YB ^= key.length;
_YB ^= _YB >>> 16;
_YB = (((_YB & 0xffff) * 0x85ebca6b) + ((((_YB >>> 16) * 0x85ebca6b) & 0xffff) << 16)) & 0xffffffff;
_YB ^= _YB >>> 13;
_YB = ((((_YB & 0xffff) * 0xc2b2ae35) + ((((_YB >>> 16) * 0xc2b2ae35) & 0xffff) << 16))) & 0xffffffff;
_YB ^= _YB >>> 16;
return _YB >>> 0
},
hasLocalStorage: function () {
try {
return !!window.localStorage
} catch (e) {
return !0
}
},
hasSessionStorage: function () {
try {
return !!window._a82
} catch (e) {
return !0
}
},
_482: function () {
var _iZ = document.createElement('canvas');
return !!(_iZ.getContext && _iZ.getContext('2d'))
},
_b82: function () {
if (navigator._c82 === 'Microsoft Internet Explorer') {
return !0
} else if (navigator._c82 === 'Netscape' && /_d82/.test(navigator.userAgent)) {
return !0
}
return !1
},
_382: function () {
if (this._b82() && this._082) {
return this._e82()
} else {
return this._f82()
}
},
_f82: function () {
return this.map(navigator._g82, function (_gE) {
var _h82 = this.map(_gE, function (_sv) {
return [_sv.type, _sv._i82].join('~')
}).join(',');
return [_gE.name, _gE.description, _h82].join('::')
}, this).join(';')
},
_e82: function () {
if (window.ActiveXObject) {
var _AD1 = ['ShockwaveFlash.ShockwaveFlash', 'AcroPDF.PDF', 'PDF.PdfCtrl', 'QuickTime.QuickTime', 'rmocx.RealPlayer G2 Control', 'rmocx.RealPlayer G2 Control.1',
'RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)', 'RealVideo.RealVideo(tm) ActiveX Control (32-bit)', 'RealPlayer', 'SWCtl.SWCtl', 'WMPlayer.OCX', 'AgControl.AgControl', 'Skype.Detection'
];
return this.map(_AD1, function (name) {
try {
new ActiveXObject(name);
return name
} catch (e) {
return null
}
}).join(';')
} else {
return ""
}
},
_282: function () {
var _182;
if (this.__72) {
_182 = (screen.height > screen.width) ? [screen.height, screen.width] : [screen.width, screen.height]
} else {
_182 = [screen.height, screen.width]
}
return _182
},
_582: function () {
var canvas = document.createElement('canvas');
var _9f = canvas.getContext('2d');
var _oy = 'http://valve.github.io';
_9f.textBaseline = "top";
_9f.font = "14px 'Arial'";
_9f.textBaseline = "alphabetic";
_9f.fillStyle = "#f60";
_9f.fillRect(125, 1, 62, 20);
_9f.fillStyle = "#069";
_9f.fillText(_oy, 2, 15);
_9f.fillStyle = "rgba(102, 204, 0, 0.7)";
_9f.fillText(_oy, 4, 17);
return canvas.toDataURL()
}
};
return Fingerprint
}); /*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
(function () {
'use strict';
function _5b(_99) {
throw _99
}
var _3b = void 0,
_79 = this;
function _wy(_99, _Xn) {
var _a9 = _99.split("."),
_j2 = _79;
!(_a9[0] in _j2) && _j2._b72 && _j2._b72("var " + _a9[0]);
for (var _7z; _a9.length && (_7z = _a9.shift());) !_a9.length && _Xn !== _3b ? _j2[_7z] = _Xn : _j2 = _j2[_7z] ? _j2[_7z] : _j2[_7z] = {}
};
var _N9 = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
function _O9(_99) {
var _Xn = _99.length,
_a9 = 0,
_j2 = Number.POSITIVE_INFINITY,
_7z, e, _89, _l2, __l, _gb, _qC, _gE, _jb;
for (_gE = 0; _gE < _Xn; ++_gE) _99[_gE] > _a9 && (_a9 = _99[_gE]),
_99[_gE] < _j2 && (_j2 = _99[_gE]);
_7z = 1 << _a9;
e = new(_N9 ? Uint32Array : Array)(_7z);
_89 = 1;
_l2 = 0;
for (__l = 2; _89 <= _a9;) {
for (_gE = 0; _gE < _Xn; ++_gE)
if (_99[_gE] === _89) {
_gb = 0;
_qC = _l2;
for (_jb = 0; _jb < _89; ++_jb) _gb = _gb << 1 | _qC & 1, _qC >>= 1;
for (_jb = _gb; _jb < _7z; _jb += __l) e[_jb] = _89 << 16 | _gE;
++_l2
}++ _89;
_l2 <<= 1;
__l <<= 1
}
return [e, _a9, _j2]
};
function _k2(_99, _Xn) {
this._89 = [];
this._l2 = 32768;
this._Xn = this._7z = this._a9 = this._gb = 0;
this._aC = _N9 ? new Uint8Array(_99) : _99;
this._5b = !1;
this._i2 = x;
this._79 = !1;
if (_Xn || !(_Xn = {})) _Xn.index && (this._a9 = _Xn.index),
_Xn._j82 && (this._l2 = _Xn._j82), _Xn._k82 && (this._i2 = _Xn._k82), _Xn._l82 && (this._79 = _Xn._l82);
switch (this._i2) {
case y:
this._99 = 32768;
this._j2 = new(_N9 ? Uint8Array : Array)(32768 + this._l2 + 258);
break;
case x:
this._99 = 0;
this._j2 = new(_N9 ? Uint8Array : Array)(this._l2);
this.e = this._2g;
this._3b = this._O9;
this._nb = this._k2;
break;
default:
_5b(Error("invalid inflate mode"))
}
}
var y = 0,
x = 1,
_2g = {
_jb: y,
_wy: x
};
_k2.prototype.__l = function () {
for (; !this._5b;) {
var _99 = _X31(this, 3);
_99 & 1 && (this._5b = !0);
_99 >>>= 1;
switch (_99) {
case 0:
var _Xn = this._aC,
_a9 = this._a9,
_j2 = this._j2,
_7z = this._99,
e = _3b,
_89 = _3b,
_l2 = _3b,
__l = _j2.length,
_gb = _3b;
this._Xn = this._7z = 0;
e = _Xn[_a9++];
e === _3b && _5b(Error("invalid uncompressed block header: LEN (first byte)"));
_89 = e;
e = _Xn[_a9++];
e === _3b && _5b(Error("invalid uncompressed block header: LEN (second byte)"));
_89 |= e << 8;
e = _Xn[_a9++];
e === _3b && _5b(Error("invalid uncompressed block header: NLEN (first byte)"));
_l2 = e;
e = _Xn[_a9++];
e === _3b && _5b(Error("invalid uncompressed block header: NLEN (second byte)"));
_l2 |= e << 8;
_89 === ~_l2 && _5b(Error("invalid uncompressed block header: length verify"));
_a9 + _89 > _Xn.length && _5b(Error("input buffer is broken"));
switch (this._i2) {
case y:
for (; _7z + _89 > _j2.length;) {
_gb = __l - _7z;
_89 -= _gb;
if (_N9) _j2.set(_Xn.subarray(_a9, _a9 + _gb), _7z), _7z += _gb, _a9 += _gb;
else
for (; _gb--;) _j2[_7z++] = _Xn[_a9++];
this._99 = _7z;
_j2 = this.e();
_7z = this._99
}
break;
case x:
for (; _7z + _89 > _j2.length;) _j2 = this.e({
_gE: 2
});
break;
default:
_5b(Error("invalid inflate mode"))
}
if (_N9) _j2.set(_Xn.subarray(_a9, _a9 + _89), _7z), _7z += _89, _a9 += _89;
else
for (; _89--;) _j2[_7z++] = _Xn[_a9++];
this._a9 = _a9;
this._99 = _7z;
this._j2 = _j2;
break;
case 1:
this._nb(_651, _061);
break;
case 2:
_oZ1(this);
break;
default:
_5b(Error("unknown BTYPE: " + _99))
}
}
return this._3b()
};
var _g81 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
_af1 = _N9 ? new Uint16Array(_g81) : _g81,
_6f1 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258],
_7f1 = _N9 ? new Uint16Array(_6f1) : _6f1,
_w72 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0],
_T61 = _N9 ? new Uint8Array(_w72) : _w72,
_n72 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,
65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577
],
_ir1 = _N9 ? new Uint16Array(_n72) : _n72,
_Iw1 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
_l51 = _N9 ? new Uint8Array(_Iw1) : _Iw1,
_d72 = new(_N9 ? Uint8Array : Array)(288),
_o72, _Wc1;
_o72 = 0;
for (_Wc1 = _d72.length; _o72 < _Wc1; ++_o72) _d72[_o72] = 143 >= _o72 ? 8 : 255 >= _o72 ? 9 : 279 >= _o72 ? 7 : 8;
var _651 = _O9(_d72),
_Vc1 = new(_N9 ? Uint8Array : Array)(30),
_AU1, _e72;
_AU1 = 0;
for (_e72 = _Vc1.length; _AU1 < _e72; ++_AU1) _Vc1[_AU1] = 5;
var _061 = _O9(_Vc1);
function _X31(_99, _Xn) {
for (var _a9 = _99._7z, _j2 = _99._Xn, _7z = _99._aC, e = _99._a9, _89; _j2 < _Xn;) _89 = _7z[e++], _89 === _3b && _5b(Error("input buffer is broken")), _a9 |= _89 << _j2, _j2 += 8;
_89 = _a9 & (1 << _Xn) - 1;
_99._7z = _a9 >>> _Xn;
_99._Xn = _j2 - _Xn;
_99._a9 = e;
return _89
}
function _Y51(_99, _Xn) {
for (var _a9 = _99._7z, _j2 = _99._Xn, _7z = _99._aC, e = _99._a9, _89 = _Xn[0], _l2 = _Xn[1], __l, _gb, _qC; _j2 < _l2;) {
__l = _7z[e++];
if (__l === _3b) break;
_a9 |= __l << _j2;
_j2 += 8
}
_gb = _89[_a9 & (1 << _l2) - 1];
_qC = _gb >>> 16;
_99._7z = _a9 >> _qC;
_99._Xn = _j2 - _qC;
_99._a9 = e;
return _gb & 65535
}
function _oZ1(_99) {
function _Xn(_a9, _99, _j2) {
var _Xn, e, _7z, _89;
for (_89 = 0; _89 < _a9;) switch (_Xn = _Y51(this, _99), _Xn) {
case 16:
for (_7z = 3 + _X31(this, 2); _7z--;) _j2[_89++] = e;
break;
case 17:
for (_7z = 3 + _X31(this, 3); _7z--;) _j2[_89++] = 0;
e = 0;
break;
case 18:
for (_7z = 11 + _X31(this, 7); _7z--;) _j2[_89++] = 0;
e = 0;
break;
default:
e = _j2[_89++] = _Xn
}
return _j2
}
var _a9 = _X31(_99, 5) + 257,
_j2 = _X31(_99, 5) + 1,
_7z = _X31(_99, 4) + 4,
e = new(_N9 ? Uint8Array : Array)(_af1.length),
_89, _l2, __l, _gb;
for (_gb = 0; _gb < _7z; ++_gb) e[_af1[_gb]] = _X31(_99, 3);
_89 = _O9(e);
_l2 = new(_N9 ? Uint8Array : Array)(_a9);
__l = new(_N9 ? Uint8Array : Array)(_j2);
_99._nb(_O9(_Xn.call(_99, _a9, _89, _l2)), _O9(_Xn.call(_99, _j2, _89, __l)))
}
_k2.prototype._nb = function (_99, _Xn) {
var _a9 = this._j2,
_j2 = this._99;
this._cz = _99;
for (var _7z = _a9.length - 258, e, _89, _l2, __l; 256 !== (e = _Y51(this, _99));)
if (256 > e) _j2 >= _7z && (this._99 = _j2, _a9 = this.e(), _j2 = this._99), _a9[_j2++] = e;
else {
_89 = e - 257;
__l = _7f1[_89];
0 < _T61[_89] && (__l += _X31(this, _T61[_89]));
e = _Y51(this, _Xn);
_l2 = _ir1[e];
0 < _l51[e] && (_l2 += _X31(this, _l51[e]));
_j2 >= _7z && (this._99 = _j2, _a9 = this.e(), _j2 = this._99);
for (; __l--;) _a9[_j2] = _a9[_j2++ - _l2]
} for (; 8 <= this._Xn;) this._Xn -= 8, this._a9--;
this._99 = _j2
};
_k2.prototype._k2 = function (_99, _Xn) {
var _a9 = this._j2,
_j2 = this._99;
this._cz = _99;
for (var _7z = _a9.length, e, _89, _l2, __l; 256 !== (e = _Y51(this, _99));)
if (256 > e) _j2 >= _7z && (_a9 = this.e(), _7z = _a9.length), _a9[_j2++] = e;
else {
_89 = e - 257;
__l = _7f1[_89];
0 < _T61[_89] && (__l += _X31(this, _T61[_89]));
e = _Y51(this, _Xn);
_l2 = _ir1[e];
0 < _l51[e] && (_l2 += _X31(this, _l51[e]));
_j2 + __l > _7z && (_a9 = this.e(), _7z = _a9.length);
for (; __l--;) _a9[_j2] = _a9[_j2++ - _l2]
}
for (; 8 <= this._Xn;) this._Xn -= 8, this._a9--;
this._99 = _j2
};
_k2.prototype.e = function () {
var _99 = new(_N9 ? Uint8Array : Array)(this._99 - 32768),
_Xn = this._99 - 32768,
_a9, _j2, _7z = this._j2;
if (_N9) _99.set(_7z.subarray(32768, _99.length));
else {
_a9 = 0;
for (_j2 = _99.length; _a9 < _j2; ++_a9) _99[_a9] = _7z[_a9 + 32768]
}
this._89.push(_99);
this._gb += _99.length;
if (_N9) _7z.set(_7z.subarray(_Xn, _Xn + 32768));
else
for (_a9 = 0; 32768 > _a9; ++_a9) _7z[_a9] = _7z[_Xn + _a9];
this._99 = 32768;
return _7z
};
_k2.prototype._2g = function (_99) {
var _Xn, _a9 = this._aC.length / this._a9 + 1 | 0,
_j2, _7z, e, _89 = this._aC,
_l2 = this._j2;
_99 && ("number" === typeof _99._gE && (_a9 = _99._gE), "number" === typeof _99._N9 && (_a9 += _99._N9));
2 > _a9 ? (_j2 = (_89.length - this._a9) / this._cz[2], e = 258 * (_j2 / 2) | 0, _7z = e < _l2.length ? _l2.length + e : _l2.length << 1) : _7z = _l2.length * _a9;
_N9 ? (_Xn = new Uint8Array(_7z), _Xn.set(_l2)) : _Xn = _l2;
return this._j2 = _Xn
};
_k2.prototype._3b = function () {
var _99 = 0,
_Xn = this._j2,
_a9 = this._89,
_j2, _7z = new(_N9 ? Uint8Array : Array)(this._gb + (this._99 - 32768)),
e, _89, _l2, __l;
if (0 === _a9.length) return _N9 ? this._j2.subarray(32768,
this._99) : this._j2.slice(32768, this._99);
e = 0;
for (_89 = _a9.length; e < _89; ++e) {
_j2 = _a9[e];
_l2 = 0;
for (__l = _j2.length; _l2 < __l; ++_l2) _7z[_99++] = _j2[_l2]
}
e = 32768;
for (_89 = this._99; e < _89; ++e) _7z[_99++] = _Xn[e];
this._89 = [];
return this.buffer = _7z
};
_k2.prototype._O9 = function () {
var _99, _Xn = this._99;
_N9 ? this._79 ? (_99 = new Uint8Array(_Xn), _99.set(this._j2.subarray(0, _Xn))) : _99 = this._j2.subarray(0, _Xn) : (this._j2.length > _Xn && (this._j2.length = _Xn), _99 = this._j2);
return this.buffer = _99
};
function _l72(_99, _Xn) {
var _a9, _j2;
this._aC = _99;
this._a9 = 0;
if (_Xn || !(_Xn = {})) _Xn.index && (this._a9 = _Xn.index), _Xn._m82 && (this._X31 = _Xn._m82);
_a9 = _99[this._a9++];
_j2 = _99[this._a9++];
switch (_a9 & 15) {
case _J72:
this.method = _J72;
break;
default:
_5b(Error("unsupported compression method"))
}
0 !== ((_a9 << 8) + _j2) % 31 && _5b(Error("invalid fcheck flag:" + ((_a9 << 8) + _j2) % 31));
_j2 & 32 && _5b(Error("fdict flag is not supported"));
this._qC = new _k2(_99, {
index: this._a9,
_j82: _Xn._j82,
_k82: _Xn._k82,
_l82: _Xn._l82
})
}
_l72.prototype.__l = function () {
var _99 = this._aC,
_Xn, _a9;
_Xn = this._qC.__l();
this._a9 = this._qC._a9;
if (this._X31) {
_a9 = (_99[this._a9++] << 24 | _99[this._a9++] << 16 | _99[this._a9++] << 8 | _99[this._a9++]) >>> 0;
var _j2 = _Xn;
if ("string" === typeof _j2) {
var _7z = _j2.split(""),
e, _89;
e = 0;
for (_89 = _7z.length; e < _89; e++) _7z[e] = (_7z[e].charCodeAt(0) & 255) >>> 0;
_j2 = _7z
}
for (var _l2 = 1, __l = 0, _gb = _j2.length, _qC, _gE = 0; 0 < _gb;) {
_qC = 1024 < _gb ? 1024 : _gb;
_gb -= _qC;
do _l2 += _j2[_gE++], __l += _l2; while (--_qC);
_l2 %= 65521;
__l %= 65521
}
_a9 !== (__l << 16 | _l2) >>> 0 && _5b(Error("invalid adler-32 checksum"))
}
return _Xn
};
var _J72 = 8;
_wy("Zlib.Inflate",
_l72);
_wy("Zlib.Inflate.prototype.decompress", _l72.prototype.__l);
var _O72 = {
_n82: _2g._wy,
_o82: _2g._jb
},
_Pu, _Qu, _Ru, $;
if (Object._aY1) _Pu = Object._aY1(_O72);
else
for (_Qu in _Pu = [], _Ru = 0, _O72) _Pu[_Ru++] = _Qu;
_Ru = 0;
for ($ = _Pu.length; _Ru < $; ++_Ru) _Qu = _Pu[_Ru], _wy("Zlib.Inflate.BufferType." + _Qu, _O72[_Qu])
}).call(this); //@ sourceMappingURL=inflate.min.js.map
/*@constructor */
function _p82() {
this._q82 = 0;
this._r82 = null;
this._s82 = 0;
this._t82 = null;
this._u82 = new _pl()
}; /*@constructor */
function _v82() {
this._Ci = 0;
this._w82 = new _Zt();
this._x82 = new _Zt();
this._y82 = new _Zt();
this._z82 = new _Zt();
this._A82 = new _Zt();
this._B82 = new _Zt();
this._C82 = 0;
this._D82 = 0;
this._E82 = 0;
this._F82 = 0;
this._G82 = 0;
this._H82 = 0;
this._I82 = 0;
this._J82 = 0;
this._K82 = 0;
this._L82 = -1;
this._NI = null;
this._OI = null;
this._M82 = null;
this._N82 = true;
this._O82 = false;
this._P82 = false
};
_v82.prototype._Q82 = function (_R82) {
this._O82 = _R82
};;
_v82.prototype._S82 = function () {
return this._O82
};;
_v82.prototype._T82 = function (_U82) {
this._P82 = _U82
};;
_v82.prototype._V82 = function () {
return this._P82
};;
_p82.prototype._W82 = function (_el) {
var _X82 = this._Y82(_el);
if (!_X82) return -1;
var _Z82 = this.__82();
var _092 = this._Y82(_Z82);
_092._C82 = _X82._C82;
_092._D82 = _X82._C82;
_092._E82 = _X82._E82;
_092._F82 = _X82._F82;
_092._G82 = _X82._G82;
_092._H82 = _X82._H82;
_092._I82 = _X82._I82;
_092._J82 = _X82._J82;
_092._K82 = _X82._K82;
_092._L82 = _X82._L82;
_092._NI = _X82._NI;
_092._OI = _X82._OI;
_092._M82 = _X82._M82;
var _192 = new _Zt(_X82._x82);
var _292 = new _Zt(_X82._w82);
var _392 = new _Zt(_X82._y82);
var _492 = new _Zt(_X82._z82);
var _592 = new _Zt(_X82._A82);
var _692 = new _Zt(_X82._B82);
_092._w82 = _292;
_092._x82 = _192;
_092._y82 = _392;
_092._z82 = _492;
_092._A82 = _592;
_092._B82 = _692;
_092._P82 = _X82._P82;
_092._Q82(true);
return _Z82
};;
_v82.prototype._792 = function () {
if (this._w82._5b[11] == 0) return true;
return false
};;
_v82.prototype._892 = function () {
if (this._792()) {
if ((this._w82._5b[4] == 0.0) && (this._w82._5b[8] == 0.0) && (this._w82._5b[1] == 0.0) && (this._w82._5b[9] == 0.0) && (this._w82._5b[2] == 0.0) && (this._w82._5b[6] == 0.0)) {
if ((this._x82._5b[2] == 0.0) && (this._x82._5b[6] == 0.0)) {
this._N82 = true;
return
}
}
}
this._N82 = false
};;
_v82.prototype._992 = function (_a92) {
this._x82 = _a92;
this._A82._hG(_a92);
this._y82.Multiply(this._x82, this._w82);
this._B82._hG(this._y82);
this._892()
};;
_v82.prototype._b92 = function (_a92) {
this._w82 = _a92;
this._z82._hG(_a92);
this._y82.Multiply(this._x82, this._w82);
this._B82._hG(this._y82);
this._892()
};;
_p82.prototype._c92 = function () {
this._q82 = this._u82.length
};;
_p82.prototype.__82 = function () {
var _d92 = new _v82();
_d92._Ci = this._s82;
this._s82++;
this._u82._Vj(_d92);
return _d92._Ci
};;
_p82.prototype._Y82 = function (_e92) {
for (var _i2 = 0; _i2 < this._u82.length; _i2++) {
if (this._u82._ta(_i2) != null)
if (this._u82._ta(_i2)._Ci == _e92) return this._u82._ta(_i2)
}
return null
};;
_p82.prototype._f92 = function (_e92) {
for (var _i2 = 0; _i2 < this._u82.length; _i2++) {
var _g92 = this._u82._ta(_i2);
if (_g92) {
if (_g92._Ci === _e92) {
this._u82._SJ(_g92);
return
}
}
}
return
};;
_p82.prototype._h92 = function () {
this._u82._bk();
_q82 = 0
};;
_p82.prototype._i92 = function (_j92) {
if (_j92 == null) return null;
var _k92 = this.__82();
var _092 = this._Y82(_k92);
if (_092 != null) {
_092._l92(_j92._SZ);
_092._m92(_j92._UZ);
_092._n92(_j92._WZ);
_092._o92(_j92._YZ);
_092._p92(_j92._s3);
_092._q92(_j92._t3);
_092._r92(_j92._s92);
_092._t92(_j92._u92);
_092._v92(0.0);
_092._w92(_j92._x92);
_092._y92(_092._z92() + _092._A92() * 0.5, _092._B92() + _092._C92() * 0.5)
}
return _092
};;
_p82.prototype._D92 = function () {
if (this._r82 === null) {
this._r82 = new _iH(0, 0, 0, 0, false, true)
}
};;
_p82.prototype._E92 = function () {
if (this._r82 != null) {
this._r82 = null;
}
for (var _i2 = this._q82; _i2 < this._u82.length; _i2++) {
var _F92 = this._u82._ta(_i2);
if (_F92 !== null) {
if (_F92._S82() && !_F92._V82()) {
this._f92(_F92._Ci)
}
}
}
};;
_p82.prototype._G92 = function () {
this._H92 = 0;
this._t82 = null;
this._I92 = 0;
this._J92 = 0
};;
_p82.prototype._K92 = function () {
return this._t82
};;
_p82.prototype._L92 = function (_7D) {
if (typeof (_7D) == _v82) {
this._t82 = _7D
} else {
this._t82 = this._Y82(_7D)
}
};;;
_v82.prototype._w92 = function (_7D) {
this._L82 = _7D
};;;;;;;;;;;;;
_v82.prototype._M92 = function () {
return this._B82
};;
_v82.prototype._l92 = function (_7D) {
this._C82 = _7D
};;
_v82.prototype._z92 = function () {
return this._C82
};;
_v82.prototype._m92 = function (_7D) {
this._D82 = _7D
};;
_v82.prototype._B92 = function () {
return this._D82
};;;
_v82.prototype._N92 = function () {
return this._Ci
};;
_v82.prototype._n92 = function (_7D) {
this._E82 = _7D
};;
_v82.prototype._A92 = function () {
return this._E82
};;
_v82.prototype._o92 = function (_7D) {
this._F82 = _7D
};;
_v82.prototype._C92 = function () {
return this._F82
};;
_v82.prototype._p92 = function (_7D) {
this._G82 = _7D
};;;
_v82.prototype._q92 = function (_7D) {
this._H82 = _7D
};;;
_v82.prototype._r92 = function (_7D) {
this._I82 = _7D
};;;
_v82.prototype._t92 = function (_7D) {
this._J82 = _7D
};;;
_v82.prototype._v92 = function (_7D) {
this._K82 = _7D
};;;
_v82.prototype._Rh = function () {
if (this._NI !== null) {
this._NI(this._r82, this._r82)
}
};;
_v82.prototype._Th = function () {
if (this._OI !== null) {
this._OI(this._r82, this._r82)
}
};;
_v82.prototype._O92 = function () {
var _P92 = new _iu();
_P92._Pu = this._A82._5b[_Av];
_P92._Qu = this._A82._5b[_Dv];
_P92._Ru = this._A82._5b[_Iv];
return _P92
};;;;;
_v82.prototype._Q92 = function () {
if (this._792()) {
var _R92 = this._O92();
var _S92, _T92, _U92, _V92;
_S92 = this._B82._W92(new _iu(-1.0, 0.0, 0.0));
_T92 = this._B82._W92(new _iu(1.0, 0.0, 0.0));
_U92 = this._B82._W92(new _iu(0.0, 1.0, 0.0));
_V92 = this._B82._W92(new _iu(0.0, -1.0, 0.0));
var _X92 = _T92._Y92(_S92);
var _Z92 = _U92._Y92(_V92);
_XZ = _X92.Length();
_ZZ = _Z92.Length();
_TZ = _R92._Pu - (_XZ * 0.5);
_VZ = _R92._Qu - (_ZZ * 0.5);
var __92 = _Z92;
__92._Mu();
var angle = Math.acos(__92._Qu);
if (__92._Pu < 0.0) {
angle = (2.0 * Math.PI) - angle
}
var _0a2 = (angle / (2.0 * Math.PI)) * 360.0;
_7G(_TZ, _VZ, _XZ, _ZZ, _0a2)
} else {
_TZ = 0;
_VZ = 0;
_XZ = _q8 != null ? _q8._gP() : 1;
_ZZ = _q8 != null ? _q8._hP() : 1;
_7G(_TZ, _VZ, _XZ, _ZZ, 0)
}
if (_xc != null) {
_kv(_1a2, this._x82)
} else {
_kv(_1a2, this._x82);
var _2a2 = _HD / _XZ;
var _3a2 = _ID / _ZZ;
_4a2[0] = this._x82._5b[_xv] * _2a2;
_4a2[1] = this._x82._5b[_yv] * _2a2;
_4a2[2] = (this._x82._5b[_Av] + (_XZ * 0.5)) * _2a2 + _FD;
_4a2[3] = this._x82._5b[_Bv] * _3a2;
_4a2[4] = this._x82._5b[_qu] * _3a2;
_4a2[5] = (this._x82._5b[_Dv] + (_ZZ * 0.5)) * _3a2 + _GD;
_5e._ED(_4a2[0], _4a2[3], _4a2[1], _4a2[4], _4a2[2], _4a2[5])
}
if (_ru == -1) {
_kv(_5a2, this._w82)
} else {
var _6a2 = new _Zt();
_6a2._5b[_qu] = -1;
var _3o = new _Zt();
_3o.Multiply(this._w82, _6a2);
_kv(_5a2, _3o)
}
};;
_v82.prototype._ck = function () {
if (this._M82 != null) {
this._M82(_7a2, _7a2)
} else {
if ((this._L82 >= 0) && (this._N82)) {
var _gz = null;
if (this._L82 < 10000) {
var _9A = _b8._ta(this._L82);
var _Dl = _9A._LS();
for (var _Gz = 0; _Gz < _Dl.length; _Gz++) {
var _vn = _Dl[_Gz];
if (_vn._4H) continue;
if (!_vn._5H) continue;
_gz = _vn;
break
}
} else {
_gz = _ez._ta(this._L82);
if (_gz != null) {
if (_gz._4H || (!_gz._5H)) _gz = null
}
}
if (_gz != null) {
var _8a2 = this._E82 * 0.5;
var _9a2 = this._F82 * 0.5;
var _gb, _jb;
var _aa2, _ba2;
_gb = this._C82;
_jb = this._D82;
if (_gz._aH) _gz._bH();
_aa2 = Math.floor(_gz.x);
_ba2 = Math.floor(_gz.y);
if (2 * this._I82 >= this._E82) {
_gb = _aa2 - _8a2
} else if (_aa2 - this._I82 < this._C82) {
_gb = _aa2 - this._I82
} else if (_aa2 + this._I82 > (this._C82 + this._E82)) {
_gb = _aa2 + this._I82 - this._E82
}
if (2 * this._J82 >= this._F82) {
_jb = _ba2 - _9a2
} else if (_ba2 - this._J82 < this._D82) {
_jb = _ba2 - this._J82
} else if (_ba2 + this._J82 > (this._D82 + this._F82)) {
_jb = _ba2 + this._J82 - this._F82
}
if (_gb < 0) _gb = 0;
if (_gb + this._E82 > _q8._gP()) _gb = _q8._gP() - this._E82;
if (_jb < 0) _jb = 0;
if (_jb + this._F82 > _q8._hP()) _jb = _q8._hP() - this._F82;
if (this._G82 >= 0) {
if ((_gb < this._C82) && (this._C82 - _gb > this._G82)) _gb = this._C82 - this._G82;
if ((_gb > this._C82) && (_gb - this._C82 > this._G82)) _gb = this._C82 + this._G82
}
if (this._H82 >= 0) {
if ((_jb < this._D82) && (this._D82 - _jb > this._H82)) _jb = this._D82 - this._H82;
if ((_jb > this._D82) && (_jb - this._D82 > this._H82)) _jb = this._D82 + this._H82
}
this._C82 = _gb;
this._D82 = _jb;
this._y92(_gb + _8a2, _jb + _9a2)
}
}
}
};;
_v82.prototype._y92 = function (_7D, _NH) {
var _I42 = new _iu();
var _Q42 = new _iu();
var _Y42 = new _iu();
_I42._Pu = _7D;
_I42._Qu = _NH;
_I42._Ru = -16000.0;
_Q42._Pu = _7D;
_Q42._Qu = _NH;
_Q42._Ru = 0.0;
_Y42._Pu = Math.sin(-this._K82 * (Math.PI / 180.0));
_Y42._Qu = Math.cos(-this._K82 * (Math.PI / 180.0));
_Y42._Ru = 0.0;
var _ca2 = new _Zt();
_ca2._lu(_I42, _Q42, _Y42);
var _da2 = new _Zt();
_da2._uu(this._E82, this._F82, 1, 32000.0);
this._992(_ca2);
this._b92(_da2)
};;
_v82.prototype._ea2 = function (_7D, _NH) {
var _I42 = new _iu();
var _Q42 = new _iu();
var _Y42 = new _iu();
_I42._Pu = _7D;
_I42._Qu = _NH;
_I42._Ru = -(this._E82);
_Q42._Pu = _7D;
_Q42._Qu = _NH;
_Q42._Ru = 0.0;
_Y42._Pu = Math.sin(-this._K82 * (Math.PI / 180.0));
_Y42._Qu = Math.cos(-this._K82 * (Math.PI / 180.0));
_Y42._Ru = 0.0;
var _ca2 = new _Zt();
_ca2._lu(_I42, _Q42, _Y42);
var _da2 = new _Zt();
_da2._vu(1.0, -(this._F82) / (this._E82), 1, 32000.0);
this._992(_ca2);
this._b92(_da2)
};;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
var _fa2 = !1,
_ga2 = -1,
_ha2 = -1,
_ia2 = 0,
_ja2 = 1,
_ka2 = 2,
_la2 = 3,
_ma2 = 4,
_na2 = 5,
_oa2 = 6,
_pa2 = 7,
_qa2 = 8,
_ra2 = 9,
_sa2 = 10,
_ta2 = 11,
_ua2 = [0, 0, 0],
_va2 = [0, 0, 0],
_wa2 = [0, 0, 0, 0, 0, 0],
_xa2 = [0, 0, 0],
_ya2 = [0, 0, 0],
_za2 = [0, 0, 0],
_Aa2 = [0, 0, 0],
_Ba2 = [0, 0, 0],
_Ca2 = [0, 0, 0],
_Da2 = [0, 0, 0],
_Ea2 = 0,
_Fa2 = 0;
function _Ga2() {
if (_s8) {
if ((_v8._w8() <= 30) || (_Ha2 <= 30)) {
return 1.0
}
if ((_v8._w8() / _Ha2) < 1.2) {
return 30.0 / _v8._w8()
} else {
return 30.0 / _Ha2
}
} else {
if ((_q8._r8() <= 30) || (_Ha2 <= 30)) {
return 1.0
}
if ((_q8._r8() / _Ha2) < 1.2) {
return 30.0 / _q8._r8()
} else {
return 30.0 / _Ha2
}
}
}
function _Ia2() {
if (!_iQ(_ga2)) {
_ga2 = _Fm();
if (_s8) {
_oQ(_ga2, 50)
} else {
_oQ(_ga2, 100000)
}
}
if (!_iQ(_ha2)) {
_ha2 = _Fm();
if (_s8) {
_oQ(_ha2, -15000)
} else {
_oQ(_ha2, -100000)
}
}
if (!_fa2) {
_Ja2()
}
}
function _Ja2() {
var _i2;
_fa2 = true;
for (_i2 = 0; _i2 <= 5; _i2++) {
_wa2[_i2] = _Gm()
}
for (_i2 = 0; _i2 <= 2; _i2++) {
_xa2[_i2] = _Gm();
_ua2[_i2] = _Gm();
_ya2[_i2] = _Gm();
_va2[_i2] = _Gm();
_za2[_i2] = _Gm();
_Aa2[_i2] = _Gm();
_Ba2[_i2] = _Gm();
_Ca2[_i2] = _Gm();
_Da2[_i2] = _Gm()
}
_Ea2 = _Gm();
_Fa2 = _Gm()
}
function _Ka2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_wa2[0], _Ma2);
_UQ(_wa2[0], 0.1, 0.1, 0.05 * _7z, 0);
_sR(_wa2[0], 0, 360, 0, 0, false);
_wR(_wa2[0], 0, 360, 0, 0);
_uR(_wa2[0], 2 * _7z, 2 * _7z, -0.1 * _7z, 0);
_Km(_wa2[0], 0.6, 0);
_mR(_wa2[0], _Cl(10.0 / _7z), _Cl(15.0 / _7z));
_CQ(_La2, _ba, _ca, _wa2[0], _ih, 20);
_QQ(_wa2[1], _Ma2);
_UQ(_wa2[1], 0.1, 0.1, 0.1 * _7z, 0);
_sR(_wa2[1], 0, 360, 0, 0, false);
_Km(_wa2[1], 0.8, 0);
_mR(_wa2[1], _Cl(15 / _7z), _Cl(15 / _7z));
_CQ(_La2, _ba, _ca, _wa2[1], 0x000000, 1)
} else if (_ph == 2) {
_QQ(_wa2[4], _Ma2);
_UQ(_wa2[4], 0.4, 0.4, 0.2 * _7z, 0);
_sR(_wa2[4], 0, 360, 0, 0, false);
_wR(_wa2[4], 0, 360, 0, 0);
_uR(_wa2[4], 7 * _7z, 7 * _7z, -0.2 * _7z, 0);
_Km(_wa2[4], 0.6, 0);
_mR(_wa2[4], _Cl(15 / _7z), _Cl(20 / _7z));
_CQ(_La2, _ba, _ca, _wa2[4], _ih, 20);
_QQ(_wa2[5], _Ma2);
_UQ(_wa2[5], 0.4, 0.4, 0.4 * _7z, 0);
_sR(_wa2[5], 0, 360, 0, 0, false);
_Km(_wa2[5], 0.8, 0);
_mR(_wa2[5], _Cl(20 / _7z), _Cl(20 / _7z));
_CQ(_La2, _ba, _ca, _wa2[5], 0x000000,
1)
} else {
_QQ(_wa2[2], _Ma2);
_UQ(_wa2[2], 0.3, 0.3, 0.1 * _7z, 0);
_sR(_wa2[2], 0, 360, 0, 0, false);
_wR(_wa2[2], 0, 360, 0, 0);
_uR(_wa2[2], 4 * _7z, 4 * _7z, -0.18 * _7z, 0);
_Km(_wa2[2], 0.6, 0);
_mR(_wa2[2], _Cl(12 / _7z), _Cl(17 / _7z));
_CQ(_La2, _ba, _ca, _wa2[2], _ih, 20);
_QQ(_wa2[3], _Ma2);
_UQ(_wa2[3], 0.3, 0.3, 0.2 * _7z, 0);
_sR(_wa2[3], 0, 360, 0, 0, false);
_Km(_wa2[3], 0.8, 0);
_mR(_wa2[3], _Cl(17 / _7z), _Cl(17 / _7z));
_CQ(_La2, _ba, _ca, _wa2[3], 0x000000, 1)
}
}
function _Na2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_xa2[0], _Oa2);
_Km(_xa2[0], 1,
0);
_UQ(_xa2[0], 0.0, 0.0, 0.15 * _7z, 0.0);
_mR(_xa2[0], _Cl(10.0 / _7z), _Cl(12.0 / _7z));
_CQ(_La2, _ba, _ca, _xa2[0], _ih, 1)
} else if (_ph == 2) {
_QQ(_xa2[2], _Oa2);
_Km(_xa2[2], 1, 0);
_UQ(_xa2[2], 0, 0, 0.4 * _7z, 0);
_mR(_xa2[2], _Cl(18.0 / _7z), _Cl(20.0 / _7z));
_CQ(_La2, _ba, _ca, _xa2[2], _ih, 1)
} else {
_QQ(_xa2[1], _Oa2);
_Km(_xa2[1], 1, 0);
_UQ(_xa2[1], 0, 0, 0.25 * _7z, 0);
_mR(_xa2[1], _Cl(13.0 / _7z), _Cl(15.0 / _7z));
_CQ(_La2, _ba, _ca, _xa2[1], _ih, 1)
}
}
function _Pa2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_ua2[0], _Oa2);
_Km(_ua2[0], 1, 0);
_UQ(_ua2[0],
0, 0, 0.2 * _7z, 0);
_WQ(_ua2[0], 1, 0.5);
_mR(_ua2[0], _Cl(10.0 / _7z), _Cl(12.0 / _7z));
_CQ(_La2, _ba, _ca, _ua2[0], _ih, 1)
} else if (_ph == 2) {
_QQ(_ua2[2], _Oa2);
_Km(_ua2[2], 1, 0);
_UQ(_ua2[2], 0, 0, 0.6 * _7z, 0);
_WQ(_ua2[2], 1, 0.5);
_mR(_ua2[2], _Cl(18.0 / _7z), _Cl(20.0 / _7z));
_CQ(_La2, _ba, _ca, _ua2[2], _ih, 1)
} else {
_QQ(_ua2[1], _Oa2);
_Km(_ua2[1], 1, 0);
_UQ(_ua2[1], 0, 0, 0.35 * _7z, 0);
_WQ(_ua2[1], 1, 0.5);
_mR(_ua2[1], _Cl(13.0 / _7z), _Cl(15.0 / _7z));
_CQ(_La2, _ba, _ca, _ua2[1], _ih, 1)
}
}
function _Qa2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_ya2[1],
_Ra2);
_UQ(_ya2[1], 0.1, 0.2, 0, 0);
_uR(_ya2[1], 0.5 * _7z, 3.0 * _7z, 0.0, 0.0);
_wR(_ya2[1], 0, 360, 0, 0);
_Km(_ya2[1], 1, 0.4);
_mR(_ya2[1], _Cl(15.0 / _7z), _Cl(25.0 / _7z));
_yR(_ya2[1], 0.10 * _7z, 270);
_CQ(_La2, _ba, _ca, _ya2[1], _ih, 75)
} else if (_ph == 2) {
_QQ(_ya2[1], _Ra2);
_UQ(_ya2[1], 0.1, 0.2, 0, 0);
_uR(_ya2[1], 0.5 * _7z, 8.0 * _7z, 0.0, 0.0);
_wR(_ya2[1], 0, 360, 0, 0);
_Km(_ya2[1], 1, 0.4);
_mR(_ya2[1], _Cl(30.0 / _7z), _Cl(40.0 / _7z));
_yR(_ya2[1], 0.17 * _7z, 270);
_CQ(_La2, _ba, _ca, _ya2[1], _ih, 250)
} else {
_QQ(_ya2[1], _Ra2);
_UQ(_ya2[1], 0.1, 0.2, 0, 0);
_uR(_ya2[1],
0.5 * _7z, 6.0 * _7z, 0.0, 0.0);
_wR(_ya2[1], 0, 360, 0, 0);
_Km(_ya2[1], 1, 0.4);
_mR(_ya2[1], _Cl(20.0 / _7z), _Cl(30.0 / _7z));
_yR(_ya2[1], 0.15 * _7z, 270);
_CQ(_La2, _ba, _ca, _ya2[1], _ih, 150)
}
}
function _Sa2(_La2, _ba, _ca, _ph, _ih) {
var _i2;
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_va2[0], _Ma2);
_UQ(_va2[0], 0.2, 0.4, -0.01 * _7z, 0);
_Km(_va2[0], 0.4, 0);
_mR(_va2[0], _Cl(25.0 / _7z), _Cl(25.0 / _7z));
for (_i2 = 0; _i2 <= 5; _i2++) {
_CQ(_La2, _ba - 5 + _kP(10), _ca - 5 + _kP(10), _va2[0], _ih, 1)
}
} else if (_ph === 2) {
_QQ(_va2[2], _Ma2);
_UQ(_va2[2], 0.4, 1, -0.01 * _7z, 0);
_Km(_va2[2],
0.4, 0);
_mR(_va2[2], _Cl(50.0 / _7z), _Cl(50.0 / _7z));
for (_i2 = 0; _i2 <= 15; _i2++) {
_CQ(_La2, _ba - 30 + _kP(60), _ca - 30 + _kP(60), _va2[2], _ih, 1)
}
} else {
_QQ(_va2[1], _Ma2);
_UQ(_va2[1], 0.4, 0.7, -0.01 * _7z, 0);
_Km(_va2[1], 0.4, 0);
_mR(_va2[1], _Cl(30.0 / _7z), _Cl(30.0 / _7z));
for (_i2 = 0; _i2 <= 10; _i2++) {
_CQ(_La2, _ba - 15 + _kP(30), _ca - 15 + _kP(30), _va2[1], _ih, 1)
}
}
}
function _Ta2(_La2, _ba, _ca, _ph, _ih) {
var _i2;
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_za2[0], _Ma2);
_UQ(_za2[0], 0.2, 0.4, -0.01 * _7z, 0);
_Km(_za2[0], 0.4, 0);
_uR(_za2[0], 3.0 * _7z, 4.0 * _7z, 0, 0);
_wR(_za2[0],
90, 90, 0, 0);
_mR(_za2[0], _Cl(25.0 / _7z), _Cl(25.0 / _7z));
for (_i2 = 0; _i2 <= 5; _i2++) {
_CQ(_La2, _ba - 5 + _kP(10), _ca - 5 + _kP(10), _za2[0], _ih, 1)
}
} else if (_ph === 2) {
_QQ(_za2[2], _Ma2);
_UQ(_za2[2], 0.4, 1, -0.01 * _7z, 0);
_Km(_za2[2], 0.4, 0);
_uR(_za2[2], 6.0 * _7z, 7.0 * _7z, 0, 0);
_wR(_za2[2], 90, 90, 0, 0);
_mR(_za2[2], _Cl(50.0 / _7z), _Cl(50.0 / _7z));
for (_i2 = 0; _i2 <= 15; _i2++) {
_CQ(_La2, _ba - 30 + _kP(60), _ca - 30 + _kP(60), _za2[2], _ih, 1)
}
} else {
_QQ(_za2[1], _Ma2);
_UQ(_za2[1], 0.4, 0.7, -0.01 * _7z, 0);
_Km(_za2[1], 0.4, 0);
_uR(_za2[1], 5.0 * _7z, 6.0 * _7z, 0, 0);
_wR(_za2[1],
90, 90, 0, 0);
_mR(_za2[1], _Cl(30.0 / _7z), _Cl(30.0 / _7z));
for (_i2 = 0; _i2 <= 10; _i2++) {
_CQ(_La2, _ba - 15 + _kP(30), _ca - 15 + _kP(30), _za2[1], _ih, 1)
}
}
}
function _Ua2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_Aa2[0], _Va2);
_UQ(_Aa2[0], 0.4, 0.3, -0.02 * _7z, 0);
_sR(_Aa2[0], 0, 360, 0, 0, false);
_mR(_Aa2[0], _Cl(20 / _7z), _Cl(20 / _7z));
_CQ(_La2, _ba, _ca, _Aa2[0], _ih, 1)
} else if (_ph === 2) {
_QQ(_Aa2[2], _Va2);
_UQ(_Aa2[2], 1.2, 1.2, -0.04 * _7z, 0);
_sR(_Aa2[2], 0, 360, 0, 0, false);
_mR(_Aa2[2], _Cl(30 / _7z), _Cl(30 / _7z));
_CQ(_La2, _ba, _ca, _Aa2[2],
_ih, 1)
} else {
_QQ(_Aa2[1], _Va2);
_UQ(_Aa2[1], 0.75, 0.75, -0.03 * _7z, 0);
_sR(_Aa2[1], 0, 360, 0, 0, false);
_mR(_Aa2[1], _Cl(25 / _7z), _Cl(25 / _7z));
_CQ(_La2, _ba, _ca, _Aa2[1], _ih, 1)
}
}
function _Wa2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_Ba2[0], _Xa2);
_UQ(_Ba2[0], 0.4, 0.4, -0.02 * _7z, 0);
_sR(_Ba2[0], 0, 360, 0, 0, false);
_mR(_Ba2[0], _Cl(20 / _7z), _Cl(20 / _7z));
_CQ(_La2, _ba, _ca, _Ba2[0], _ih, 1)
} else if (_ph === 2) {
_QQ(_Ba2[2], _Xa2);
_UQ(_Ba2[2], 1.2, 1.2, -0.04 * _7z, 0);
_sR(_Ba2[2], 0, 360, 0, 0, false);
_mR(_Ba2[2], _Cl(30 / _7z), _Cl(30 / _7z));
_CQ(_La2, _ba, _ca, _Ba2[2], _ih, 1)
} else {
_QQ(_Ba2[1], _Xa2);
_UQ(_Ba2[1], 0.75, 0.75, -0.03 * _7z, 0);
_sR(_Ba2[1], 0, 360, 0, 0, false);
_mR(_Ba2[1], _Cl(25 / _7z), _Cl(25 / _7z));
_CQ(_La2, _ba, _ca, _Ba2[1], _ih, 1)
}
}
function _Ya2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_Ca2[0], _Ra2);
_UQ(_Ca2[0], 0.4, 0.4, -0.02 * _7z, 0);
_sR(_Ca2[0], 0, 360, 0, 0, false);
_mR(_Ca2[0], _Cl(20 / _7z), _Cl(20 / _7z));
_CQ(_La2, _ba, _ca, _Ca2[0], _ih, 1)
} else if (_ph === 2) {
_QQ(_Ca2[2], _Ra2);
_UQ(_Ca2[2], 1.2, 1.2, -0.04 * _7z, 0);
_sR(_Ca2[2], 0, 360, 0, 0, false);
_mR(_Ca2[2],
_Cl(30 / _7z), _Cl(30 / _7z));
_CQ(_La2, _ba, _ca, _Ca2[2], _ih, 1)
} else {
_QQ(_Ca2[1], _Ra2);
_UQ(_Ca2[1], 0.75, 0.75, -0.03 * _7z, 0);
_sR(_Ca2[1], 0, 360, 0, 0, false);
_mR(_Ca2[1], _Cl(25 / _7z), _Cl(25 / _7z));
_CQ(_La2, _ba, _ca, _Ca2[1], _ih, 1)
}
}
function _Za2(_La2, _ba, _ca, _ph, _ih) {
var _7z = _Ga2();
if (_ph === 0) {
_QQ(_Da2[0], _Ma2);
_UQ(_Da2[0], 2, 2, 0, 0);
_WQ(_Da2[0], 1, 0.5);
_kR(_Da2[0], 0, 0.3, 0);
_mR(_Da2[0], _Cl(100.0 / _7z), _Cl(100.0 / _7z));
_CQ(_La2, _ba, _ca, _Da2[0], _ih, 1)
} else if (_ph === 2) {
_QQ(_Da2[2], _Ma2);
_UQ(_Da2[2], 8, 8, 0, 0);
_WQ(_Da2[2], 1, 0.5);
_kR(_Da2[2], 0, 0.3, 0);
_mR(_Da2[2], _Cl(100.0 / _7z), _Cl(100.0 / _7z));
_CQ(_La2, _ba, _ca, _Da2[2], _ih, 1)
} else {
_QQ(_Da2[1], _Ma2);
_UQ(_Da2[1], 4, 4, 0, 0);
_WQ(_Da2[1], 1, 0.5);
_kR(_Da2[1], 0, 0.3, 0);
_mR(_Da2[1], _Cl(100.0 / _7z), _Cl(100.0 / _7z));
_CQ(_La2, _ba, _ca, _Da2[1], _ih, 1)
}
}
function __a2(_La2, _ba, _ca, _ph, _ih) {
var _i2;
var _7z = _Ga2();
_QQ(_Ea2, _0b2);
_UQ(_Ea2, 0.2, 0.3, 0.0, 0.0);
_sR(_Ea2, 0, 0, 0, 0, true);
_uR(_Ea2, 7 * _7z, 7 * _7z, 0, 0);
_wR(_Ea2, 260, 260, 0, 0);
_hR(_Ea2, 0.4);
_mR(_Ea2, _Cl(0.2 * _q8._hP() / _7z), _Cl(0.2 * _q8._hP() / _7z));
if (_ph === 0) {
for (_i2 = 0; _i2 <= 1; _i2++) {
_CQ(_La2, _kP(1) * 1.2 * _q8._gP(), -30.0 + _kP(20), _Ea2, _ih, 1)
}
} else if (_ph == 2) {
for (_i2 = 0; _i2 <= 8; _i2++) {
_CQ(_La2, _kP(1) * 1.2 * _q8._gP(), -30.0 + _kP(20), _Ea2, _ih, 1)
}
} else {
for (_i2 = 0; _i2 <= 4; _i2++) {
_CQ(_La2, _kP(1) * 1.2 * _q8._gP(), -30.0 + _kP(20), _Ea2, _ih, 1)
}
}
}
function _1b2(_La2, _ba, _ca, _ph, _ih) {
var _i2;
var _7z = _Ga2();
_QQ(_Fa2, _2b2);
_UQ(_Fa2, 0.1, 0.25, 0.0, 0.0);
_hR(_Fa2, 0.6);
_sR(_Fa2, 0, 360, 0, 0, false);
_uR(_Fa2, 2.5 * _7z, 3.0 * _7z, 0.0, 0.0);
_wR(_Fa2, 240, 300, 0, 20);
_mR(_Fa2, _Cl(0.5 * _q8._hP() / _7z), _Cl(0.5 * _q8._hP() / _7z));
if (_ph === 0) {
for (_i2 = 0; _i2 <= 0; _i2++) {
_CQ(_La2, _kP(1) * 1.2 * _q8._gP() - 60, -30.0 + _kP(20), _Fa2, _ih, 1)
}
} else if (_ph === 2) {
for (_i2 = 0; _i2 <= 6; _i2++) {
_CQ(_La2, _kP(1) * 1.2 * _q8._gP() - 60, -30.0 + _kP(20), _Fa2, _ih, 1)
}
} else {
for (_i2 = 0; _i2 <= 2; _i2++) {
_CQ(_La2, _kP(1) * 1.2 * _q8._gP() - 60, -30.0 + _kP(20), _Fa2, _ih, 1)
}
}
}
function _3b2(_4b2, _Vg, _ba, _ca, _ph, _ih) {
var _Z71;
_Ia2();
if (_4b2) {
_Z71 = _ga2
} else {
_Z71 = _ha2
}
switch (_Vg) {
case _ia2:
_Ka2(_Z71, _ba, _ca, _ph, _ih);
break;
case _ja2:
_Na2(_Z71, _ba, _ca, _ph, _ih);
break;
case _ka2:
_Pa2(_Z71, _ba, _ca, _ph,
_ih);
break;
case _la2:
_Qa2(_Z71, _ba, _ca, _ph, _ih);
break;
case _ma2:
_Sa2(_Z71, _ba, _ca, _ph, _ih);
break;
case _na2:
_Ta2(_Z71, _ba, _ca, _ph, _ih);
break;
case _oa2:
_Ua2(_Z71, _ba, _ca, _ph, _ih);
break;
case _pa2:
_Wa2(_Z71, _ba, _ca, _ph, _ih);
break;
case _qa2:
_Ya2(_Z71, _ba, _ca, _ph, _ih);
break;
case _ra2:
_Za2(_Z71, _ba, _ca, _ph, _ih);
break;
case _sa2:
__a2(_Z71, _ba, _ca, _ph, _ih);
break;
case _ta2:
_1b2(_Z71, _ba, _ca, _ph, _ih);
break
}
}
var _5b2 = !1,
_831 = !1,
_6b2 = !0;
function _7b2(_8b2) {
if (_8b2) {
_5b2 = true
} else {
_831 = false;
_5b2 = false;
if (_6b2) {
_9b2 = false
}
}
}
function _ab2() {
if (window["page"] === undefined) {
_6b2 = false;
window.addEventListener("focus", function () {
_7b2(false)
});
window.addEventListener("blur", function () {
_7b2(true)
});
window.addEventListener("click", function () {
_7b2(false)
})
}
}
function _bb2() {
if (_5b2) {
_831 = true;
_5b2 = false
} else if (_831) {
_831 = false;
if (_6b2) {
_9b2 = true
}
}
}
function _cb2() {
var _cH, _i2, _db2;
var _lk = null;
if (_q8._mk) {
_lk = _q8._ok
}
var _Dl = _q8._YG._Dl;
var _Jc = _eb2++;
for (var _fb2 = 0; _fb2 < _Dl.length; _fb2++) {
var _gz = _Dl[_fb2];
var _mz = _gz._mz;
if (!_gz._4H && (_gz._gb2 <= _Jc)) {
if (_mz._hb2[_ib2]) {
var _MH = false;
if (_JC(_gz._15) || _JC(_gz._xz)) {
_cH = _gz._jP();
_MH = ((_cH.right < 0) || (_cH.left > _q8._gP()) || (_cH.bottom < 0) || (_cH.top > _q8._hP()))
} else {
_MH = ((_gz.x < 0) || (_gz.x > _q8._gP()) || (_gz.y < 0) || (_gz.y > _q8._hP()))
}
if (_MH) {
if (!_gz._jb2) {
_gz._Ca(_ib2, _kb2, _gz, _gz)
}
}
_gz._jb2 = _MH
}
if (_mz._hb2[_lb2]) {
if (_JC(_gz._15) || _JC(_gz._xz)) {
_cH = _gz._jP();
if ((_cH.left < 0) || (_cH.right > _q8._gP()) || (_cH.top < 0) || (_cH.bottom > _q8._hP())) {
_gz._Ca(_lb2, _kb2, _gz, _gz)
}
} else {
if ((_gz.x < 0) || (_gz.x > _q8._gP()) || (_gz.y < 0) || (_gz.y > _q8._hP())) {
_gz._Ca(_lb2, _kb2, _gz, _gz)
}
}
}
if (_lk) {
for (_db2 = 0; _db2 < _lk.length; _db2++) {
var _mb2 = _lk[_db2];
if (_mb2._r2) {
var _nb2 = _mb2._SZ;
var _ob2 = _mb2._UZ;
var _pb2 = _mb2._SZ + _mb2._WZ;
var _qb2 = _mb2._UZ + _mb2._YZ;
var _g92 = _rb2._Y82(_mb2._sb2);
if (_g92 != null) {
_nb2 = _g92._z92();
_ob2 = _g92._B92();
_pb2 = _g92._z92() + _g92._A92();
_qb2 = _g92._B92() + _g92._C92()
}
if (_mz._hb2[_tb2 + _db2]) {
if (_JC(_gz._15) || _JC(_gz._xz)) {
_cH = _gz._jP();
if ((_cH.right < _nb2) || (_cH.left > _pb2) || (_cH.bottom < _ob2) || (_cH.top > _qb2)) {
_gz._Ca(_tb2 + _db2, _kb2, _gz, _gz)
}
} else {
if ((_gz.x < _nb2) || (_gz.x > _pb2) || (_gz.y < _ob2) || (_gz.y > _qb2)) {
_gz._Ca(_tb2 + _db2, _kb2, _gz, _gz)
}
}
}
if (_mz._hb2[_ub2 + _db2]) {
if (_JC(_gz._15) || _JC(_gz._xz)) {
_cH = _gz._jP();
if ((_cH.left < _nb2) || (_cH.right > _pb2) || (_cH.top < _ob2) || (_cH.bottom > _qb2)) {
_gz._Ca(_ub2 + _db2, _kb2, _gz, _gz)
}
} else {
if ((_gz.x < _nb2) || (_gz.x > _pb2) || (_gz.y < _ob2) || (_gz.y > _qb2)) {
_gz._Ca(_ub2 + _db2, _kb2, _gz, _gz)
}
}
}
}
}
}
}
}
}
function _vb2() {
for (var _GS1 in _HS1) {
if (!_HS1.hasOwnProperty(_GS1)) continue;
var _wb2 = _b8._ta(_GS1);
var _xb2 = _wb2._LS();
var _Jc = _eb2++;
for (var _fS1 = 0; _fS1 < _xb2.length; _fS1++) {
var _yb2 = _xb2[_fS1];
if (!_yb2._4H && _yb2._5H && (_yb2._gb2 <= _Jc)) {
var _zb2 = _HS1[_GS1];
for (var _Ab2 in _zb2) {
if (!_zb2.hasOwnProperty(_Ab2)) continue;
var _Eq1 = _zb2[_Ab2];
var _Bb2 = _b8._ta(_Eq1);
var _Cb2 = _Bb2._LS();
for (var _gS1 = 0; _gS1 < _Cb2.length; _gS1++) {
var _Db2 = _Cb2[_gS1];
if (!_Db2._4H && _Db2._5H && (_Db2._gb2 <= _Jc)) {
if ((_yb2._mz == _Db2._mz) && (_gS1 < _fS1)) continue;
if (_yb2._0H(_Db2, true)) {
if ((_yb2._6P) || (_Db2._6P)) {
_yb2.x = _yb2._AP;
_yb2.y = _yb2._BP;
_yb2._aH = true;
_yb2._zz = _yb2._Eb2;
_Db2.x = _Db2._AP;
_Db2.y = _Db2._BP;
_Db2._aH = true;
_Db2._zz = _Db2._Eb2
}
_yb2._Ca(_oS1, _Db2._mz._HH, _yb2, _Db2);
_Db2._Ca(_oS1, _yb2._mz._HH, _Db2, _yb2);
if ((_yb2._6P) || (_Db2._6P)) {
_yb2._1S1();
_Db2._1S1();
_yb2._Wh(_yb2.x + _yb2._s3, _yb2.y + _yb2._t3);
_Db2._Wh(_Db2.x + _Db2._s3, _Db2.y + _Db2._t3);
if (_yb2._0H(_Db2, true)) {
_yb2.x = _yb2._AP;
_yb2.y = _yb2._BP;
_yb2._aH = true;
_yb2._zz = _yb2._Eb2;
_Db2.x = _Db2._AP;
_Db2.y = _Db2._BP;
_Db2._aH = true;
_Db2._zz = _Db2._Eb2
}
}
}
}
}
}
}
}
}
}
function _Fb2() {
if (_q8) {
var _ko;
var _Jc = _eb2;
var _Gb2 = _s01();
var _Hb2 = _t01();
var _Ib2 = _b8._5P();
for (var _cz = 0; _cz < _Ib2.length; _cz++) {
var _9A = _Ib2[_cz];
var _Jb2 = _9A._hb2;
if (_Jb2[_Kb2] || _Jb2[_Lb2] || _Jb2[_Mb2] || _Jb2[_Nb2] || _Jb2[_Ob2] || _Jb2[_Pb2] || _Jb2[_Qb2] || _Jb2[_Rb2] || _Jb2[_Sb2] || _Jb2[_Tb2] || _Jb2[_Ub2] || _Jb2[_Vb2] || _Jb2[_Wb2] || _Jb2[_Xb2]) {
if (_9A._Yb2.length > 0) {
var _Zb2 = _9A._Yb2._Dl.slice(0);
for (var _i2 = _Zb2.length - 1; _i2 >= 0; _i2--) {
var _vn = _Zb2[_i2];
if (!_vn._4H && (_vn._gb2 <= _Jc)) {
if (_vn._aH) _vn._bH();
if (_vn._on(_Gb2, _Hb2, true)) {
var __b2 = true;
for (_ko = 0; _ko < 3; _ko++) {
if (_Mk._Vi[_ko]) {
if (_Jb2[_Kb2 + _ko]) {
_vn._Ca(_Kb2 + _ko, 0, _vn, _vn)
}
__b2 = false
}
}
for (_ko = 0; _ko < 3; _ko++) {
if (_Mk._Qi[_ko] === 1) {
if (_Jb2[_Nb2 + _ko]) {
_vn._Ca(_Nb2 + _ko, 0, _vn, _vn)
}
__b2 = false
}
}
for (_ko = 0; _ko < 3; _ko++) {
if (_Mk._Ui[_ko] === 1) {
if (_Jb2[_Qb2 + _ko]) {
_vn._Ca(_Qb2 + _ko, 0, _vn, _vn)
}
}
}
if (__b2) {
_vn._Ca(_Tb2, 0, _vn, _vn)
}
if (!_vn._0c2) {
_vn._Ca(_Ub2, 0, _vn, _vn);
_vn._0c2 = true
}
} else {
if (_vn._0c2) {
_vn._Ca(_Vb2, 0, _vn, _vn);
_vn._0c2 = false;
}
}
}
}
}
}
}
for (_ko = 0; _ko < 3; _ko++) {
if (_Mk._Vi[_ko]) {
_ez._Ca(_1c2 + _ko, 0)
}
}
for (_ko = 0; _ko < 3; _ko++) {
if (_Mk._Qi[_ko] === 1) {
_ez._Ca(_2c2 + _ko,
0)
}
}
for (_ko = 0; _ko < 3; _ko++) {
if (_Mk._Ui[_ko] === 1) {
_ez._Ca(_3c2 + _ko, 0)
}
}
if (_4c2) {
_ez._Ca(_Wb2, 0)
}
if (_5c2) {
_ez._Ca(_Xb2, 0)
}
}
}
function _6c2() {
var _1e, _2e, _nb;
var _Dl = _q8._YG._Dl;
var _Jc = _eb2++;
for (var _gz = 0; _gz < _Dl.length; _gz++) {
var _vn = _Dl[_gz];
if (!_vn._4H && (_vn._7c2 >= 0) && (_vn._gb2 <= _Jc)) {
if (!_vn._8c2) {
var _zB = _AB._ta(_vn._7c2);
if ((_zB !== null) && (_zB !== undefined)) {
if (_vn._9c2 > 0) {
_1e = _zB._ac2(_vn._bc2);
_vn._bc2 += _vn._9c2;
_2e = _zB._ac2(_vn._bc2);
for (_nb = _1e; _nb < _2e; _nb++) {
_vB(_vn, _vn, _vn._7c2, _nb)
}
if (_vn._cc2 && (_vn._bc2 > _zB._dc2())) {
_vn._bc2 = 0
}
} else {
_1e = _zB._ec2(_vn._bc2);
_vn._bc2 += _vn._9c2;
_2e = _zB._ec2(_vn._bc2);
for (_nb = _1e; _nb > _2e; _nb--) {
_vB(_vn, _vn, _vn._7c2, _nb)
}
if (_vn._cc2 && (_vn._bc2 < 0)) {
_vn._bc2 = _zB._dc2();
}
}
}
}
}
}
}
function _fc2() {
var _Dl = _q8._YG._Dl;
var _Jc = _eb2++;
for (var _gz = 0; _gz < _Dl.length; _gz++) {
var _vn = _Dl[_gz];
if (!_vn._4H && (_vn._gb2 <= _Jc)) {
for (var _a9 = 0; _a9 < _gc2; _a9++) {
var event = _hc2 | (_a9 + 1);
var _9A = _vn._mz;
if (_9A._hb2[event]) {
var _ic2;
_ic2 = ~~(_vn._W4[_a9]);
if (_ic2 >= 0) {
_ic2--;
_vn._W4[_a9] = _ic2
}
if (_ic2 === 0) {
_vn._Ca(_hc2 | (_a9 + 1),
0, _vn, _vn)
}
}
}
}
}
}
function _tB(_48, _qB) {
switch (_48) {
case _jc2:
return _qH;
case _kc2:
return _2H;
case _lc2:
return _3H;
case _mc2:
switch (_qB) {
case 0:
return _nc2;
case 1:
return _oc2;
case 2:
return _pc2;
case 3:
return _qc2;
case 4:
return _rc2;
case 5:
return _sc2;
case 6:
return _tc2;
case 7:
return _uc2;
case 8:
return _vc2;
case 9:
return _wc2;
case 10:
return _xc2;
case 11:
return _yc2;
default:
return _nc2
}
break;
case _zc2:
switch (_qB) {
case _Ac2:
return _Bc2;
case _Cc2:
return _Dc2;
case _Ec2:
return _Fc2;
default:
return _Dc2
}
break;
case _Gc2:
return _oS1;
case _Hc2:
switch (_qB) {
case _Ic2:
return _Kb2;
case _Jc2:
return _Mb2;
case _Kc2:
return _Lb2;
case _Lc2:
return _Tb2;
case _Mc2:
return _Nb2;
case _Nc2:
return _Pb2;
case _Oc2:
return _Ob2;
case _Pc2:
return _Qb2;
case _Qc2:
return _Sb2;
case _Rc2:
return _Rb2;
case _Sc2:
return _Ub2;
case _Tc2:
return _Vb2;
case _Uc2:
return 0;
case _Vc2:
return 0;
case _Wc2:
return 0;
case _Xc2:
return 0;
case _Yc2:
return 0;
case _Zc2:
return 0;
case __c2:
return 0;
case _0d2:
return 0;
case _1d2:
return 0;
case _2d2:
return 0;
case _3d2:
return 0;
case _4d2:
return 0;
case _5d2:
return 0;
case _6d2:
return 0;
case _7d2:
return 0;
case _8d2:
return 0;
case _9d2:
return 0;
case _ad2:
return 0;
case _bd2:
return 0;
case _cd2:
return 0;
case _dd2:
return 0;
case _ed2:
return 0;
case _fd2:
return 0;
case _gd2:
return 0;
case _hd2:
return _1c2;
case _id2:
return _jd2;
case _kd2:
return _ld2;
case _md2:
return _2c2;
case _nd2:
return _od2;
case _pd2:
return _qd2;
case _rd2:
return _3c2;
case _sd2:
return _td2;
case _ud2:
return _vd2;
case _wd2:
return _Wb2;
case _xd2:
return _Xb2;
default:
return 0
}
break;
case _MB: {
switch (_qB) {
case _yd2:
return _ib2;
case _zd2:
return _lb2;
case _Ad2:
return _Bd2;
case _Cd2:
return _Dd2;
case _Ed2:
return _Fd2;
case _Gd2:
return _Hd2;
case _Id2:
return _Jd2;
case _Kd2:
return _Ld2;
case _Md2:
return _2S1;
case _Nd2:
return _Od2;
case _Pd2:
return _Qd2;
case _Rd2:
return _tb2;
case _Sd2:
return _Td2;
case _Ud2:
return _Vd2;
case _Wd2:
return _Xd2;
case _Yd2:
return _Zd2;
case __d2:
return _0e2;
case _1e2:
return _2e2;
case _3e2:
return _4e2;
case _5e2:
return _ub2;
case _6e2:
return _7e2;
case _8e2:
return _9e2;
case _ae2:
return _be2;
case _ce2:
return _de2;
case _ee2:
return _fe2;
case _ge2:
return _he2;
case _ie2:
return _je2;
case _LB:
return _ke2;
case _le2:
return _me2;
case _ne2:
return _oe2;
case _pe2:
return _qe2;
case _re2:
return _se2;
case _te2:
return _ue2;
case _ve2:
return _we2;
case _xe2:
return _ye2;
case _ze2:
return _Ae2;
case _Be2:
return _Ce2;
case _De2:
return _Ee2;
case _Fe2:
return _Ge2;
case _He2:
return _Ie2;
case _Je2:
return _Ke2;
case _Le2:
return _Me2;
case _Ne2:
return _Oe2;
case _Pe2:
return _Da;
case _Qe2:
return _d8;
case _Re2:
return _Se2;
case _Te2:
return _Ue2;
case _Ve2:
return _We2;
case _Xe2:
return _Ye2;
case _Ze2:
return __e2;
case _0f2:
return _1f2;
case _2f2:
return _3f2;
case _4f2:
return _5f2;
case _6f2:
return _8Y;
case _7f2:
return _8f2;
case _9f2:
return _3W;
case _af2:
return _bf2;
default:
return 0
}
break
}
case _cf2:
return _df2 | _qB;
case _ef2:
return _ff2;
case _gf2:
return _hf2;
case _if2:
return _jf2;
case _kf2:
return _lf2;
case _mf2:
switch (_qB) {
case _nf2:
return _of2;
case _pf2:
return _qf2;
case _rf2:
return _sf2;
case _tf2:
return _uf2;
case _vf2:
return _wf2;
case _xf2:
return _yf2;
case _zf2:
return _Af2;
case _Bf2:
return _Cf2;
case _Df2:
return _Ef2;
case _Ff2:
return _Gf2;
case _Hf2:
return _If2;
case _Jf2:
return _Kf2;
case _Lf2:
return _Mf2;
case _Nf2:
return _Of2;
case _Pf2:
return _Qf2;
case _Rf2:
return _Sf2;
case _Tf2:
return _Uf2;
case _Vf2:
return _Wf2;
case _Xf2:
return _Yf2;
case _Zf2:
return __f2;
case _0g2:
return _1g2;
case _2g2:
return _3g2;
case _4g2:
return _5g2;
case _6g2:
return _7g2;
case _8g2:
return _9g2;
case _ag2:
return _bg2;
default:
return 0;
case _cg2:
return _pH
}
break;
default:
return 0
}
}
function _uB(_48, _qB) {
switch (_48) {
case _Gc2:
case _kf2:
case _ef2:
case _gf2:
case _if2: {
return _qB
}
}
return 0
}(function (window) {
if (!Object.defineProperty) {
throw ("Font.js requires Object.defineProperty, which this browser does not support.")
}
if (!document.createElement("canvas").getContext) {
throw ("Font.js requires